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_dir ectory\\command _name.jar",
"logname.lo g", "C:\\", SW_MAXIMIZE);
Thanks!
John 3 3456
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_dir ectory\\command _name.jar", "logname.lo g", "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.program mer.win32
V
<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.program mer.win32 I shall. Sorry for the intrusion.
> 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_dir ectory\\command _name.jar", "logname.lo g", "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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 from an HTML page on Windows
XP/Internet Explorer. The EXE is already locally installed, and the
HTML page is also viewed locally on the PC- it's not a web site. I
know of two ways to do this, both of which are featured in the sample
HTML file at...
|
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 shdocvw.dll.
And there comes the problem. I reference the libraries from my project. For
this to work, I put the libraries in the same directory as the application.
Now, from my code I try to ShellExecute to a link (to show it in a new
window):
|
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,
string lpOperation,
string lpFile,
|
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,
string lpOperation,
string lpFile,
|
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 ) } This always worked without problems
until...
We have modified the application so that it now contains
some managed C++ and C# code (in dll's). The call to
ShellExecute is in an unmanaged C++ dll. When trying
| |
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, vbNull,
SW_SHOWMAXIMIZED)
what amendment should i make in order to make it work ?
|
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 select / browse text file, and Converter.exe is located
at the same directory/ folder with this application.
I tested that the following is not working well.
int ret = (int)ShellExecute(hWnd, "open", "Converter.exe", sztxtBuffer1 ,
|
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
|
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 computer is set on. I've searched the
web and nothing solid. I did get the following VBA code and it doesn't seem
to work. If anyone can help me i'd appreciate it. From the code below
txtImageNote is a field on the form that displays the path to...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |