When the following script runs I can later download AcmeInstall_AccountMate.exe it and run it without error.
Code: Select all
CopyFile>K:\Acme\Builds\AcmeInstall_AccountMate_20100113_00564.exe,K:\Acme\Builds\AcmeInstall_AccountMate.exe
CopyFile>K:\Acme\Builds\AcmeInstall_AccountMate_20100113_00564.exe,K:\Acme\Builds\Build_On_Web\AcmeInstall_AccountMate.exe
Let>FTP_STATUS=1
Let>FTP_TIMEOUT=15
FTPPutFile>ftp.acmepos.com,password,1234Qwer,21,k:\Acme\Builds\AcmeInstall_AccountMate.exe,/htdocs,AcmeInstall_AccountMate3.exe,I
Message>FTP_RESULT
"The version of this file is not compatible with the version of Windos you're running. Check you computer's system information to see whether you need an x86 (32bit) or x64 (64bit) version of the program then contact the publisher."
If I try to execute on a Windows XP machine I just get a black flash that looks like th ecommand prompt was opened and immediatley closed.
Here is the script:
Code: Select all
//AccountMate
DeleteFile>K:\Acme\Builds\AcmeInstall_AccountMate.exe
GetFileList>K:\Acme\Builds\AcmeInstall_AccountMate_*.exe,FileList,;
Separate>FileList,;,Files
Let>Max=Files_Count
GoSub>Bubble_Sort
//Sorts Files_x array
//Set Max to number of elements
SRT>Bubble_Sort
Let>has_swapped=0
let>i=1
Repeat>i
Let>next=i+1
//change sign on next line to change direction of sort
if>Files_%i%>Files_%next%
Let>store=Files_%i%
Let>Files_%i%=Files_%next%
Let>Files_%next%=%store%
Let>has_swapped=1
endif
Let>i=i+1
Until>i=Max
If>has_swapped=1
GoSub>Bubble_Sort
Endif
End>Bubble_Sort
Files_%Files_Count%:
Let>theFile=Files_%Files_Count%
CopyFile>theFile,K:\Acme\Builds\AcmeInstall_AccountMate.exe
CopyFile>theFile,K:\Acme\Builds\Build_On_Web\AcmeInstall_AccountMate.exe
Let>FTP_STATUS=1
Let>FTP_TIMEOUT=15
FTPPutFile>ftp.acmepos.com,bbrink2010lb,password,21,k:\Acme\Builds\AcmeInstall_AccountMate.exe,/htdocs,AcmeInstall_AccountMate3.exe,I
Message>FTP_RESULT
In all cases the FTP_RESULT returns SUCCESS
All help greatly appreciated!
Bob