- Oct 24, 2000
- 95
- 0
- 0
Guys, I have a problem. I work with many computers on my network that run NT4 and want to upload one batch file to all of them that will pull a listing of a directory and redirect that output to a text file. The filename should be the machine name.
Say the machine name is bishop. I want the output of the dir command to be bishop.txt. How can I do this?
I need something for the wildcard; I'd like to know what to put for x in the following string:
dir *.* > c:\x.txt
Where x would pull the machine name from the registry. Could this be possible in the NT command prompt?
Thanks!
Say the machine name is bishop. I want the output of the dir command to be bishop.txt. How can I do this?
I need something for the wildcard; I'd like to know what to put for x in the following string:
dir *.* > c:\x.txt
Where x would pull the machine name from the registry. Could this be possible in the NT command prompt?
Thanks!
