>DECLARE INTEGER ShellExecute IN Shell32.dll ; >LONG HWnd, ; >STRING cAction, ; >STRING cFileName, ; >STRING cParameters, ; >STRING cPath, ; >INTEGER nShowWindow > > >lnshow=1 >m.ScriptFile = "TestScript" + sys(3) + ".txt" > >set alte to (m.ScriptFile) >set alte on >?? "open XXX.XXX.XXX.XXX" && set of numbers would go here >? "tc" >? "tc01" >? "prompt" >? "cd /testdata/tc/8076076" >? "lcd " + curdir() >? "pause" >? "quit" >set alte off >set alte to >wait wind "" timeout .5 > > >cAction="open" >cFileName ="ftp -s:" + curdir() + m.ScriptFile >lDidItWork=ShellExecute(0,'open',cFileName,"","",1)