Folder Creation in Batch file

February 19, 2010 at 07:10:33
Specs: Windows XP
I have created a batch file to backup my documents. I want to create a variable that would let me ask for the name of the folder instead of just creating it. For instance. I have this statement:

set drive=F\backup

then I move everything into %drive%\My Documents or favorites etc. How would it be to make my new (user input) folder name into my variable?


See More: Folder Creation in Batch file

Report •


#1
February 19, 2010 at 07:27:21
set /p bkup=Backup foldername:
xcopy *.* %bkup%

Report •

#2
February 19, 2010 at 11:17:18
Works like a charm :)
You guys are the best!!!

Report •

#3
February 19, 2010 at 11:58:39
That was way too easy ... we need some more challenge !

Report •

Related Solutions


Ask Question