Results 1 to 2 of 2

Thread: running ftp batch file and getting "permission denied"

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2018
    Posts
    1

    running ftp batch file and getting "permission denied"

    I haven't done VBS in a long long time, but thought this would be pretty easy and straight forward. I have a batch file that executes a ftp command and it runs fine, however, when I try to run it within a VBS, I get "permission denied". Here is my VBS code

    set oShell = CreateObject("WScript.Shell")

    oShell.Run "c:\ftp.bat"

  2. #2
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,398

    Re: running ftp batch file and getting "permission denied"

    What happens if you copy the ftp.bat file to a C:\Temp folder and then use:

    set oShell = CreateObject("WScript.Shell")

    oShell.Run "c:\Temp\ftp.bat

Posting Permissions

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



Click Here to Expand Forum to Full Width