New
#1
Questions about writing a batch file.
Hello everyone,
I've got some softball questions about writing batch files.
1)What is the proper syntax to include multiple folders in a set path statement?
for example I want to run an application called fred.exe and smith.exe.
Fred is located at c:\scripts\torrent seeds\july\fred.exe
Smith is located at \\ASUA-HTPC\Datadrive 1\TV Shows 1\smith.exe
(Note I put spaces within the locations)
2)When it the % needed around both sides of a variable?
I have seen %PATH% and %PATH. I have also seen %1 and %1%.
3)What is the ~ for when associated with a variable?
Such as SET JOB=%~1
My batch writing skills are just starting so the simpler explanation the better.
Thanks for any help you can provide me.
-Steve