batch file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • favor08
    New Member
    • Jan 2007
    • 56

    batch file

    Can I have command with code on the on click go out and open a bat file that is on another pc local drive. that bat file will open up an access database and run some down loads.

    I need a user to tell me when they are done so I can download the files and I wanted to automate this so I didn't have to wait until they say they are done then go and hit a button on my second pc to download the files. it will lock the computer up for about an 1 hour.

    So I wanted the user to say down hit a button that will call the bat file on my second pc to open and open the database and the autoexec would run and start the job.
  • MMcCarthy
    Recognized Expert MVP
    • Aug 2006
    • 14387

    #2
    Try this ...

    Code:
    Call Shell "C:\My Files\MyBatFile.bat"

    Comment

    • pks00
      Recognized Expert Contributor
      • Oct 2006
      • 280

      #3
      If the batch script and database is on another PC, how have u setup the connectivity?

      Have u shared a folder on the 2nd PC and mapped that as a drive?

      Or u gonna use full unc path?

      Use Shell like Mary said to run batch scripts but hardcoding of paths is required which is why u need to setup a path that wont change


      What is your batch script, is it vbscripting?

      Comment

      Working...