Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
generate a new txt file from batch
Name: Code One Date: January 14, 2004 at 16:37:48 Pacific OS: me CPU/Ram: blah
Comment:
is it possible to generate a new txt doc. from a batch file, and name it and send it to a certain location all from within the bat file.
kinda like making a new directory but this time making a new file type (txt)
Name: Dr. Nick Date: January 14, 2004 at 22:09:06 Pacific
Reply:
Well, my guess is that you're not doing anything this simple (based on how much you've been posting about batch files :), but you can create one just by redirecting output from the console to a file like this:
ECHO HELLO WORLD > FILENAME.TXT
That will print 'HELLO WORLD' to the file FILENAME.TXT. If the file doesn't exist it will be created, and if it does exist it will be erased.
0
Response Number 2
Name: Code One Date: January 14, 2004 at 23:06:00 Pacific
Reply:
why din't i think of that...lol
i did it the long way ... please don't ask how... even takes a long time to explain..Im tired...lol
Summary: I am looking for vbs script that would monitor a certain folder (x:\test) for new .txt files. and if a new .txt file is found an email would be sent out. I would want this script to continue to run ...
Summary: Hi, So far I have a batch file that creates a set of nested folders within a specified folder. So far so good. Then I want to create a file by using information in a text file, amending it and writing...