Running a .bat file

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

Hello,

I am trying to run a .bat file that copies some excel
files. The bat file works when launched from explorer.
However I have creadted a button which runs the bat file
but nothing happens. The MS Dos window appears but the
files are not copied.

Can anyone suggest another way? I have read knowledge
base article 302502 and this does not work.

Thank you,

Martin
 
If you are just copying files, use the FileCopy command from code.

FileCopy "OriginalFile" "NewFile"

The names can have full paths to create files in different folders.


--
Regards,

Adrian Jansen
J & K MicroSystems
Microcomputer solutions for industrial control
 
I find you need to change the path in the .bat file or
where you start.. access open in user/mydocuments. make
first command
cd\
path
 
Back
Top