Jump to content

Batch File help


Hudda

Recommended Posts

My knowledge of batch files is limited to using the copy, move and deleting functions. However what I'm after is a batch file to copy a file to a directory (which I can do) then run an executable file.

If anyone can help me here it would be greatly appreciated.

Link to comment
Share on other sites

folder name is FOLDER

file name is FILE.EXE



copy FILE.EXE FOLDER


cd FOLDER


FILE.EXE

the CD FOLDER "puts you" in the same folder as the file

you could also just do FOLDERFILE.EXE if you do not need to be "in" the same folder

some programs require you be in the working directory and some do not

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...