|
Answer» First post on hear so be gentle
I have a batch file that consists of:
Copy VTR.bat "\\DWD37C98\c$\Documents and Settings\All Users\Start Menu\Programs\Startup\" Copy VTRHome.url "\\DWD37C98\c$\Documents and Settings\All Users\Desktop\" Copy VTR.bat "\\DWD37F68\c$\Documents and Settings\All Users\Start Menu\Programs\Startup\" Copy VTRHome.url "\\DWD37F68\c$\Documents and Settings\All Users\Desktop\"
Multiple workstations on a NETWORK.
Example when run at command prompt:
C:\>Copy VTR.bat "\\DWD37C98\c$\Documents and Settings\All Users\Start Menu\Prog rams\Startup\" 1 file(s) copied.
C:\>Copy VTRHome.url "\\DWD37C98\c$\Documents and Settings\All Users\Desktop\" 1 file(s) copied.
C:\>Copy VTR.bat "\\DWD37F68\c$\Documents and Settings\All Users\Start Menu\Prog rams\Startup\" The network path was not found. 0 file(s) copied.
C:\>Copy VTRHome.url "\\DWD37F68\c$\Documents and Settings\All Users\Desktop\" The network path was not found. 0 file(s) copied.
Here is the good bit
Where the network path is "not found" i would LIKE to write the information about the workstation to a text file.
Text file to read: Copy VTR.bat "\\DWD37F68\c$\Documents and Settings\All Users\Start Menu\Prog rams\Startup\" Copy VTRHome.url "\\DWD37F68\c$\Documents and Settings\All Users\Desktop\"
This is so i can capture the user when they next log on to the network.
Clear as mud?
Can this be DONE?
|