Ask a Question related to ASP.NET Security, Design and Development.
-
Shyam Prakash #1
Hiding cmd promt window
Hello All,
I am puzzled over how to hide the cmd prompt window??
mycopy.exe copies a know set of files from one location to the other.
Here I am struggling to hide / supress the cmd prompt window which stays
until the process is exited.
<code snippet>
Process proc = new Process();
proc.StartInfo.FileName = @"mycopy.exe";
proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.RedirectStandardOutput = true;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.WindowStyle = ProcessWindowStyle.hidden;
proc.Start();
proc.WaitForExit();
proc.Close();
</code snippet>
Upon a few browses, I understood that, ProcessWindowStyle works well for
the application invoked (for ex, notepad through a cmd prompt) but not
on the cmd prompt itself.
Can anyone please help me in how to overcome this?.
Thanks in advance
../Shyam
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Shyam Prakash Guest
-
PopUp window hiding
I opened a popup window with modal=false using PopUpManager. I want to hide this window, the moment i hide some other UIComponent (lets say a... -
insert a frame or window into adobe acrobat or reader window
Using Windows OS XP or Vista. Can you ad a frame or window into the main window to allow saving a document through another application? I have an... -
Child window property window.opener null after postback
I have an webform from which I open a child window to display a calendar. When a date is selected in the calendar window it attempts to set the... -
dlopen is failing on Window XP works great on Window 2000
Michael Davis <mdavis@sevasoftware.com> writes: Check the permission of the so file: $ ls -l... -
Can't Print from Dos Promt! Access denied!
Can't Print from Dos Promt! Access denied! When any application that uses Dos to print tries to print it doesn't print. Even when going to the Dos... -
Ken Cox [Microsoft MVP] #2
Re: Hiding cmd promt window
Why don't you turn mycopy.exe in .NET code so you can call it directly in
your page and bypass the command prompt altogether?
"Shyam Prakash" <otherthings@gmail.com> wrote in message
news:%23Q%23qX$bCFHA.2884@TK2MSFTNGP15.phx.gbl...> Hello All,
>
> I am puzzled over how to hide the cmd prompt window??
>
> mycopy.exe copies a know set of files from one location to the other.
> Here I am struggling to hide / supress the cmd prompt window which stays
> until the process is exited.
>
> <code snippet>
>
> Process proc = new Process();
> proc.StartInfo.FileName = @"mycopy.exe";
> proc.StartInfo.CreateNoWindow = true;
> proc.StartInfo.RedirectStandardOutput = true;
> proc.StartInfo.UseShellExecute = false;
> proc.StartInfo.CreateNoWindow = true;
> proc.StartInfo.WindowStyle = ProcessWindowStyle.hidden;
> proc.Start();
> proc.WaitForExit();
> proc.Close();
>
> </code snippet>
>
> Upon a few browses, I understood that, ProcessWindowStyle works well for
> the application invoked (for ex, notepad through a cmd prompt) but not
> on the cmd prompt itself.
>
> Can anyone please help me in how to overcome this?.
> Thanks in advance
> /Shyam
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!Ken Cox [Microsoft MVP] Guest
-
Shyam Prakash #3
Re: Hiding cmd promt window
Hello Ken,
That will do for my own code but in case mycopy.exe is a third party
tool then how to handle that??
Even in a simple case where I open a Notepad.exe, I get the cmd prompt
window.
Thanks
./Shyam
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Shyam Prakash Guest



Reply With Quote

