DOH! I should have caught that!
Thanks, Shawn
kt
>-----Original Message-----
>Hi Kent,
>
> System.Diagnostics.Process is found in the
System.dll assembly. You'll need to add a /r:System.dll
to your command line to reference this assembly.
>
>-Shawn
>
>--
>
>This posting is provided "AS IS" with no warranties, and
confers no rights. Use of included script samples are
subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
>
>Note: For the benefit of the community-at-large, all
responses to this message are best directed to the
newsgroup/thread from which they originated.
>--------------------
>>Content-Class: urn:content-classes:message
>>From: "Kent Tegels" <(E-Mail Removed)>
>>Sender: "Kent Tegels" <(E-Mail Removed)>
>>Subject: Compile issues
>>Date: Fri, 18 Jul 2003 09:49:35 -0700
>>Lines: 32
>>Message-ID: <009401c34d4c$920f37f0$(E-Mail Removed)>
>>MIME-Version: 1.0
>>Content-Type: text/plain;
>> charset="iso-8859-1"
>>Content-Transfer-Encoding: 7bit
>>X-Newsreader: Microsoft CDO for Windows 2000
>>Thread-Index: AcNNTJIMKmyFijNMR4WzPO0iwetnEQ==
>>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>>Newsgroups: microsoft.public.dotnet.general
>>Path: cpmsftngxa06.phx.gbl
>>Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.general:101697
>>NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
>>X-Tomcat-NG: microsoft.public.dotnet.general
>>
>>Greetings,
>>
>>I've written some code for a presentation I'm scheduled
>>to give in a couple of weeks. It compiles nicely
instead
>>of VS.NET 2003, but is giving me fits when I try to
>>complie it from the command line.
>>
>>C:\scriptingdemos\WhatsRunning.vb(10) : error
>>BC30456: 'Process' is not a member of 'Diagnostics'.
>>
>>procs = System.Diagnostics.Process.GetProcesses()
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>Which of course, it is.
>>
>>Here's the compile command I'm using:
>>
>>vbc.exe /reference:Microsoft.VisualBasic.dll /optimize-
>> /debug:full /warnaserror-
>>/optionexplicit+ /optionstrict+ /imports:System /verbose
>> WhatsRunning.vb
>>
>>I think it's gotta be that I'm referencing something I
>>need too, but I have no idea what .DLL contains
>>Diagnostics. Referencing ServiceProcess doesn't seem to
>>help.
>>
>>Anybody got a suggestion here?
>>
>>Thanks!
>>Kent Tegels
>>
>>
>
>
>.
>