Add Printer Wizard

  • Thread starter Thread starter Will
  • Start date Start date
W

Will

Hi all,

I want to run that add printer wizard and i'm using this:

System.Diagnostics.Process.Start("rundll32.exe
shell32.dll,SHHelpShortcuts_RunDLL AddPrinter")

And i'm getting this error:
An unhandled exception of
type 'System.ComponentModel.Win32Exception' occurred in
system.dll

Additional information: The system cannot find the file
specified

whats the right code...

NEED HELP !!!!!!!

Thanx
 
* "Will said:
I want to run that add printer wizard and i'm using this:

System.Diagnostics.Process.Start("rundll32.exe
shell32.dll,SHHelpShortcuts_RunDLL AddPrinter")

And i'm getting this error:
An unhandled exception of
type 'System.ComponentModel.Win32Exception' occurred in
system.dll

Additional information: The system cannot find the file
specified

Sorry for posting the wrong code some days ago. This works for me:

\\\
Dim psi As New ProcessStartInfo
psi.FileName = "rundll32.exe"
psi.Arguments = "shell32.dll,SHHelpShortcuts_RunDLL AddPrinter"
System.Diagnostics.Process.Start(psi)
///
 
Thanx Alot .. it did work .. you're code was great and
dont worry about the other time .. we all have our
moments!
 
Back
Top