473,395 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Shelled Program and wait for third application

In my application I wait for a shelled application to finish and
continue to work. Everything works fine but when the shelled program is
up and user tries to open other applications (outside of my
application) they will not be opened till the shelled program finishes.
I appreciate you help on this issue.
Thanks,
Mohsen

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
4 1828
* Mohsen Aghazadeh <ag***********@yahoo.com> scripsit:
In my application I wait for a shelled application to finish and
continue to work. Everything works fine but when the shelled program is
up and user tries to open other applications (outside of my
application) they will not be opened till the shelled program finishes.
I appreciate you help on this issue.


Please post the code you use to wait for the shelled application to
finish.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Improve your quoting style:
<http://learn.to/quote>
<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #2
I tested both following methods:

'----(Method 1)----
If File.Exists(lsCasewareAppLocation) Then
Shell(lsCasewareAppLocation + " " + Chr(34) + lsSelectedFile +
Chr(34), AppWinStyle.NormalFocus, True)
...
Else
....
End IF

'----(Method 2)----
If File.Exists(lsCasewareAppLocation) Then
Dim pInfo As New ProcessStartInfo()
pInfo.FileName = lsSelectedFile
Dim p As Process = Process.Start(pInfo)
p.WaitForInputIdle()
p.WaitForExit()
....
Else
....
End IF


Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #3
* Mohsen Aghazadeh <ag***********@yahoo.com> scripsit:
I tested both following methods:

'----(Method 1)----
If File.Exists(lsCasewareAppLocation) Then
Shell(lsCasewareAppLocation + " " + Chr(34) + lsSelectedFile +
Chr(34), AppWinStyle.NormalFocus, True)
...
Else
....
End IF

'----(Method 2)----
If File.Exists(lsCasewareAppLocation) Then
Dim pInfo As New ProcessStartInfo()
pInfo.FileName = lsSelectedFile
Dim p As Process = Process.Start(pInfo)
p.WaitForInputIdle()
p.WaitForExit()
....
Else
....
End IF


I am not able to repro that with "notepad.exe".

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Improve your quoting style:
<http://learn.to/quote>
<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #4
Actually that problem happens on client site when they try to run an
accounting software and it never happen in development area or with
regular applications.
Anyway in the second method that I wrote you don't need to mention about
application name, just data name and the application will be opened if
the data file is already associated with the application.
But In the first method we need to mention about the application name
for example lsCasewareAppLocation is a variable that contains EXE
filename and lsSelectedFile is a varible containing the datafile
associated with the application.
I am wondering maybe there is something in the selled or third
application property that cause this problem.

Mohsen
Software Developer
www.focusbusiness.com
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: J Bunton | last post by:
ShellStr = "C:\temp\wzzip " & ZipOptions & " " & ZipTo & " " & ZipFrom ShellRet=Shell(ShellStr) .. . . . . . msgbox "Done" How can I determin whether the Shelled process is still running.
1
by: dw85745 | last post by:
I shelled notepad as a child of an MDI. Works great. When taking the same code and using on a VB5.exe (my code) the program remains as an SDI rather than becoming a child. Suggestions...
0
by: mrnicelife | last post by:
Hi, When using WebBrowser object to print an html page, the ExecWB call has a nice argument that allows an application to wait for the completion of the print job. When an app call ExecWB with...
12
by: Phoe6 | last post by:
The Program Fragment is this: int choice; /* Users Input Command */ .. .. .. printf("Enter a command: "); fflush(stdin); choice = getc(stdin); printf("\n");
2
by: Ewa Sowa | last post by:
I'm using CeCreateProcess to run a program that installs myApp.exe on my Pocket PC. If myApp is already installed, a dialog box pops up asking if you want to reinstall. Right after myApp.exe is...
0
by: | last post by:
In my application I wait for a shelled application to finish and continue to work. Everything works fine but when the shelled program is up and user tries to open other applications (outside of...
10
by: preethamkumark | last post by:
- The program first creates a shared memory buffer containing an array of 20 integers. - Each slot of the buffer can have either 0 or 1, where 0 represents an empty slot, and 1 represents an...
6
by: rdemyan via AccessMonster.com | last post by:
Is there a way, in code, to move a shelled application on the screen. I've got the shelled app to open and it centers itself. I would like to move it to the right using code, but I don't know...
4
by: Jonny Relentless | last post by:
After adding a form to a C# program, I am unable to use it. I want to use form1 as a sort of menu, so that when the user clicks a button, form1 will close and form2 (or form3, etc) will open. What...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.