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

SHELL

I want to run/start a program from inside a .Net Windows application. I've
tried using SHELL() but it only seems to work for some programs like
notepad.exe and .bat files. Other programs I try to run seems to fail with
the error 'File Not Found'. Is there another command to use?
Sep 6 '05 #1
3 1127


system.diagnostics.proccess.start("Notepad.exe")
"CLEAR-RCIC" <CL*******@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
I want to run/start a program from inside a .Net Windows application. I've tried using SHELL() but it only seems to work for some programs like
notepad.exe and .bat files. Other programs I try to run seems to fail with the error 'File Not Found'. Is there another command to use?

Sep 6 '05 #2
This will happen if the desired application is not in the "path" and not in
the "current working directory"

For testing purposes it is often best to specify explicit path to
application. Switch to programmable location before deploying the
application.
/Boyd

"CLEAR-RCIC" wrote:
I want to run/start a program from inside a .Net Windows application. I've
tried using SHELL() but it only seems to work for some programs like
notepad.exe and .bat files. Other programs I try to run seems to fail with
the error 'File Not Found'. Is there another command to use?

Sep 7 '05 #3
Thanks!

"Clamps" wrote:


system.diagnostics.proccess.start("Notepad.exe")
"CLEAR-RCIC" <CL*******@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
I want to run/start a program from inside a .Net Windows application.

I've
tried using SHELL() but it only seems to work for some programs like
notepad.exe and .bat files. Other programs I try to run seems to fail

with
the error 'File Not Found'. Is there another command to use?


Sep 7 '05 #4

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

Similar topics

8
by: Siemel Naran | last post by:
Hi. I'm writing a command shell that reads commands from standard input. At this point I have the command in a std::string. Now I want to execute this command in the shell. From the Borland...
10
by: Siemel Naran | last post by:
Hi. I'm writing a command shell that reads commands from standard input. At this point I have the command in a std::string. Now I want to execute this command in the shell. From the Borland...
5
by: bearophileHUGS | last post by:
For array.array "B" means unsigned char, and such arrays accept to be initialized from (str) strings too, this is quite useful: But it seems such capability isn't shared with the append: ...
21
by: Tom Gur | last post by:
Hi, It's seems that csh and tcsh acts a bit different when handling special characters in quotes. i.e: if i'll supply my program with the following arguments: -winpath "c:\\temp\\" tcsh will...
25
by: dennijr | last post by:
ok, shell always used to be easy for me, now its starting to get annoying cause i dont know wats wrong heres the simplist code possible: Private Sub IExplorer_Click() a = Shell("C:\Program...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.