Hi,
I'm running the following code from a VB6 application -
it's meant to kick off a ftp batch file I've created:
Shell App.Path & "\
ftp.bat", vbNormalFocus
I'm using NT 4 and when I run the VB code the DOS window appears for a split second then disappears without executing the commands inside. The ftp batch file should take around 20 seconds to process.
If I manually double-click the batch file it works fine.
Any ideas?
####
Shell "cmd /K" & App.Path & "\ftp.bat", vbNormalFocus
####
However, there appears to be a long filename issue. The content of the batch file is:
#####
C:\winnt\system32\ftp.exe -v -s:"C:\Program Files\EPFU Packager\temp\ftp.txt"
#####
- it uses a text file that contains the ftp commands:
The whole thing works fine if I put my batch file and txt file in a directory with a short filename - e.g., c:\ftptest\, but as soon as I try running it from Program Files\EPFU Packager\ directory it doesn't work.