473,503 Members | 1,617 Online
Bytes | Software Development & Data Engineering Community
+ 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 2030
* "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
1895
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
438
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
316
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
4259
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
7328
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
6991
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
7458
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
5578
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,...
1
5013
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
3167
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...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
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.