New topic: 

Can't figure out shell.execute

<http://forums.realsoftware.com/viewtopic.php?t=31433>

       Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic         Author  
Message       pac           Post subject: Can't figure out shell.executePosted: 
Sun Dec 06, 2009 3:09 am                        
Joined: Sat Aug 22, 2009 1:44 am
Posts: 18              Hi;

I am trying to do a self-update using a thread and shell execute.

ftpgetcs is a text file with the ftp commands in it, which works fine if i 
execute if from a command prompt:
Code:
ftp.exe -s:ftpgetcs



this works but the command window is visible which I don't want.

Code:
winMain.close
app.AutoQuit = true
dim myShell as new shell
myShell.execute "start ftp.exe -s:ftpgetcs" + chr(34)



This does not work:
Code:
winMain.close
app.AutoQuit = true
dim myShell as new shell
myshell.execute "ftp.exe -s:ftpgetcs"



Also, I want to wait 2 seconds after the above has completed and then re-launch 
the man application again and this does not work:

Code:
dim pause as integer = ticks + 120
while ticks < pause
wend
myShell.execute "myprog.exe" + chr(34)



Any help gratefully received 

Peter   
                            Top                qbap           Post subject: Re: 
Can't figure out shell.executePosted: Sun Dec 06, 2009 5:40 am                  
             
Joined: Fri Oct 02, 2009 1:02 pm
Posts: 21
Location: POLAND              I think you must specify the direct file location 
ftp.exe in shell execute command. For example "C:\Windows\ftp.exe -s:ftpgetcs"  
   
_________________
web: http://realbasic.tutspolis.com/  
                            Top                pac           Post subject: Re: 
Can't figure out shell.executePosted: Sun Dec 06, 2009 5:53 am                  
      
Joined: Sat Aug 22, 2009 1:44 am
Posts: 18              Hi;

Thanks, what a coincidence, I was just trying your tutorial on download manager 
which works well, however all files are saved as text files.

Is there a way to save as binary instead ??

Thanks

PeterC   
                            Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to