473,473 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Run DOS Commands Without DOS Window Popping Up

These lines of code:

Imports System.Diagnostics.Process
Start("subst I: D:\FakeFolder1")

Will start the DOS command subst, but the problem is the DOS window will
popup temporarily. This looks unprofessional in my application, and I was
wondering how I could stil run the command without the DOS window.

-Jason
Nov 20 '05 #1
3 2026
* "Jason Moss" <pc******@sbcglobal.net> scripsit:
Imports System.Diagnostics.Process
Start("subst I: D:\FakeFolder1")

Will start the DOS command subst, but the problem is the DOS window will
popup temporarily. This looks unprofessional in my application, and I was
wondering how I could stil run the command without the DOS window.


<URL:http://dotnet.mvps.org/dotnet/samples/miscsamples/downloads/RedirectConsole.zip>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
In Greg Young's post, would the variable strOut be the output from the
command (In that case, FTP.exe?)

"Jason Moss" <pc******@sbcglobal.net> wrote in message
news:un**************@TK2MSFTNGP11.phx.gbl...
These lines of code:

Imports System.Diagnostics.Process
Start("subst I: D:\FakeFolder1")

Will start the DOS command subst, but the problem is the DOS window will
popup temporarily. This looks unprofessional in my application, and I was
wondering how I could stil run the command without the DOS window.

-Jason

Nov 20 '05 #3
yes it would be although for a "real" situation you would most likely want
to use threads to actively read/write the other program.
"Jason Moss" <pc******@sbcglobal.net> wrote in message
news:uh**************@TK2MSFTNGP11.phx.gbl...
In Greg Young's post, would the variable strOut be the output from the
command (In that case, FTP.exe?)

"Jason Moss" <pc******@sbcglobal.net> wrote in message
news:un**************@TK2MSFTNGP11.phx.gbl...
These lines of code:

Imports System.Diagnostics.Process
Start("subst I: D:\FakeFolder1")

Will start the DOS command subst, but the problem is the DOS window will
popup temporarily. This looks unprofessional in my application, and I was wondering how I could stil run the command without the DOS window.

-Jason


Nov 20 '05 #4

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

Similar topics

2
by: ViRtUaLpCwHiZ | last post by:
These lines of code: Imports System.Diagnostics.Process Start("subst I: D:\FakeFolder1") Will start the DOS command subst, but the problem is the DOS window will popup temporarily. This looks...
1
by: Jason Moss | last post by:
These lines of code: Imports System.Diagnostics.Process Start("subst I: D:\FakeFolder1") Will start the DOS command subst, but the problem is the DOS window will popup temporarily. This...
2
by: ViRtUaLpCwHiZ | last post by:
These lines of code: Imports System.Diagnostics.Process Start("subst I: D:\FakeFolder1") Will start the DOS command subst, but the problem is the DOS window will popup temporarily. This looks...
4
by: vickeybird | last post by:
I want to know if it is possible to detect if Pop up Blocker is enabled without trying to open a Pop Up windows. I'm trying to create a web analytics script and visible Pop up in case of disabled...
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
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...
1
isladogs
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
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...

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.