VBScript is far more powerful than batch files. On the other
hand, batch files are far simpler to write for everyday tasks
such as making a few folders or perfoming some simple copy
commands, if only because they use standard Command
Prompt commands.
What has happened to your original question? Change of scope?
The batch file you posted has a few problems - see below.
2007-User said:
Wow thank you so much Paul I didn't know anything about that ,
could you please tell me how it is possible to convert below batch file to
VBSCRIPT?
@ECHO ON
MD NEW-PROJECT
*** Much better to write it like so:
*** md "d:\documents and settings\User\New-Project"
*** Now you know exactly where the folder will be created.
*** Ditto:
*** cd /d "d:\documents and settings\User\New-Project"
xcopy /d C:\007-JO~1\*.* D:\Documents and Settings\AFDESKTOP.001\Desktop
*** This won't work - you have embedded spaces. Do this instead:
*** xcopy /d C:\007-JO~1 "D:\Documents and Settings\AFDESKTOP.001\Desktop\"
*** As above - add drive & folder name!
MD 01-Sketches
MD 02-Received_Emails
MD 02-Sent_Emails
MD 01-Pictures
MD 03-Layouts
CD 03-Layouts
MD Drawings
MD Calculations
CD..
*** What is the point of this command? Get rid of it!
*** What is the point of this command? Get rid of it!
*** What is the point of this command? Get rid of it!