Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Executable and parameters


  • Please log in to reply
1 reply to this topic

#1 WillyanGCaetano

WillyanGCaetano

  • Members
  • 13 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Minas Gerais, Brazil
  • Local time:06:22 AM

Posted 09 July 2009 - 07:03 PM

Hello Guys!

I wonder how it works and what the value of certain parameters that are attached executable which starts with Windows. An example:

O4 - HKCU\..\Run: [updateMgr] "C:\Program Files\Adobe\Acrobat 7.0\Reader\AdobeUpdateManager.exe" AcRdB7_0_9 -reboot

Several other types already present in logs as "-r", "-hide", "-background". It would be a way to behave once the executable to open? Example as in "hide," would "hide"?
I wish they had some material to explain it, put here.

:thumbsup:
WillyanGCaetano
Visit Linha Defensiva in Brazil !

BC AdBot (Login to Remove)

 


#2 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,259 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:02:22 AM

Posted 09 July 2009 - 07:15 PM

These are called arguments. What arguments an executable file accepts is decided by the original programmer.

For example, the -hide argument means absolutely nothing to Windows. It simply passes the string after the - sign directly to the executable. The executable then decides what to do with it based on whether the programmer wrote code to be executed when the -hide argument is passed. If no code exists, then the executable ignores it (or returns an error.)

The argument can be anything, it doesn't have to be a word or letter that gives a clue as to what it does. -hide could be programmed to make a window bounce around the screen playing Japanese Techno music at high volume, whereas the -sadfjsdbkgbn argument could tell the program to hack into the CIA mainframe and delete every file containing the letter "x" in the file name.

Many executables recognize the -?, -h, or -help arguments and will spit back a brief description of all valid arguments for that program. Note that not all executables will do this as it must be programmed into the executable just like any other argument.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users