BleepingComputer.com: How do I automate command line?

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How do I automate command line? more programming than Windows

#1 User is offline   bigalexe 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 152
  • Joined: 04-April 08
  • Gender:Male
  • Location:Michigan, USA

Posted 21 November 2011 - 05:41 PM

Ok so how do I write a program or script to automate command line functions. Example being I want a shortcut to open the command line and run "ipconfig /all"

Yeah it's stupid simple but eventually I'd like to expand this to automate further functions.

Knowledge... C++.
AMD Phenom II X6 2.8ghz
8GB DDR3 RAM
XFX ATI Radeon HD6850 1 GB DDR5, 26" Widescreen HDMI
500GB + 80GB HDD
Windows 7 Pro, Mozilla Firefox, AutoCAD 2011, Solidworks 2009
1/19/2012

#2 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,425
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 21 November 2011 - 05:50 PM

Every command parser on every OS allows for some level of scripting. On Windows you can use a batch file, on Linux, Mac OS X, BSD, and others you can use a Bash script file. In both cases the files are basically lists of commands to carry out as if you were typing them one-at-a-time into the command line.

This post has been edited by Andrew: 21 November 2011 - 05:50 PM

Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users