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
Farrukh Javeid
NA
38
0
system cannot find the file specified Exception
Aug 24 2010 3:55 PM
Hi folks,
I am having problem with executing a program that uses a cmd command to run through the Visual Basic .Net. The code is as following
Dim myThemeProcess As New Process
Dim myTheme As New ProcessStartInfo
myTheme.FileName = "%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,Control_RunDLL %SystemRoot%\system32\desk.cpl desk,@Themes /Action:OpenTheme /file:""" + filePath + """"
'myTheme.RedirectStandardInput = True
'myTheme.RedirectStandardOutput = True
'myTheme.UseShellExecute = False
myThemeProcess.StartInfo = myTheme
myThemeProcess.Start()
The exception comes at the last line. Can anyone help me?
Reply
Answers (
10
)
What is the difference between assembly and class library?
Compare File Time Only, no Date