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

Author Message
[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.

Dim WshShell, OExec, output
' Setup Shell vars.
Set WshShell = WScript.CreateObject("WScript.Shell")
' Setup WinSCP and capture shell output.
Set oExec = WshShell.Exec(" /log=log.txt")
   "option batch abort" & vbCRLF & _
   "option exclude ""*/; .DS_Store; *.ini; *.tmp; *.mp4>300M; *.avi>300M; *.mpg>300M""" + vbCRLF & _
   "open" + vbCRLF & _
   "synchronize local -delete ""ScreenUpload\"" ""/en/""" + vbCRLF & _
   "exit" + vbCRLF)
' wait until it finishes and collect its output.
output = oExec.StdOut.ReadAll()
' print the output.
[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?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26911
Location: Prague, Czechia
I have sent you an emails with link to a debug version.
Martin Prikryl

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.
[View user's profile]

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

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License