• using shell command (access 2003)

    Author
    Topic
    #450297

    Is the before F: a typo?

    Viewing 2 reply threads
    Author
    Replies
    • #1105974

      yes. sorry..

    • #1105971

      Using the Function below to call a batch file which will run an FTP script I wrote. The ftp batch file and script run great when I run the batch file from my shared f drive but when I use the shell command below it looks to run the ftp script from my local C drive my documents folder which is where I stored the ftp batch and script before I moved them to my f drive. Do I somehow have to point to the f drive in the function below or in the script or batch file? I’m clueless. Thanks…

      p.s. I’m calling the function using run code in a macro.

      Function CallFTPRun()
      On Error GoTo CallFTPRun_Err

      Dim retval
      retval = Shell(“F:FTPFTPFeed.bat”, vbMaximizedFocus)

      CallFTPRun_Exit:
      Exit Function

      CallFTPRun_Err:
      MsgBox Error$
      Resume CallFTPRun_Exit

      End Function

    • #1105986

      I got it figured out. I had to change directories in the .bat file. Something stupid on my part. Thanks again..

    Viewing 2 reply threads
    Reply To: using shell command (access 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: