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
Anthony Gags
NA
11
1.8k
calling a string variable in "proc.StartInfo.Arguments" Pin
May 29 2017 2:13 AM
Hi all,
i have declared a string below which will be a switch to a command.
string prnportpatha=@"\\servername\apps\Utilities\AddPrinter\prnport.vbs";
how do i call the variable in a command as per below
proc.StartInfo.FileName=("cmd.exe");
proc.StartInfo.Arguments=("/k cscript " + prnportpatha);
this doesnt seem to work, i get the error:
the name prnportpatha does not exist inthe current context.
Reply
Answers (
1
)
How to paste the split word document into target bookmarks
error : network path was not found