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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top