View Full Version : batch: variables

03-04-2004, 07:07 PM
i am trying to copy the contents of a 3 into a directory on c:\

is there any way to set the destination path into a variable so the whole batch file defaintately uses the same directory and i only have to use it once etc.. plz dont tell me i dont need it, i just want to konw how its done please

Roy Sinclair
03-04-2004, 07:20 PM
The "set" command is used to create and update environment variables which can then be used in batch files.

set myPath = "c:\"
dir %myPath%

Run that as a BAT file and you can see how it works.