Computer Tutorials Computer Help and Spyware Removal File DatabaseUninstall Database Windows Startup Programs Database Computer Resources Computer Glossary Forums Computer Help and Spyware Removal
 

  Have a problem and would like to ask us for help? To learn how to ask your question Click Here!
  Do you have popups or other malware infecting your computer? If so, Start Here!
  Are you having trouble using this site? Then you should visit the New User Orientation Center!



Home · Sections · Popular · New Tutorials

Enter keywords that you would like search our tutorials for:
Please note that all keywords must be 4 or more characters long.

 
 

How to find the command line arguments a program started with in Windows
by Bleeping Computer on 23rd of Nov 2006   (Views: 6,294)
Print Tutorial Tell a friend
 
Add to del.icio.us! · Submit to reddit! · digg it!

How to find the command line arguments a program started with in Windows

Watch the tutorial's companion video here!

Some programs provide the ability to add arguments when executing it in order to change a particular behavior or modify how the program operates. As an example lets look at the command line argument for Firefox called safe-mode. If you start Firefox with the command line firefox.exe -safe-mode Firefox will start without any extensions or themes. As you can see adding a command line argument to the program's executable changed its default behavior.

Now that we understand what command line arguments are, how do we determine what command line arguments a process was started with when we personally did not launch them? This guide will explain how to determine this information for all running processes on your computer. To accomplish this, we will use the Process Explorer utility created by Sysinternals.

To begin, you need to download Process Explorer from the following site:

Process Explorer Download Link

Download the file and save it to your hard drive. When it has finished downloading, extract the file and it will create a Process Explorer folder. Double-click on this folder and then double-click on the procexp.exe file to start the program. If this is your first time running the program, it will display a license agreement that you should agree to in order to start the program. When it is finished loading you will be presented with a screen containing all the running processes on your computer similar to the figure below.

Process Explorer
Process Explorer

The Process Explorer window is now open and listing all the processes currently running on your computer. In order to see the command line arguments each of these programs were started with we need to add an additional column to the display. To do this click on the View menu and then click on the Select Columns option. This will bring up a screen similar to the one below where you can select the columns of information that will be shown about each process in the main display.


Process Explorer - Select Columns Screen

Put a checkmark in the Command Line checkbox and then press the OK button. You will now be back at the main Process Explorer window, but now with an additional column. In order to see the command line you may have to maximize the screen and increase the width of the Command Line column seen as illustrated below.



Command Line arguments screen in Process Explorer

Using the information shown in these columns, you can now determine what arguments the various processes were started with and diagnose the function of the programs further.



Add to del.icio.us! · Submit to reddit! · digg it!


Created: November 23rd, 2006 at 10:53 pm

This article is published and created for http://www.bleepingcomputer.com, otherwise known as Bleeping Computer, and is covered by all copyright laws. All articles on this website are copyright ©  2003-2008 by Bleeping Computer, LLC. All right reserved. Use of these articles is limited to viewing and printing for personal use only. If you would like to use this material or portions of this material for other purposes you must receive explicit permission from Bleeping Computer before reprinting or redistributing this article in any medium.
Top Top
We have a total of (116) Tutorials in our Database & (10,408,589) Total Views
Google
Web BC



 







Advertise   |   About Us   |   Terms of Use   |   Privacy Policy   |   Contact Us   |   Site Map   |   Chat   |   Tutorials
Discussion Forums   |   The Computer Glossary   |   Resources   |   RSS Feeds   |   Startups   |   The File Database   |   Malware Removal Guides


© 2003-2008 All Rights Reserved Bleeping Computer LLC.
PGT: 0.07997 Queries: 8