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

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
Jul 21 '05 #1
2 1876
Look at StartInfo class. An object of this class is set as
process.StartInfo.

So, in StartInfo there is a property CreateNoWindow.

Sunny
In article <82**********************************@microsoft.co m>,
Vi***********@discussions.microsoft.com says...
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

Jul 21 '05 #2
>
So, in StartInfo there is a property CreateNoWindow.


And add to that

p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden

When that is not enough

Cor
Jul 21 '05 #3

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

Similar topics

2
by: Stephen Boulet | last post by:
I'm using the following code to get a file name: import tkFileDialog tkFileDialog.askopenfilename(filetypes=) How can I do this without an empty tk window popping up and hanging around after...
10
by: Scott | last post by:
I'm new to ASP, but I've been programming in VB for several years, and I'm having a few issues with this ASP enhancement I'm working on. I've found ASP to be a lot different than what I'm use to...
4
by: gallery | last post by:
My client is asking that once a viewer visits his website, the onLoad popup window not show up again. What's the best way to do this? Thanks, Marje
2
by: Simon Wigzell | last post by:
I use a subroutine to popup windows in my sebsite. It looks like this : function poplink(filename) { filestring = filename + "htm" LinkWindow = window.open(filestring,'LinkWindow',''); } ...
3
by: Lee David | last post by:
I'm trying to have a popup window of new changes when a person comes to my web page and something has changed. I can see the "alert" popping up, but not the page. The page would look better and...
2
by: Raquel | last post by:
Why can we not give db2 System commands (commands starting with 'db2' like db2ilist, db2look, db2move etc.) through the Command Center? It is so convenient to retrieve and change commands in the...
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.