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, 12:05 PM #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...
IDG Tech News
19th June 2012, 12:13 PM #2
echo Hello world! >> %computername%.txt
19th June 2012, 12:16 PM #3
Thanks that's the one I was looking for..!
By markbayliss in forum Windows Server 2008 R2
Last Post: 5th January 2011, 02:41 PM
By SimpleSi in forum *nix
Last Post: 10th March 2009, 07:15 PM
By Neville in forum Windows
Last Post: 25th February 2009, 01:58 PM
By FN-GM in forum Scripts
Last Post: 28th May 2008, 11:37 PM
By cheryl in forum Windows
Last Post: 18th January 2008, 11:27 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)