TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dinesh Santhalingam
NA
737
367.5k
How to pass an argument to cmd.exe ?
Jan 31 2017 4:48 AM
static void Main(string[] args)
{
Process
p
=
new
Process();
ProcessStartInfo
startInfo
=
new
ProcessStartInfo();
startInfo.FileName
=@"C:\systemprocess\cmd.exe";
//I want to pass an argument to my cmd.exe
p.StartInfo
=
startInfo
;
p.Start();
}
This will open the cmd.exe . But I want to Send something
programmatic
.
Actually When I open Cmd I will give
1) d:
2) cd folder1
3) Force it 10.10.26.0 -a
I will type this in exe.Now I want to this in Programmatic.How to do this?
Reply
Answers (
5
)
iTextSharp convert to Unicode PDF Not Working
How to Generate/Print Multiple StudentID from Datagridview ?