Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2005
    Posts
    196

    Unanswered: Running batch file

    I have a .bat file that I want to execute when clicking on a command button - I presume this is a one liner but cannot find the code I require - I presume it's possible - does anyone know the line? Cheers.

  2. #2
    Join Date
    Jan 2007
    Location
    California, USA
    Posts
    520
    Try this, but rename the name of the .bat file to the name of your .bat file.
    Code:
    Shell("C:\CopyMyFile.bat",vbHide)

  3. #3
    Join Date
    Aug 2005
    Posts
    196
    Seems to have done the trick - many thanks for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •