Help With BAT file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lyrrad
    DK Veteran
    • Apr 2008
    • 484

    #1

    Help With BAT file

    Hi

    From my android phone, using a piece of software called phonemypc, it is possible to run bat files on my pC from my phone.

    At the moment I run 1 action from my phone that opens up a MS Access database. When that database is opened it run autoexec macro and updates back to my phone. I then run another action from my phone that closes MS Access. What I am tring to do is create just one action from my phone that does both of these things. (so access opens, updates, and closes)

    First command is

    C:\Work\CONTACT\Contacts.mdb

    Second command is


    taskkill /im msaccess.exe


    As a 2 stage process it works. If I create 2 seperate bat files it works. I have tried to just create 1 bat file with both commands in and it DOES NOT work.

    My knowledge in this area is limited at best.

    All I am doing is creating a 2 line in a bat as laid out below. Am I missing something?

    D:\Work\CONTACTDB\Contacts.mdb
    taskkill /im msaccess.exe

    Thanks in advance.
  • Lyrrad
    DK Veteran
    • Apr 2008
    • 484

    #2
    No one!

    Sent from my HTC Desire using Tapatalk

    Comment

    Working...