
January 29th, 2008, 08:55 AM
|
|
n00b DevH'er
|
|
Join Date: Jan 2008
Posts: 3
Time spent in forums: 52 m 48 sec
Reputation Power: 0
|
|
NT Batch - Reading from TXT/TMP and using as an input string
Hi,
im new to the forums so sorry if this is the wrong spot but yeah. ok straight to business i have made a backup script which will backup my folders and files using robocopy (windows vista home premium) to another hard drive. some people have been asking me to make the script for them but it is a pain having to edit the script everytime to include their info.
so i decided to make a setup.bat file which when launched asks them where the source directories they want are and where they want the files copied. when the user enters the information it is copied to a file int he same directory as the.bat called SD1.TMP, or sourcedirectory1.tmp.
I have no idea of how i would get my backup script to read the.tmp files which contain basic text, such as C:\Users\owner\Documents and input it to the corresponding area on my script.
If you need to i can upload my scripts so u can have another look. Although i doubt i can do what ive described it would be nice  .
Cheers
|