Scripts Thread, File Export Naming in Coding and Web Development; Hello,
I've got a batch process to export system information and I want to make a batch file to do ...
19th June 2012, 11:05 AM #1
File Export Naming
I've got a batch process to export system information and I want to make a batch file to do it for all computers on site, however the way I've written it they'll all be called "001.txt"
How do I create each file named after the computer it came from?
I tried %HostName%.txt and it called the file exactly that...
19th June 2012, 11:13 AM #2
echo Hello world! >> %computername%.txt
19th June 2012, 11:16 AM #3
Thanks that's the one I was looking for..!
By markbayliss in forum Windows Server 2008 R2
Last Post: 5th January 2011, 01:41 PM
By SimpleSi in forum *nix
Last Post: 10th March 2009, 06:15 PM
By Neville in forum Windows
Last Post: 25th February 2009, 12:58 PM
By FN-GM in forum Scripts
Last Post: 28th May 2008, 10:37 PM
By cheryl in forum Windows
Last Post: 18th January 2008, 10:27 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)