5 Replies - 1355 Views - Last Post: 21 August 2007 - 05:02 AM Rate Topic: -----

#1 itpro4470  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 156
  • Joined: 17-June 07

new to C#

Posted 20 August 2007 - 01:38 PM

I am a jvav programmer and a little new to C#. I am curious can you do anything in C# that can be done in the windows command prompt? I have searche all over for this answer but I haven't found anything conclusive.
Is This A Good Question/Topic? 0
  • +

Replies To: new to C#

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1638
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: new to C#

Posted 20 August 2007 - 02:03 PM

I don't understand you question?
Was This Post Helpful? 0
  • +
  • -

#3 itpro4470  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 156
  • Joined: 17-June 07

Re: new to C#

Posted 20 August 2007 - 02:22 PM

I mean like ping, tracert, dir commands Etc...
Was This Post Helpful? 0
  • +
  • -

#4 MorphiusFaydal  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 43
  • View blog
  • Posts: 1,376
  • Joined: 12-May 05

Re: new to C#

Posted 20 August 2007 - 06:22 PM

Are you talking about accessing external programs from within your program?
Was This Post Helpful? 0
  • +
  • -

#5 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1638
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: new to C#

Posted 20 August 2007 - 06:35 PM

itpro447,

I believe I understand what you're asking now. You're going to want to research the System.Diagnostic.Process class.

And for sending commands to the command window check out this snippet I wrote for performing an XCOPY in C#

XCOPY in C#

Hope this helps :)

Happy Coding!

This post has been edited by PsychoCoder: 20 August 2007 - 06:36 PM

Was This Post Helpful? 0
  • +
  • -

#6 itpro4470  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 156
  • Joined: 17-June 07

Re: new to C#

Posted 21 August 2007 - 05:02 AM

cool thanks psycho
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1