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

Call Shell and Working directory

Hi. I have a problem with running application from windows form
application (VB.NET). I'm using

Call Shell(path, AppWinStyle.NormalFocus, False)

but I need to define working directory 2 (in WinXP shortcuts it's
"Start in:" textbox). Any idea how to do that?

Thx :)

Apr 22 '07 #1
2 6300
Lobb[cz],

The Shell command has a /dir switch for specifying the working directory.

You can also use the Process class with its StartInfo property to launch an
exe and specify a working directory.

Kerry Moorman
"Lobb[cz]" wrote:
Hi. I have a problem with running application from windows form
application (VB.NET). I'm using

Call Shell(path, AppWinStyle.NormalFocus, False)

but I need to define working directory 2 (in WinXP shortcuts it's
"Start in:" textbox). Any idea how to do that?

Thx :)

Apr 22 '07 #2
Ty, Kerry
Kerry Moorman napsal:
Lobb[cz],

The Shell command has a /dir switch for specifying the working directory.

You can also use the Process class with its StartInfo property to launch an
exe and specify a working directory.

Kerry Moorman
"Lobb[cz]" wrote:
Hi. I have a problem with running application from windows form
application (VB.NET). I'm using

Call Shell(path, AppWinStyle.NormalFocus, False)

but I need to define working directory 2 (in WinXP shortcuts it's
"Start in:" textbox). Any idea how to do that?

Thx :)
Apr 22 '07 #3

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

Similar topics

1
by: cameron | last post by:
I'm looking to use the system (or exec) function to call a shell script in UNIX. The following is the UNIX command line without PHP: /home/public_html/VariableDirectory/myScript.ksh ...
0
by: Art Werschulz | last post by:
Hi. I am running MacOS X 10.3.1 (Panther) on a G4 iMac. I am installing some Perl modules using the CPAN shell, i.e., I issue the command # perl -MCPAN -e shell and then type commands to the...
5
by: Bill | last post by:
I used to be able to run the following ASP code on our corp machine (W2K Server Edition and IIS-5) and successfully send a net-msg to anyone on our intranet. Last week it stopped working... and...
1
by: Torsten Bronger | last post by:
Hallöchen! The following code from subprocess import call call() yields cp: call of stat for "subdir/*.jpg" not possible: File or directory not found
1
by: Dennis Gaida | last post by:
Hi there, I want to upload some exported reports to a FTP Server, for this I use a command line FTP utility. My Database sits in C:\Documents and Settings\Dennis\My Documents\Database The FTP...
2
by: jonathan184 | last post by:
Hi I am trying to create a shell script that will look for a contracthead file first and if the contract head file does not exist on day1 exit script. Now on day2 if contracthead exists or...
6
by: HaggardSmurf | last post by:
Private Sub Downloader1_DownloadComplete(MaxBytes As Long, SaveFile As String) If MsgBox("Donwnload Finished. Would you like to install now?", vbInformation + vbYesNo, "Blue Cherry Media...
2
Colloid Snake
by: Colloid Snake | last post by:
Hello everyone- I am working on a shell script to parse out a Node.def file that contains the hostname, version, IP address, and date updated. There is a separate .def file for each node (of which...
5
by: Stefano Tonello | last post by:
Hi all, I need to call windows' "open with" dialog from my C# windows form application. After the user selects application, control must return to me (I have to launch directly the process). I...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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...

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.