Solved

How to redirect script results to a computer name on the network.

Posted on 2008-06-26
6
155 Views
Last Modified: 2010-04-21
Hello,

Situation:
I have a batch file I'm running on a lot of computers at times when no users are logged on to the machines.  The computers are on a Server2003 domain.  The batch file collects information from the machine that it's ran on and redirects or pipes the information to a Log file saved on the local C: drive.  I need the Log file to be more accessible so I don't have to go to each individual machine.

Here is my script:

*********below*************

REM Create a new log file
set logname=C:\log %date:/=-% %time::=-%.txt
echo Log of Results > "%logname%"
echo ------------------------- >> "%logname%"
echo.  >> "%logname%"

*********above*************

The problem I am working to resolve:
I can't figure out how to set the Logname to be redirected to my personal PC, that I work from, instead of being saved on the local HDD of every machine its ran on.

Thanks for comments and ideas,
zbox
0
Comment
Question by:zbox
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 15

Accepted Solution

by:
sr75 earned 500 total points
ID: 21874358
send it to a share on your laptop.  


echo -------------------------->>  \\YourMachine\YourShare
0
 
LVL 25

Expert Comment

by:slam69
ID: 21874372
what happens if your machien is not on teh network when the script runs? it will bomb teh script out, far better to redircet to a network share
0
 

Author Comment

by:zbox
ID: 21874378
that's too funny.  i use that command all the time and didn't think of that.  let me see what happens, be right back.

zbox
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:zbox
ID: 21874912
man that worked! and as soon as you posted your comment I hit myself in the head.  well that was an easy 500 lol.  thanks a lot sr75 for quick response.  This stuff is real important to me.

Thanks EE,

zbox
0
 

Author Closing Comment

by:zbox
ID: 31470943
perfect and on time.
0
 
LVL 15

Expert Comment

by:sr75
ID: 21878562
No problem.   I have had many of those moments myself.  Thanks for the grade.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Automate PC's, Laptop to correct OU 4 52
Deploy restore partition 1 50
Powershell - Setting GPO 8 47
run powershell script endlessly 3 20
This article will show, step by step, how to integrate R code into a R Sweave document
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question