Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

NonaSuomy

Wasn't logged in above... oops :)
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.
martin

Re: VBScript works in Windows 7 64-bit Locks in XP WinSCP 5.0.5

I have sent you an emails with link to a debug version.
NonaSuomy

Tested winscp435 with same script with no issues, not sure what the deal is with 5.0.5?
NonaSuomy

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

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("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)