Results 1 to 4 of 4
  1. #1
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: using shell command (access 2003)

    Is the before F: a typo?

  2. #2
    3 Star Lounger
    Join Date
    Jan 2001
    Posts
    294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: using shell command (access 2003)

    yes. sorry..

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Posts
    294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    using shell command (access 2003)

    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

  4. #4
    3 Star Lounger
    Join Date
    Jan 2001
    Posts
    294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: using shell command (access 2003)

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

Posting Permissions

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