Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

shell command

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-07-2010, 08:04 AM
pmu5757's Avatar
Knows the basics
 
Join Date: Sep 2007
Location: Metz (France)
Posts: 67
Default shell command

Hello
I have problems with the "shell" command.
With this command, I launch another program which last between 1 and 3 seconds.
First of all, I would like this program to be launched in background instead of masking my B4PPC window.
Then, I would like that my B4PPC program could wait for the program launched by the shell command to be finished. For example, a first image (it is an animated gif) would appear before the shell, and another one just after.

Here is my actual code :

Sub dire
Image1.Image=AppPath & "\image1.gif"
Shell(AppPath & "\ptts.exe" , "-u " & AppPath & "\alice.txt")
Sleep(3000)
Image1.Image=AppPath & "\image2.png"
End Sub

Thank you for your help.
__________________
Pascal
Reply With Quote
  #2 (permalink)  
Old 07-07-2010, 01:10 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Use the Process object from my http://www.basic4ppc.com/forum/addit...html#post27720 to launch your app. It will give you an event for when the application finishes, or you could use its WaitForExit method in a loop.

I don't think there is a way to start it without it coming to the front.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #3 (permalink)  
Old 07-07-2010, 02:05 PM
pmu5757's Avatar
Knows the basics
 
Join Date: Sep 2007
Location: Metz (France)
Posts: 67
Default

Thank you, it works well.
But if someone else could have an idea to run an app in minimized window.... it would be fine.
__________________
Pascal
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Shell command. RCC2k7 Questions (Windows Mobile) 2 03-28-2009 10:26 PM
return codes of a shell command pmu5757 Questions (Windows Mobile) 18 06-15-2008 07:33 PM
Shell command J12345T Questions (Windows Mobile) 2 06-08-2008 09:49 AM
Questions on shell command, and user event, and the 6.30 dan kabestan Questions (Windows Mobile) 2 05-15-2008 06:45 PM
How to find out that Shell command has finished petrbury Questions (Windows Mobile) 6 10-16-2007 07:20 PM


All times are GMT. The time now is 04:56 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0