1.

Solve : Create Many named txt files?

Answer»

I am in need of some direction. I have a bat file that queries and returns all disk space and software installed on SPECIFIC PC into a txt file. The problem is that when I run the bat against a network it puts all info into ONE txt file. I need the ability to create a DIFFERENT txt file for each PC with the naming convention like computerXXXX, computerXXX2 and so on. PLZ HELP.

THANKS --
CCURTYou would need to give us more information.

What commands are you using in your batch file? Is the batch file calling for an external program (I dont remember batch being able to make text files)

You might also try using the Network Places icon on your desktop/start menu to view computers and their files by browsing your networkI USE pstools --> psinfo

X:\pstools\psinfo -s -d @X:\hostfile.txt -U username -p password > X:\results.txt

I need to create a "results.txt" file for each PC.

Hope this helps.

CCURT



Discussion

No Comment Found