|
-
August 24th, 2010, 02:55 PM
#1
system cannot find the file specified Exception
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?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|