I'm running the script in Telnet, but I'm actually downloading the file from a website through Windows. In other words, I'm using ProComm to login to the website, choose the file, then then downloading (or saving) it to my hard drive. I'm having the script type in the actual web address (with the file at the end) so it automatically chooses the file I need. I get a File Download prompt in Windows "Save As" but it will automatically save to the last directory where I downloaded a file off the internet. I'd like to change the "Save As" directory in Windows.
proc main
string sFile,sFile2,sFile3,sFile4,sFile5,sFile6
string sACS,sACS2
string sPath
integer szMonth, szDay, szYear, szHour, szMin, szSec
ltimeints $LTIME szYear szMonth szDay szHour szMin szSec
strfmt sFile "10571%d" szYear
strdelete sFile 5 1
strfmt sFile2 "%02d%02d" szMonth szDay
strdelete sFile2 0 1
strfmt sFile3 "%s.%s" sFile, sFile2
statmsg "%s" sFile3
strfmt sFile4 "105710SN"
strfmt sFile5 "%02d%02d" szMonth szDay
strdelete sFile5 0 1
strfmt sFile6 "%s.%s" sFile4, sFile5
statmsg "%s" sFile6
strfmt sPath "S:\Client Services\ACS\%02d%02d" szMonth szDay
set dnldpath sPath ;path I'd like to download the file
fetch dnldpath sPath
strfmt sACS "
sFile3 ;1st file
run sACS ;go to the internet address
pause 2
winactivate "Enter Network Password"
winfocus "Enter Network Password"
sendkeystr "XXXXXX" login
sendvkey 9
pause 1
sendkeystr "XXXXXX" password
sendvkey 9 ;TAB
pause 1
sendvkey 9
pause 1
sendvkey 13 ;ENTER KEY
pause 10
strfmt sACS2 "
sFile6 ;second file to download
run sACS2
endproc