Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Thu, 19 Jun 2008 15:14:01 -0700,    group: microsoft.public.vsnet.general        back       


Running a command-line app always fails   
No matter how I write this code to run things at a command line, it failes 
with "system cannot find the file specified."

        Dim watchProc As System.Diagnostics.Process
        watchProc = Process.Start("NET USE LPT2: /DELETE")

Even simply reducing the command to "NET USE" fails.
Runs perfectly fine at a command line (Start -> Run -> "cmd")

What gives? Using VS2008 here...
date: Thu, 19 Jun 2008 15:14:01 -0700   author:   Mark Z.

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us