|
-
Sep 14th, 2006, 01:40 PM
#1
Thread Starter
New Member
Help with FTP and Shell command
http://www.bygsoftware.com/Excel/VBA/ftp.htm
I trying to write a VB program to FTP some files and I came across the script on the above website. I seem to be having a problem with this piece of code:
' Invoke Directory List generator
Shell (strDirectoryList & ".bat"), vbHide '', vbMinimizedNoFocus
No matter what I do I receive the error:
Error message: "Run-time Error 5 - Invalid Procedure Call or Argument"
My bat file and txt file all have correct detail (as far as I can tell).
I am running VB 6.3
-
Sep 14th, 2006, 03:25 PM
#2
Thread Starter
New Member
Re: Help with FTP and Shell command
I finally figured it out... The problem was due to the path and the fact that it had spaces. Once I changed the path to something w/o spaces the shell command worked fine!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|