Topic "VBScript works in Windows 7 64-bit Locks in XP WinSCP 5.0.5"

Author Message
NonaSuomy
[View user's profile]

Joined: 2011-11-10
Posts: 6
Hi this code works fine on Win7 but not XP not sure if I am doing something wrong but what I get after I run it is a locked command line cursor blink and when I close the window it seems to finish up the script with WinSCP> so looks like its launching but not accepting the scripted params in XP, It also does not spit out a log.txt so there's nothing to help debug it and the script doesnt fail just locks with the blinking cursor.

Code:

Dim WshShell, OExec, output
' Setup Shell vars.
Set WshShell = WScript.CreateObject("WScript.Shell")
' Setup WinSCP and capture shell output.
Set oExec = WshShell.Exec("winscp.com /log=log.txt")
'test@ftp.lfpress.com
oExec.StdIn.Write(_
   "option batch abort" & vbCRLF & _
   "option exclude ""*/; .DS_Store; *.ini; *.tmp; *.mp4>300M; *.avi>300M; *.mpg>300M""" + vbCRLF & _
   "open X@X.X.com" + vbCRLF & _
   "synchronize local -delete ""ScreenUpload\"" ""/en/""" + vbCRLF & _
   "exit" + vbCRLF)
' wait until it finishes and collect its output.
output = oExec.StdOut.ReadAll()
' print the output.
WScript.Echo(output)
Advertisements
NonaSuomy
[View user's profile]

Joined: 2011-11-10
Posts: 6
Tested winscp435 with same script with no issues, not sure what the deal is with 5.0.5?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
I have sent you an emails with link to a debug version.
_________________
Martin Prikryl
Guest




I have sent you the log just to note it worked fine with this version but at the top of the log it says 5.0.4 not sure if that matters.
NonaSuomy
[View user's profile]

Joined: 2011-11-10
Posts: 6
Wasn't logged in above... oops Smile
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License