473,385 Members | 1,766 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,385 software developers and data experts.

ShellExecute Question

All:

Is there a way to issue a ShellExecute function in such a way that it
doesn't first draw a DOS window on the screen?

Here is the command line:

ShellExecute( NULL, "open", "C:\\target_directory\\command_name.jar",
"logname.log", "C:\\", SW_MAXIMIZE);

Thanks!

John
Jul 22 '05 #1
3 3444
John wrote:
Is there a way to issue a ShellExecute function in such a way that it
doesn't first draw a DOS window on the screen?

Here is the command line:

ShellExecute( NULL, "open", "C:\\target_directory\\command_name.jar",
"logname.log", "C:\\", SW_MAXIMIZE);


If there is, comp.lang.c++ is not the place to ask about it. Please post
your Microsoft Windows questions to comp.os.ms-windows.programmer.win32

V
Jul 22 '05 #2
<snip>

If there is, comp.lang.c++ is not the place to ask about it. Please post
your Microsoft Windows questions to comp.os.ms-windows.programmer.win32


I shall. Sorry for the intrusion.

Jul 22 '05 #3
> All:

Is there a way to issue a ShellExecute function in such a way that it
doesn't first draw a DOS window on the screen?

Here is the command line:

ShellExecute( NULL, "open", "C:\\target_directory\\command_name.jar",
"logname.log", "C:\\", SW_MAXIMIZE);

Thanks!

John

Of course this is off topic in this newgroup but...

I had the same question but for the standard C library function
system(). I was trying to make a shell call be as portable as possible
and the system() function seemed reasonable. On Windows XP, of course,
I got the DOS window but would have liked a background shell or
something similiar.

I'm hoping responses will direct us to the proper newsgroup. Outside
of comp.lang. I'm completely lost.

Jul 22 '05 #4

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

Similar topics

9
by: Josh Mayfield | last post by:
Note: There is considerable background detail here, but I do have three questions, which are clearly marked and appear right before the sample code. I have a legitimate need to launch an EXE...
3
by: Wiktor Zychla | last post by:
I have a problem I cannot solve. My application hosts IE activex control. I follow the standard procedure: I just aximp shdocvw.dll. Note that this gives you two files: axshdocvw.dll and...
0
by: the_openFace | last post by:
I'm trying to display the shell's property page for various files and I'm using this code: class Win32Shell { // ... other stuff here public static extern Int32 ShellExecute( Int32 hwnd,...
0
by: the openBack | last post by:
I'm trying to display the shell's property page for various files and I'm using this code: class Win32Shell { // ... other stuff here public static extern Int32 ShellExecute( Int32 hwnd,...
0
by: David | last post by:
We have an mfc application in which we use ShellExecute to launch the browser with an initial web site. {ShellExecute( NULL, "open", "http://www.SomeWebSite.com", NULL, NULL, SW_SHOWNORMAL ) } ...
5
by: The8thSense | last post by:
Hi, i would like to invoke another applcation in my program.I 've tried shellexecute ,but it doesnt work . here is my code : ShellExecute(0, "open", "C:\windows\system32\notepad.exe", vbNull,...
1
by: magix | last post by:
Dear Guru, From Dos Command, I can execute like C:\Converter TextFile.txt or C:\Converter D:\TextFile.txt I wrote an application (using VC++) to call a dos command, where sztxtBuffer1 is the...
5
by: =?Utf-8?B?VG9tYXM=?= | last post by:
Hello, Somebody knows which is the equivalent one in C++/CLI ? HINSTANCE ShellExecute(HWND hwnd, LPCTSTR lpOperation, LPCTSTR lpFile, LPCTSTR lpParameters, LPCTSTR lpDirectory, INT nShowCmd
2
by: John Smith | last post by:
Hi, I have an access database form with an image. I'm trying to create an onclick event on the image so that when a user clicks on the image it opens that file with the default viewer the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.