[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-wpkg/sources/tools/ -> NirCmd.html (source)

   1  <HTML>
   2  <HEAD>
   3  <TITLE>NirCmd</TITLE>
   4  <!-- <link rel="stylesheet" href="main.css"> -->
   5  <style type="text/css">
   6  BODY {background-color: #F8F8F8; color: #000000;scrollbar-face-color: #DEE3E7;scrollbar-highlight-color: #FFFFFF;scrollbar-shadow-color: #DEE3E7;scrollbar-3dlight-color: #D1D8DD;scrollbar-arrow-color:  #006090;scrollbar-track-color: #EFEFEF;scrollbar-darkshadow-color: #98AAB0;}
   7  A:LINK {color: #8040FF }
   8  A:VISITED {color: #C020F0 }
   9  A:HOVER {color: #FF0099 }
  10  .title1 {border-width: 2;border-style: outset ; background-color: #0000E0; color: #FFFFFF; width: 100%;font-weight:700;font-family: Arial, Helvetica, sans-serif;font-size: 13pt;}
  11  .title2 {border-width: 1;border-style: outset; background-color: #C8C8C8;color: #000080; width: 100%; font-weight:700;font-family: Arial, Helvetica, sans-serif;font-size: 13pt;}
  12  .filestable {border-width: 0; background-color: #ECECEC; color: #000000; width: 100%}
  13  .filesrow {background-color: #E6E6E6; color: #000000;}
  14  .filetitle {font-size:medium; font-weight:700; font-weight:700;font-family: Arial, Helvetica, sans-serif;font-size: 12pt;}
  15  .faquestion {color: #404080; font-family: Arial, Helvetica, sans-serif; font-weight:700}
  16  .faqanswer {color: #0000A0; font-family: Arial, Helvetica, sans-serif}
  17  .thanks {color:#000080; font-size:large}
  18  .about {color:#000000;font-size:small;font-weight:700;color:#000000}
  19  .aboutexamples, .aboutexamples a:link, .aboutexamples a:visited {font-size:small;font-weight:700;color:#0080FF}
  20  .aboutexamples a:hover {font-size:small;font-weight:700;color:#00C0FF}
  21  .special1 {font-weight:700;color: #000080}
  22  .special2 {font-weight:700;color: #108040}
  23  .special3 {font-weight:700;color: #A04040}
  24  .special4 {font-weight:700;color: #e040e0}
  25  .special5 {color: #000060}
  26  .special6 {text-decoration: underline}
  27  .special7 {text-decoration: underline;font-weight:700}
  28  .special8 {font-weight:700}
  29  .special9 {font-weight:700;font-family: Arial, Helvetica, sans-serif;font-size: 11pt;color:#ff0000}
  30  .tablecol1 {font-weight:700;color: #800000}
  31  .utilcaption {font-family: Arial, Helvetica, sans-serif;font-size: 13pt;font-weight:700;color:#0040ff}
  32  .utilsubject {font-family: Arial, Helvetica, sans-serif;font-size: 13pt; color:#000080}
  33  .utiltableheader {color: #000000; background-color:#E0E0E0}
  34  .utiltablecells {border-width:2;border-style:inset}
  35  .downloadline {font-weight:700}
  36  .srccaption {color:#0040d0; font-weight:700;font-family: Arial, Helvetica, sans-serif;font-size: 13pt;}
  37  .vbsrccaption {color:#0040ff; width:100%; font-weight:700;font-family: Arial, Helvetica, sans-serif;font-size: 13pt;}
  38  .vcsrccaption {color:#0040ff; width:100%; font-weight:700;font-family: Arial, Helvetica, sans-serif;font-size: 13pt;}
  39  .vcsrccaption2 {color:#0040a0; font-weight:700;font-family: Arial, Helvetica, sans-serif;font-size: 11pt;}
  40  .vcstatement {color:#0000a0}
  41  .vbremarks {color:#008000}
  42  .vbdeclares {color:#000080}
  43  .vbsrcbg {background-color:#F0F0F0;width:100%}
  44  .vcsrcbg {background-color:#F0F0F0;width:100%}
  45  .srcbg {background-color:#F0F0F0;width:100%}
  46  .contactform {color: #000080; font-weight:700; background-color:#F0F0F0;}
  47  .contacttable {background-color:#E8E8E8; border-style:outset;border-width:2}
  48  .contactfield {font-weight:700;font-family: Arial, Helvetica, sans-serif;font-size: 11pt;}
  49  .whatsnew {font-size:large;font-weight:700;color:#000070}
  50  .whatsnewtablerow {font-weight:700;background-color:#F0F0F2}
  51  .awards {font-weight:700;background-color:#E0E0E0}
  52  .reftitle {font-family: Arial, Helvetica, sans-serif;font-size: 10pt;font-weight:700;color: #804040}
  53  .commandline{font-family: Arial, Helvetica, sans-serif;font-size: 10pt;font-weight:700;}
  54  .commandsyntax{font-family: Arial, Helvetica, sans-serif;font-size: 10pt;font-weight:700;color:#306080}
  55  .menu1 {color:#FFFFFF;background-color:#B0D0FF;font-weight:700;font-family: Arial, Helvetica, sans-serif;font-size: 11pt}
  56  .menu1 a:link, .menu1 a:visited {text-decoration: none;color:#0000ff}
  57  .menu1 a:hover {text-decoration: none;color:#ffffff}
  58  .siteheader {background-color: #D8E8F8}
  59  .infotable {Width:100%;font-family: Arial, Helvetica, sans-serif;font-weight:700}
  60  .infotablecap {Width:30%;background-color:#80D0FF;color:#000080;font-size: 11pt}
  61  .infotableval {background-color:#c0c0d0;font-size: 10pt}
  62  .toolstitle1 {background-color:#e0e0e0;font-family: Arial, Helvetica, sans-serif;font-size: 11pt;font-weight:700}
  63  .toolstitle2 {background-color:#f0f0f4}
  64  </style>
  65  </HEAD>
  66  <BODY>
  67  
  68  <table border="0" class="utilcaption">
  69  <tr>
  70  <td>NirCmd v2.00
  71  <br>
  72  Copyright (c) 2003 - 2007 Nir Sofer
  73  </table>
  74  
  75  <p>
  76  <a name="description"></a><h4 class="utilsubject">Description</h4>
  77  NirCmd is a small command-line utility that allows you to do some useful tasks without
  78  displaying any user interface. By running NirCmd with simple command-line option, you can
  79  write and delete values and keys in the Registry, write values into INI file, dial to your
  80  internet account or connect to a VPN network, restart windows or shut down the computer, 
  81  create shortcut to a file, change the created/modified date of a file, change your display
  82  settings, turn off your monitor, open the door of your CD-ROM drive, and more...
  83  
  84  
  85  <p>
  86  <a name="examples"></a><h4 class="utilsubject">Examples of what you can do with NirCmd</h4>
  87  <table border="1" cellpadding="5">
  88  <tr>
  89  <td width="50%">Open the door of J: CD-ROM drive
  90  <td nowrap>
  91  <span class="commandline">
  92  nircmd.exe cdrom open j: 
  93  </span>
  94  
  95  <tr>
  96  <td>Close the door of Y: CD-ROM drive
  97  <td class="commandline" nowrap>
  98  nircmd.exe cdrom close y: 
  99  
 100  <tr>
 101  <td>Increase the system volume by 2000 units (out of 65535)
 102  <td class="commandline" nowrap>
 103  nircmd.exe changesysvolume 2000
 104  
 105  <tr>
 106  <td>Decrease the system volume by 5000 units (out of 65535)
 107  <td class="commandline" nowrap>
 108  nircmd.exe changesysvolume -5000
 109  
 110  
 111  <tr>
 112  <td>Set the volume to the highest value
 113  <td class="commandline" nowrap>
 114  nircmd.exe setsysvolume 65535
 115  
 116  <tr>
 117  <td>Mute the system volume
 118  <td class="commandline" nowrap>
 119  nircmd.exe mutesysvolume 1
 120  
 121  <tr>
 122  <td>Unmute the system volume
 123  <td class="commandline" nowrap>
 124  nircmd.exe mutesysvolume 0
 125  
 126  <tr>
 127  <td>Switch the system volume between the mute and normal state.
 128  <td class="commandline" nowrap>
 129  nircmd.exe mutesysvolume 2
 130  
 131  <tr>
 132  <td>Create a shortcut on your desktop that switch the system volume between the mute and normal state.
 133  <td class="commandline">
 134  nircmd.exe cmdshortcut  &quot;~$folder.desktop$&quot; &quot;Switch Volume&quot; mutesysvolume 2
 135  
 136  <tr>
 137  <td>Turn off the monitor
 138  <td class="commandline" nowrap>
 139  nircmd.exe monitor off
 140  
 141  <tr>
 142  <td>Start the default screen saver
 143  <td class="commandline" nowrap>
 144  nircmd.exe screensaver  
 145  
 146  <tr>
 147  <td>Put your computer in 'standby' mode
 148  <td class="commandline" nowrap>
 149  nircmd.exe standby
 150  
 151  <tr>
 152  <td>
 153  log off the current user
 154  <td class="commandline" nowrap>
 155  nircmd.exe exitwin logoff
 156  
 157  <tr>
 158  <td>
 159  Ask if you want to reboot, and if you answer 'Yes', reboot the computer.
 160  <td class="commandline" nowrap>
 161  nircmd.exe qboxcom "Do you want to reboot ?" "question" exitwin reboot
 162  
 163  <tr>
 164  <td>
 165  Turn off your computer
 166  <td class="commandline" nowrap>
 167  nircmd.exe exitwin poweroff 
 168  
 169  
 170  <tr>
 171  <td>
 172  Turn off all computers specified in computers.txt !
 173  <td class="commandline" nowrap>
 174  multiremote copy &quot;c:\temp\computers.txt&quot; exitwin poweroff force 
 175  
 176  <tr>
 177  <td>Dial to &quot;My Internet&quot; connection 
 178  <td class="commandline" nowrap>
 179  nircmd.exe rasdial &quot;My Internet&quot;
 180  
 181  <tr>
 182  <td>Disconnect the &quot;My Internet&quot; connection 
 183  <td class="commandline" nowrap>
 184  nircmd.exe rashangup &quot;My Internet&quot;
 185  
 186  <tr>
 187  <td>Make your Internet Explorer windows 75% transparent ! (192 / 256)
 188  <td class="commandline" nowrap>
 189  nircmd.exe win trans ititle &quot;internet explorer&quot; 192
 190  
 191  <tr>
 192  <td>Minimize all your Internet Explorer windows 
 193  <td class="commandline" nowrap>
 194  nircmd.exe win min class &quot;IEFrame&quot; 
 195  
 196  <tr>
 197  <td>Close all your Internet Explorer windows 
 198  <td class="commandline" nowrap>
 199  nircmd.exe win close class &quot;IEFrame&quot; 
 200  
 201  <tr>
 202  <td>Close all your Explorer windows (My Computer, folders, and so on)
 203  <td class="commandline" nowrap>
 204  nircmd.exe win close class &quot;CabinetWClass&quot;
 205  
 206  <tr>
 207  <td>Hide all your Internet Explorer windows 
 208  <td class="commandline" nowrap>
 209  nircmd.exe win hide class &quot;IEFrame&quot; 
 210  
 211  <tr>
 212  <td>Show all your Internet Explorer windows (after you made them hidden with previous example)
 213  <td class="commandline" nowrap>
 214  nircmd.exe win show class &quot;IEFrame&quot; 
 215  
 216  <tr>
 217  <td>Center all top-level windows
 218  <td class="commandline" nowrap>
 219  nircmd.exe win center alltop
 220  
 221  <tr>
 222  <td>Remove the title bar of My Computer window.
 223  <td class="commandline" nowrap>
 224  nircmd.exe win -style title &quot;my computer&quot; 0x00C00000
 225  
 226  <tr>
 227  <td>Return the title bar of My Computer window that we removed in the previous example.
 228  <td class="commandline" nowrap>
 229  nircmd.exe win +style title &quot;my computer&quot; 0x00C00000
 230  
 231  
 232  <tr>
 233  <td>Set the My Computer window to right-to-left order (For hebrew and arabic languages)
 234  <td class="commandline" nowrap>
 235  nircmd win +exstyle title &quot;my computer&quot; 0x00400000
 236  
 237  
 238  <tr>
 239  <td>Set all child windows of  My Computer window to right-to-left order (For hebrew and arabic languages)
 240  <td class="commandline" nowrap>
 241  nircmd win child title &quot;my computer&quot; +exstyle all 0x00400000
 242  
 243  <tr>
 244  <td>Create a shortcut on your desktop that closes all your Internet Explorer windows 
 245  <td class="commandline">
 246  nircmd.exe cmdshortcut &quot; &quot;~$folder.desktop$ &quot;Close All IE&quot; win close class &quot;IEFrame&quot; 
 247  
 248  <tr>
 249  <td>Create a shortcut on your desktop that hides all your Internet Explorer windows 
 250  <td class="commandline">
 251  nircmd.exe cmdshortcut &quot; &quot;~$folder.desktop$ &quot;Hide All IE&quot; win hide class &quot;IEFrame&quot; 
 252  
 253  <tr>
 254  <td>Create a shortcut on your desktop that shows back all your Internet Explorer windows 
 255  <td class="commandline">
 256  nircmd.exe cmdshortcut &quot; &quot;~$folder.desktop$ &quot;Show All IE&quot; win show class &quot;IEFrame&quot; 
 257  
 258  <tr>
 259  <td>Set the Windows Calculator as top-most window (above all other windows)
 260  <td class="commandline" nowrap>
 261  nircmd.exe win settopmost title &quot;Calculator&quot; 1
 262  
 263  <tr>
 264  <td>Set the Windows Calculator back to regular window (non top-most window)
 265  <td class="commandline" nowrap>
 266  nircmd.exe win settopmost title &quot;Calculator&quot; 0
 267  
 268  <tr>
 269  <td>Create a shortcut to Windows calculator under Start Menu->Programs->Calculators 
 270  <td class="commandline">
 271  nircmd.exe shortcut &quot;f:\winnt\system32\calc.exe&quot; &quot;~$folder.programs$\Calculators&quot; &quot;Windows Calculator&quot; 
 272  
 273  <tr>
 274  <td>Hide the desktop window
 275  <td class="commandline" nowrap>
 276  nircmd.exe win hide class progman
 277  
 278  <tr>
 279  <td>Show the desktop window (After hiding it in previous example)
 280  <td class="commandline" nowrap>
 281  nircmd.exe win show class progman
 282  
 283  <tr>
 284  <td>Hide the start button on the system tray
 285  <td class="commandline" nowrap>
 286  nircmd.exe win child class &quot;Shell_TrayWnd&quot; hide class &quot;button&quot;
 287  
 288  
 289  <tr>
 290  <td>Show the start button on the system tray
 291  <td class="commandline" nowrap>
 292  nircmd.exe win child class &quot;Shell_TrayWnd&quot; show class &quot;button&quot;
 293  
 294  
 295  <tr>
 296  <td>Hide the clock on the system tray
 297  <td class="commandline" nowrap>
 298  nircmd.exe win child class "Shell_TrayWnd" hide class &quot;TrayClockWClass&quot;
 299  
 300  <tr>
 301  <td>Show the clock on the system tray
 302  <td class="commandline" nowrap>
 303  nircmd.exe win child class "Shell_TrayWnd" show class &quot;TrayClockWClass&quot; 
 304  
 305  <tr>
 306  <td>Kill (terminate) all instance of Internet Explorer processes
 307  <td class="commandline" nowrap>
 308  nircmd.exe killprocess iexplore.exe
 309  
 310  
 311  <tr>
 312  <td>Create a shortcut on your desktop that opens the door of K: CDROM drive when you run it.
 313  <td class="commandline">
 314  nircmd.exe cmdshortcut &quot;~$folder.desktop$&quot; &quot;Open CDROM&quot; cdrom open k:
 315  
 316  <tr>
 317  <td>Create a shortcut to NirSoft Web site on your desktop
 318  <td class="commandline" nowrap>
 319  nircmd.exe urlshortcut &quot;http://www.nirsoft.net&quot; &quot;~$folder.desktop$&quot; &quot;NirSoft&quot;
 320  
 321  <tr>
 322  <td>Add NirSoft Web site to your Favorities under Links folder.
 323  <td class="commandline">
 324  nircmd.exe urlshortcut &quot;http://www.nirsoft.net&quot; &quot;~$folder.favorites$\Links&quot; &quot;NirSoft&quot;
 325  
 326  <tr>
 327  <td>Create a shortcut to NirSoft Web site on the desktop of all computers listed in computers.txt
 328  <td class="commandline">
 329  nircmd.exe multiremote copy &quot;c:\temp\computers.txt&quot; urlshortcut &quot;http://www.nirsoft.net&quot; &quot;~$folder.common_desktop$&quot; &quot;NirSoft&quot;
 330  
 331  <tr>
 332  <td>Set the display mode to 800x600x24bit colors
 333  <td class="commandline" nowrap>
 334  nircmd.exe setdisplay 800 600 24
 335  
 336  <tr>
 337  <td>Create a shortcut on the desktop that set the display mode to 800x600x24bit colors
 338  <td class="commandline">
 339  nircmd.exe cmdshortcut &quot;~$folder.desktop$&quot &quot800x600x24&quot; setdisplay 800 600 24
 340  
 341  <tr>
 342  <td>Copy all shortcuts on your desktop to another folder (f:\temp\desktop).
 343  <td class="commandline">
 344  nircmd.exe execmd copy &quot;~$folder.desktop$\*.lnk&quot; f:\temp\desktop 
 345  
 346  <tr>
 347  <td>Restart your Apache server (under Windows NT/2000/XP/2003)
 348  <td class="commandline" nowrap>
 349  nircmd.exe service restart apache
 350  
 351  <tr>
 352  <td>Create a shortcut on your desktop that restarts the Apache server
 353  <td class="commandline">
 354  nircmd.exe cmdshortcut &quot;~$folder.desktop$&quot; &quot;Restart Apache&quot; service restart apache
 355  
 356  <tr>
 357  <td>Restart your IIS
 358  <td class="commandline" nowrap>
 359  nircmd.exe service restart w3svc 
 360  
 361  <tr>
 362  <td>Restart MySql
 363  <td class="commandline" nowrap>
 364  nircmd.exe service restart MySql 
 365  
 366  <tr>
 367  <td>Open the desired Registry key/value in RegEdit
 368  <td class="commandline">
 369  nircmd.exe regedit &quot;HKLM\Software\Microsoft\Windows\CurrentVersion&quot; &quot;CommonFilesDir&quot;
 370  
 371  
 372  <tr>
 373  <td>Open the Registry key that you copied to the clipboard in RegEdit.
 374  <td class="commandline">
 375  nircmd regedit &quot;~$clipboard$&quot;
 376  
 377  <tr>
 378  <td>Disable the screen saver
 379  <td class="commandline" nowrap>
 380  nircmd.exe regsetval sz &quot;HKCU\control panel\desktop&quot; &quot;ScreenSaveActive&quot; 0
 381  
 382  
 383  <tr>
 384  <td>Enable the screen saver
 385  <td class="commandline" nowrap>
 386  nircmd.exe regsetval sz &quot;HKCU\control panel\desktop&quot; &quot;ScreenSaveActive&quot; 1
 387  
 388  
 389  <tr>
 390  <td>Change the date/time of the specified filename (creation time and modified time)
 391  <td class="commandline">
 392  nircmd.exe setfiletime &quot;c:\temp\myfile.txt&quot; &quot;24-06-2003 17:57:11&quot; &quot;22-11-2005 10:21:56&quot; 
 393  
 394  
 395  <tr>
 396  <td>Copy your desktop folder path to the clipboard
 397  <td class="commandline">
 398  nircmd.exe clipboard set ~$folder.desktop$
 399  
 400  
 401  <tr>
 402  <td>Copy your start menu folder path to the clipboard
 403  <td class="commandline">
 404  nircmd.exe clipboard set ~$folder.start_menu$
 405  
 406  <tr>
 407  <td>Copy the content of info1.txt (simple text file) to the clipboard
 408  <td class="commandline">
 409  nircmd.exe clipboard readfile &quot;c:\My Files\info1.txt&quot;
 410  
 411  <tr>
 412  <td>Add the text content of clipboard to info1.txt
 413  <td class="commandline">
 414  nircmd.exe clipboard addfile &quot;c:\My Files\info1.txt&quot;
 415  
 416  <tr>
 417  <td>Clear the clipboard
 418  <td class="commandline">
 419  nircmd.exe clipboard clear
 420  
 421  <tr>
 422  <td>Create all folders specified in &quot;c:\temp\folders.txt&quot;. The folder path names are
 423  separated by CRLF characters.
 424  <td class="commandline">
 425  nircmd.exe paramsfile &quot;c:\temp\folders.txt&quot; &quot;&quot; &quot;&quot; execmd md ~$fparam.1$
 426  
 427  
 428  <tr>
 429  <td>Install the specified .NET assembly in the global assembly cache (like gacutil)
 430  <td class="commandline">
 431  nircmd.exe gac install &quot;C:\temp\MyAssembly\bin\MyAssembly.dll&quot;
 432  
 433  
 434  <tr>
 435  <td>Empty the recycle bin in all drives.
 436  <td class="commandline" nowrap>
 437  nircmd.exe emptybin 
 438  
 439  
 440  
 441  <tr>
 442  <td>Answer 'Yes' to a standard Windows message-box.
 443  <td class="commandline" nowrap>
 444  nircmd.exe dlg &quot;&quot; &quot;&quot; click yes
 445  
 446  
 447  
 448  
 449  </table>
 450  
 451  <p>
 452  <a name="sysreq"></a><h4 class="utilsubject">System Requirements</h4>
 453  This utility can work in all 32-bit Windows operating systems: Windows 9x/ME, 
 454  Windows NT, Windows 2000, and Windows XP.
 455  However, some of NirCmd commands works only on Windows NT/2000/XP.
 456  
 457  <a name="verhistory"></a><h4 class="utilsubject">Versions History</h4>
 458  <table border="1" cellpadding="5">
 459  <tr class="utiltableheader"><th>Date <th> Version <th> Description
 460  
 461  <tr><td>16/06/2007<td>2.00<td>
 462  <ul>
 463  <li>All sound volume commands and monitor command now works under Vista.
 464  <li>New commands: dlg, dlgany, sendkey, sendmouse, returnval
 465  <li>New actions in win command - dlgclick, dlgsettext, dlgsetfocus
 466  </ul>
 467  
 468  
 469  <tr><td>24/07/2006<td>1.85<td>
 470  <ul>
 471  <li>New command: cmdshortcutkey
 472  </ul>
 473  
 474  
 475  <tr><td>15/07/2006<td>1.84<td>
 476  <ul>
 477  <li>Starting from this version, if you don't specify a sound device index in setsysvolume, changesysvolume, setsysvolume2, changesysvolume2 and mutesysvolume commands, 
 478  the default sound device in control panel (&quot;preferred device&quot;) is used.
 479  <li>New find options in win command: active, foreground, desktop
 480  </ul>
 481  
 482  <tr><td>20/05/2006<td>1.83<td>
 483  <ul>
 484  <li>Fixed bug with parameter variables: parameter dialog-box appear more than once.
 485  <li>New find option in Win command: alltopnodesktop
 486  </ul>
 487  
 488  <tr><td>18/02/2006<td>1.82<td>
 489  <ul>
 490  <li>New win actions: postmsg and sendmsg.
 491  <li>New command: closeprocess
 492  <li>NirCmd now returns a non-zero value on error.
 493  </ul>
 494  
 495  <tr><td>19/11/2005<td>1.81<td>
 496  <ul>
 497  <li>New command: emptybin - Empty the Recycle Bin.
 498  <li>New optional parameter in setdisplay command: refresh rate.
 499  <li>rashangup command without parameter - disconnect all active connections.
 500  </ul>
 501  
 502  <tr><td>24/09/2005<td>1.80<td>
 503  <ul>
 504  <li>New commands: exec2, cmdwait.
 505  <li>New options in clipboard command.
 506  <li>Volume commands (setsysvolume, changesysvolume, setsysvolume2, changesysvolume2, mutesysvolume) now allows you to change the volume of non-default sound card.
 507  </ul>
 508  
 509  <tr><td>07/07/2005<td>1.70<td>
 510  <ul>
 511  <li>New win actions: activate, hideshow, +style, -style, +exstyle, -exstyle
 512  <li>New commands: movecursor, setcursor.
 513  <li>New command: setfilefoldertime - allows you to change the date/time of folders, under Windows 2000/XP only.
 514  </ul>
 515  
 516  <tr><td>10/06/2005<td>1.62<td>
 517  <ul>
 518  <li>New actions in win command: focus, enable, disable
 519  </ul>
 520  
 521  <tr><td>26/05/2005<td>1.61<td>
 522  <ul>
 523  <li>new command: sysrefresh - make a general system refresh after modifying your system settings in the Registry.
 524  </ul>
 525  
 526  
 527  <tr><td>07/05/2005<td>1.60<td>
 528  <ul>
 529  <li>New paramsfile command: Allows you to execute a command multiple times by loading the parameters from a text file.
 530  <li>New actions in win command: move, center, settext.
 531  <li>New 'child' action in win command: Allows you to move/hide child windows (For example: the start button in the system tray)
 532  <li>New clipboard command: Allows you to put a string in the clipboard, and clear the clipboard.
 533  <li>New gac command: Allows you to install assemblies in Global Assembly Cache.
 534  
 535  </ul>
 536  
 537  <tr><td>28/12/2004<td>1.56<td>
 538  <ul>
 539  <li>New variable: ~$clipboard$ - paste the text that you copied to the clipboard into the command-line.
 540  <li>Parameter variables: ~$param.ParamName$ - Display an input window for typing the text that you want insert into the command-line.
 541  </ul>
 542  
 543  <tr><td>07/12/2004<td>1.55<td>
 544  Added RegEdit command.
 545  
 546  <tr><td>18/11/2004<td>1.54<td>
 547  <ul>
 548  <li>On reg commands (regsetval, regdelval, regdelkey), you can now also use the following 
 549  abbreviated key name: HKCU for HKEY_CURRENT_USER, HKLM for HKEY_LOCAL_MACHINE, HKCR for HKEY_CLASSES_ROOT, HKU for HKEY_USERS,
 550  HKCC for HKEY_CURRENT_CONFIG.
 551  <li>redraw action for win command.
 552  </ul>
 553  
 554  <tr><td>03/11/2004<td>1.53<td>
 555  Fixed 'monitor off' problem in XP SP2.
 556  
 557  <tr><td>09/10/2004<td>1.52<td>
 558  rasapi32.dll is now loaded only when using the dial commands (rasdial, rasdialdlg, rashangup).
 559  In previous versions, NirCmd was statically linked to rasapi32.dll, and that caused problems in old NT systems.
 560  
 561  <tr><td>29/09/2004<td>1.51<td>
 562  Variable names are now enclosed with '$' char instead of '%' char.
 563  <br>
 564  I made this change because the '%' char causes problems when running NirCmd from cmd/bat file.
 565  using the '%' char for variable names is still supported for backward compatibility.
 566  
 567  
 568  
 569  <tr><td>22/09/2004<td>1.50<td>
 570  <ul>
 571  <li>New commands: cmdshortcut, regsvr, mutesysvolume, changesysvolume, changesysvolume2, setsysvolume2.
 572  <li>New actions in win command: trans, setsize, settopmost, ititle.
 573  <li>New variables: folder.nircmd, nir.exefile
 574  <li>nircmdc.exe - console version of NirCmd.
 575  <li>Changed name - from NirComLime to NirCmd.
 576  </ul>
 577  
 578  <tr><td>05/05/2004<td>1.40<td>
 579  <ul>
 580  <li>New commands: wait, setvolume, setsysvolume, execmd, exec.
 581  <li>New commands for executing NirCmd on remote machines: remote and multiremote.
 582  <li>Folder and system variables.
 583  <li>New option in setfiletime command - set the file time to the current time (now parameter)
 584  <li>New parameter in shortcut command - hot key.
 585  
 586  </ul>
 587  
 588  <tr><td>01/03/2004<td>1.30<td>
 589  <ul>
 590  <li>New commands: qboxcom, beep, stdbeep, cdrom, urlshortcut, monitor, screensaver, standby, and hibernate.
 591  <li>Fixed the bug with ~x string sequences.
 592  </ul>
 593  
 594  <tr><td>08/01/2004<td>1.20<td>
 595  <ul>
 596  <li>New commands: setdialuplogon, script
 597  <li>Special string sequences (~q, ~t, ~n and so on) to allow you to embed quotes and new line characters into the parameters of any command.
 598  </ul>
 599  <tr><td>19/11/2003<td>1.11<td>
 600  New options in shortcut command
 601  
 602  <tr><td>10/10/2003<td>1.10<td>
 603  New commands: killprocess, service, memdump, win, lockws.
 604  <tr><td>09/09/2003<td>1.00<td>
 605  First release.
 606  </table>
 607  
 608  <p>
 609  <h4 class="utilsubject">License</h4>
 610  This utility is released as freeware. 
 611  You are allowed to freely distribute this utility via floppy disk, CD-ROM, 
 612  Internet, or in any other way, as long as you don't charge anything for this.  
 613  If you distribute this utility, you must include all files in
 614  the distribution package, without any modification !
 615  
 616  
 617  <p>
 618  <a name="using"></a><h4 class="utilsubject">Using NirCmd utility</h4>
 619  This utility is a standalone executable, and it doesn't require any installation process
 620  or additional DLLs. just copy the executable to any folder you want, and run it
 621  with the desired command-line option, according to your needs.
 622  <br>
 623  It's recommended to copy the executable of NirCmd (nircmd.exe) to your windows directory,
 624  or to any other folder listed in your PATH environment variable, so you won't need to type the full path of nircmd in each time that you want to use it.
 625  <br>
 626  Starting from version 1.50, console version of NirCmd (nircmdc.exe) is also available.
 627  In the console version, all error messages goes to the console window, instead of using a message box.
 628  <p>
 629  <h4 class="utilsubject">General Syntax Of NirCmd</h4>
 630  <span class="commandline">nircmd.exe {showerror} [command] [command parameters]</span>
 631  <br>
 632  The <span class="commandline">showerror</span> parameter is optional.
 633  If you specify this parameter, an error message will be displayed on the screen
 634  if an error is occurred during the execution of the command. Otherwise, any error will be ignored.
 635  For example:
 636  <br>
 637  nircmd.exe showerror rasdial "dial1"
 638  <br>
 639  nircmd.exe rasdial "dial1"
 640  <br>
 641  In above 2 examples, NirCmd will try to dial with the "dial1" entry.
 642  If the dialing process is failed on the first example, an error message describing the problem
 643  will be displayed. If the dialing process is failed on the second example, error message
 644  won't be displayed.
 645  
 646  <p>
 647  <a name="spstrseq"></a><h4 class="utilsubject">Special String Sequences</h4>
 648  Starting from version 1.20, NirCmd allows you to insert special characters into any parameter in NirCmd commands.
 649  <br>
 650  The following table describes the special string Sequences that you can use:
 651  <table border="1" cellpadding="6" bordercolor="#000000" width="100%">
 652  <tr class="utiltableheader"><th width="80" nowrap> 
 653  Sequence
 654  <th>
 655  Description
 656  
 657  
 658  <tr>
 659  <td>
 660  ~n
 661  <td>
 662  New line characters (CR-LF)
 663  
 664  <tr>
 665  <td>
 666  ~q
 667  <td>
 668  Double-quote character: &quot;
 669  
 670  <tr>
 671  <td>
 672  ~t
 673  <td>
 674  Tab character
 675  
 676  
 677  <tr>
 678  <td>
 679  ~xnn
 680  <td>
 681  Allows you to represent any character by providing its ascii code in 2-digit Hexadecimal number.
 682  <br>
 683  For Example: ~x41 ('A' character), ~x27 (single-quote character)
 684  
 685  <tr>
 686  <td>
 687  ~$variable$
 688  <td>
 689  Represents a system variable. 
 690  For more information about this option, <a href="#sysvar">read below</a>
 691  
 692  <tr>
 693  <td>
 694  ~~
 695  <td>
 696  Represents a single '~' character.
 697  </table>
 698  <p>
 699  Example:
 700  <br>
 701  <span class="commandline">
 702  infobox "This is the first line~n~qThis is a second line, in quotes~q" "Example"
 703  </span>
 704  <br>
 705  The above example displays a message-box containing 2 lines.
 706  
 707  <p>
 708  <a name="sysvar"></a><h4 class="utilsubject">System Variables</h4>
 709  Starting from version 1.40, NirCmd provides special variables that represents folders and
 710  other variables on your system. Each variable starts with '~' character, followed by
 711  the variable name enclosed with '$' characters. For example: ~$folder.desktop$ represents
 712  your desktop folder.
 713  <p>
 714  The following table specifies the variables that you can use:
 715  
 716  <table border="1" cellpadding="6" bordercolor="#000000" width="100%">
 717  <tr class="utiltableheader">
 718  <th nowrap>Variable Name 
 719  <th nowrap>Description 
 720  
 721  <tr>
 722  <td>
 723  clipboard
 724  <td>
 725  Represents the text that you copied into the clipboard.
 726  
 727  <tr>
 728  <td>
 729  param.paramname
 730  <td>
 731  When you specify a param variable, an input window will appear on the screen,
 732  and will ask you to type the text for this variable.
 733  The text that you type will be inserted into the command line.
 734  <br>
 735  For example: in the following command, you will be asked to type 2 parameters (1 and 2),
 736  and the text that you type will appear in the message box.
 737  <br>
 738  nircmd infobox ~$param.1$ ~$param.2$
 739  <p>
 740  
 741  
 742  <tr>
 743  <td>
 744  fparam.number
 745  <td>
 746  Sepcifies a parameter loaded from a text file.
 747  For more information, see <a href="#paramsfile">paramsfile command</a>
 748  <tr>
 749  <td>
 750  sys.varname
 751  <td>
 752  You can use this option to represent any environment variable on your system.
 753  <br>
 754  For example:<br> ~$sys.username$, ~$sys.windir$, ~$sys.computername$, ~$sys.logonserver$, ~$sys.temp$, and so on...
 755  
 756  
 757  <tr>
 758  <td>
 759  nir.exefile
 760  <td>
 761  Represents the full-path exe file of the current running NirCmd (For example: c:\winnt\nircmd.exe)
 762  
 763  <tr>
 764  <td>
 765  folder.nircmd
 766  <td>
 767  Represents the folder the NirCmd is running from. 
 768  
 769  
 770  <tr>
 771  <td>
 772  folder.desktop
 773  <td>
 774  Represents the user's desktop folder. 
 775  
 776  <tr>
 777  <td>
 778  folder.start_menu
 779  <td>
 780  Represents the user's start-menu folder. 
 781  
 782  <tr>
 783  <td>
 784  folder.programs
 785  <td>
 786  Represents the user's programs folder (under the start-menu folder). 
 787  
 788  <tr>
 789  <td>
 790  folder.startup
 791  <td>
 792  Represents the user's startup folder. 
 793  
 794  <tr>
 795  <td>
 796  folder.recent
 797  <td>
 798  Represents the user's recent folder. 
 799  
 800  <tr>
 801  <td>
 802  folder.favorites
 803  <td>
 804  Represents the user's favorites folder. 
 805  
 806  <tr>
 807  <td>
 808  folder.cookies
 809  <td>
 810  Represents the user's cookies folder. 
 811  
 812  <tr>
 813  <td>
 814  folder.appdata
 815  <td>
 816  Represents the user's Application Data folder. (For example: C:\Documents and Settings\Administrator\Application Data)
 817  
 818  <tr>
 819  <td>
 820  folder.common_desktop
 821  <td>
 822  Represents the common desktop folder. 
 823  
 824  <tr>
 825  <td>
 826  folder.common_start_menu
 827  <td>
 828  Represents the common start menu folder. 
 829  
 830  <tr>
 831  <td>
 832  folder.common_programs
 833  <td>
 834  Represents the common programs folder. 
 835  
 836  <tr>
 837  <td>
 838  folder.common_startup
 839  <td>
 840  Represents the common startup folder. 
 841  
 842  <tr>
 843  <td>
 844  folder.common_favorites
 845  <td>
 846  Represents the common favorites folder. 
 847  
 848  <tr>
 849  <td>
 850  folder.windows
 851  <td>
 852  Represents the windows folder. (e.g.: C:\Windows)
 853  
 854  <tr>
 855  <td>
 856  folder.system
 857  <td>
 858  Represents the system folder. (e.g.: C:\Windows\System32)
 859  
 860  </table>
 861  <p>
 862  Examples:
 863  <ul>
 864  <li>Create a shortcut under the start menu-programs folder:
 865  <br>
 866  <span class="commandline">
 867  shortcut &quot;c:\winnt\system32\calc.exe&quot; &quot;~$folder.programs$\My Programs&quot; &quot;Calculator&quot;
 868  </span>
 869  
 870  <li>Delete a shortcut in the user's desktop:
 871  <br>
 872  <span class="commandline">
 873  execmd del &quot;~$folder.desktop$\calc.lnk&quot;
 874  </span>
 875  
 876  <li>Display the current logged-on user:
 877  <br>
 878  <span class="commandline">
 879  infobox &quot;The current logged-on user is ~$sys.username$&quot; &quot;logged-on user&quot;
 880  </span>
 881  </ul>
 882  
 883  <p>
 884  <h4 class="utilsubject">Executing NirCmd commands on remote computers</h4>
 885  Starting from version 1.40, you can execute all NirCmd commands in remote computers.
 886  However, you should be aware of the following restrictions and problems:
 887  <ul>
 888  <li>This option is only available for Windows NT, Windows 2000 and Windows XP.
 889  You cannot use it on Windows 9x machines.
 890  <li>You must log on to the remote machine as administrator.
 891  <li>The Schedule service in the remote machine must be started. 
 892  (By default, the Schedule service is automatically started in all NT/2000/XP machines, so
 893  you don't have to worry too much about this)
 894  <li>Due to some limitations of the Schedule service, you have to wait up to 60 seconds
 895  until the command is actually executed in the remote machine. 
 896  <li>The command in the remote machine is executed under 'SYSTEM' account, and thus some
 897  commands may not work in the same way as you execute them locally. 
 898  </ul>
 899  <p>
 900  There are 2 commands for executing NirCmd in remote machines:
 901  <ul>
 902  <li><a href="#command_remote">remote</a> - for executing command on a single remote computer.
 903  <li><a href="#command_multiremote">multiremote</a> - for executing command on multiple remote computers.
 904  </ul>
 905  
 906  <p>
 907  <a name="commands"></a><h4 class="utilsubject">NirCmd Commands</h4>
 908  <table border="1" cellpadding="6" bordercolor="#000000" width="100%">
 909  <tr class="utiltableheader"><th width="80"> <nobr>Command</nobr> <th>Syntax And Description
 910  
 911  <a name="command_remote"></a>
 912  <tr>
 913  <td class="tablecol1">remote
 914  <td>
 915  <h6 class="commandsyntax">
 916  remote {copy} [\\computer] [NirCmd command]
 917  </h6>
 918  Executes NirCmd command in a remote computer.
 919  if <span class="commandsyntax">{copy}</span> parameter is specified, NirCmd will copy
 920  itself to the Windows directory of the remote machine. You must specify this parameter if 
 921  NirCmd doesn't exist in the Windows directory of the remote machine. 
 922  <br>
 923  Examples:
 924  <br>
 925  <span class="commandline">
 926  <br>remote copy \\comp1 exitwin poweroff
 927  <br>remote \\comp2 infobox &quot;This is a message from NirCmd&quot; &quot;Hello !&quot;
 928  <br>remote \\comp3 lockws
 929  </span>
 930  
 931  <a name="command_multiremote"></a>
 932  <tr>
 933  <td class="tablecol1">multiremote
 934  <td>
 935  <h6 class="commandsyntax">
 936  multiremote {copy} [computers file] [NirCmd command]
 937  </h6>
 938  Executes NirCmd command in multiple remote machines.
 939  if <span class="commandsyntax">{copy}</span> parameter is specified, NirCmd will copy
 940  itself to the Windows directory of the remote machines. You must specify this parameter if 
 941  NirCmd doesn't exist in the Windows directory of the remote machines. 
 942  <br>
 943  The <span class="commandsyntax">[computers file]</span> parameter is a file that contains
 944  the computers list separated by Enter characters (CRLF).
 945  <br>Example for computers list file:
 946  <pre>
 947  \\comp1
 948  \\comp2
 949  \\winxp1
 950  \\winxp2
 951  \\nirsoft
 952  </pre>
 953  <br>
 954  The command specified in <span class="commandsyntax">[NirCmd command]</span>
 955  will be executed in all computers specified in the computers file.
 956  <br>Examples:
 957  <ul>
 958  <li>Turn off all computers specified in computers.txt
 959  <br>
 960  <span class="commandline">
 961  multiremote &quot;c:\temp\computers.txt&quot; exitwin poweroff force
 962  </span>
 963  
 964  <li>Lock all computers specified in computers.txt
 965  <br>
 966  <span class="commandline">
 967  multiremote &quot;c:\temp\computers.txt&quot; lockws
 968  </span>
 969  
 970  <li>Copy NirCmd to all computers specified in computers.txt, and then turn off their monitors.
 971  <br>
 972  <span class="commandline">
 973  multiremote copy &quot;c:\temp\computers.txt&quot; monitor off
 974  </span>
 975  <li>Copy NirCmd to all computers specified in computers.txt, and run WinUpdatesList utility in order to save Windsows Updates info in all computers.
 976  <br>
 977  <span class="commandline">
 978  multiremote copy &quot;c:\temp\computers.txt&quot; exec hide c:\temp\wul.exe /shtml &quotc:\temp\wul_~$sys.computername$.html&quot
 979  </span>
 980  </ul>
 981  
 982  <tr>
 983  <a name="cmdwait"></a>
 984  <td class="tablecol1">cmdwait
 985  <td>
 986  <h6 class="commandsyntax">
 987  cmdwait [Number of Milliseconds] [NirCmd Command]
 988  </h6>
 989  Wait the specified number of Milliseconds, and then execute the specified NirCmd command.
 990  
 991  <p>
 992  Example:
 993  <br>
 994  <span class="commandline">
 995  cmdwait 1000 monitor off
 996  </span>
 997  
 998  <tr>
 999  <a name="paramsfile"></a>
1000  <td class="tablecol1">paramsfile
1001  <td>
1002  <h6 class="commandsyntax">
1003  paramsfile [Parameters File] [Delimiters] [Quote Character] [NirCmd Command]
1004  </h6>
1005  This powerfull command allows you to execute NirCmd Command multiple times, by loading
1006  one or more parameters from a text file. The text file can be comma-delimited, tab-delimited,
1007  semicolon-delimited, or delimited by any char that you specify in [Delimiters] parameter.
1008  <p>
1009  Here's an example... Let's say that you have the following text file, containing 
1010  user names and passwords, delimited by comma:
1011  <pre class="srcbg">
1012  user01, 123456
1013  user02, abcfg
1014  user03, 5fr23
1015  user04, 33333
1016  </pre>
1017  <p>
1018  The following NirCmd commands sequence will create 4 users with the specified user-names and passwords (by using 'net user' command provided by Windows 2000/XP operating system)
1019  <br>
1020  nircmd.exe paramsfile "c:\temp\users.txt" "," "" execmd net user ~$fparam.1$ ~$fparam.2$ /add
1021  <p>
1022  The ~$fparam.1$ specifies the first entry in each line - the user name.
1023  The ~$fparam.2$ specifies the second entry in each line - the password.
1024  
1025  <p>
1026  Examples:
1027  <br>
1028  <span class="commandline">
1029  <br>paramsfile &quot;c:\temp\folders.txt&quot; &quot;&quot; &quot;&quot; execmd md ~$fparam.1$
1030  <br>paramsfile &quot;c:\temp\shortcuts.txt&quot; &quot;,&quot; &quot;~q&quot; shortcut ~$fparam.1$ &quot~$folder.desktop$&quot ~$fparam.2$
1031  </span>
1032  
1033  
1034  <tr>
1035  <td class="tablecol1">infobox
1036  <td>
1037  <h6 class="commandsyntax">
1038  infobox [message text] [title]
1039  </h6>
1040  Displays a simple message box on the screen.
1041  <br>
1042  Example:
1043  <br>
1044  <span class="commandline">
1045  infobox "This is a message box !" "message"
1046  </span>
1047  
1048  
1049  
1050  <tr>
1051  <td class="tablecol1">qbox
1052  <td>
1053  <h6 class="commandsyntax">
1054  qbox [message text] [title] [program to run]
1055  </h6>
1056  Displays a question dialog-box on the screen. If the user answers "Yes", run a program
1057  <br>
1058  Example:
1059  <br>
1060  <span class="commandline">
1061  qbox "Do you want to run the calculator ?" "question" "calc.exe"
1062  </span>
1063  
1064  <tr>
1065  <td class="tablecol1">qboxcom
1066  <td>
1067  <h6 class="commandsyntax">
1068  qboxcom [message text] [title] [NirCmd Command]
1069  </h6>
1070  Displays a question dialog-box on the screen. If the user answers "Yes", execute the
1071  NirCmd command in the third parameter.
1072  <br>
1073  Examples:
1074  <br>
1075  <span class="commandline">
1076  qboxcom "Do you want to lock your workstation ?" "question" lockws
1077  <br>
1078  qboxcom "Do you want to turn off the monitor ?" "monitor"  monitor off
1079  </span>
1080  
1081  
1082  <tr>
1083  <td class="tablecol1">script
1084  <td>
1085  <h6 class="commandsyntax">
1086  script [Script File]
1087  </h6>
1088  This command allows you to execute a sequence of commands stored inside the file specified
1089  in <span class="commandsyntax">[Script File]</span> parameter.
1090  <br>
1091  Example:<br>
1092  <span class="commandline">
1093  script "c:\temp\msg.ncl"
1094  </span>
1095  <br>
1096  Example for a script:
1097  <pre class="commandline">
1098  infobox "Hello !" "This is the first message"
1099  infobox "Hello !" "This is the second message"
1100  infobox "Hello !" "This is the third message"
1101  </pre>
1102  
1103  
1104  <tr>
1105  <td class="tablecol1">regedit
1106  <td>
1107  <h6 class="commandsyntax">
1108  regedit [key] [value name]
1109  </h6>
1110  Opens RegEdit with the specified key/value.
1111  <br>
1112  Examples:
1113  <span class="commandline">
1114  <br>regedit &quot;HKLM\Software\Microsoft\Windows\CurrentVersion&quot; &quot;CommonFilesDir&quot; 
1115  <br>regedit &quot;HKEY_CURRENT_USER\Control Panel\Desktop&quot; &quot;Wallpaper&quot;
1116  </span>
1117  
1118  
1119  <tr>
1120  <td class="tablecol1">regsetval
1121  <td>
1122  <h6 class="commandsyntax">
1123  regsetval [type] [key] [value name] [value]
1124  </h6>
1125  Writes a value to the Registry. the <span class="commandsyntax">[type]</span> parameter can
1126  be "sz" or "expand_sz" for strings, "dword" for 32-bit number, or "binary" for
1127  binary data. If the key you specify in <span class="commandsyntax">[key]</span> parameter
1128  doesn't exist, it'll automatically be created.
1129  <br>
1130  Examples:
1131  <span class="commandline">
1132  <br>regsetval dword "HKEY_CURRENT_USER\Software\Test" "Value1" "0xaabbccdd"
1133  <br>regsetval dword "HKCU\Software\Test" "Value2" "10561"
1134  <br>regsetval sz "HKCU\Software\Test" "Value3" "string value"
1135  <br>regsetval binary "HKLM\Software\Test" "Value4" "6a cb ab dd 80 86 95"
1136  </span>
1137  
1138  
1139  
1140  <tr>
1141  <td class="tablecol1">regdelval
1142  <td>
1143  <h6 class="commandsyntax">
1144  regdelval [key] [value]
1145  </h6>
1146  Deletes a value from the Registry. 
1147  <br>
1148  Example:
1149  <br>
1150  <span class="commandline">
1151  regdelval "HKEY_CURRENT_USER\Software\Test" "Value1"
1152  </span>
1153  
1154  
1155  <tr>
1156  <td class="tablecol1">regdelkey
1157  <td>
1158  <h6 class="commandsyntax">
1159  regdelkey [key]
1160  </h6>
1161  Deletes entire key from the Registry. 
1162  This command will failed if the specified key has one or more subkeys.
1163  <br>
1164  Example:
1165  <br>
1166  <span class="commandline">
1167  regdelkey "HKEY_CURRENT_USER\Software\Test"
1168  </span>
1169  
1170  
1171  <tr>
1172  <td class="tablecol1">inisetval
1173  <td>
1174  <h6 class="commandsyntax">
1175  inisetval [INI filename] [section] [key] [value]
1176  </h6>
1177  Writes a value into INI file. If the file doesn't exist, it'll automatically be created.
1178  <br>
1179  Example:
1180  <br>
1181  <span class="commandline">
1182  inisetval "c:\windows\test.ini" "section1" "TestValue" "1"
1183  </span>
1184  
1185  
1186  <tr>
1187  <td class="tablecol1">inidelval
1188  <td>
1189  <h6 class="commandsyntax">
1190  inidelval [INI filename] [section] [key]
1191  </h6>
1192  Deletes a key-value pair inside INI file. 
1193  <br>
1194  Example:
1195  <br>
1196  <span class="commandline">
1197  inidelval "c:\windows\test.ini" "section1" "TestValue"
1198  </span>
1199  
1200  
1201  
1202  <tr>
1203  <td class="tablecol1">inidelsec
1204  <td>
1205  <h6 class="commandsyntax">
1206  inidelval [INI filename] [section]
1207  </h6>
1208  Deletes entire section in INI file, including all values in it. 
1209  <br>
1210  Example:
1211  <br>
1212  <span class="commandline">
1213  inidelsec "c:\windows\test.ini" "section1" 
1214  </span>
1215  
1216  <tr>
1217  <td class="tablecol1">regsvr
1218  <td>
1219  <h6 class="commandsyntax">
1220  regsvr [reg or unreg] [filename or wildcard] {log file}
1221  </h6>
1222  Register or unregister DLL/OCX files.
1223  <br>In the first parameter, specify &quot;reg&quot; for registering files, or &quot;unreg&quot; for unregistering files.
1224  <br>In the second parameter, you can specify a single file that you want to register or unregister, or multiple files, by using wildcard.
1225  <br>The third parameter is optional, and specifies a log filename for saving the results of the registering operation.
1226  <br>
1227  Examples:
1228  <span class="commandline">
1229  <br>regsvr reg &quot;f:\winnt\system32\fv*.ocx&quot; &quot;c:\temp\log1.txt&quot; 
1230  <br>regsvr unreg &quot;f:\winnt\system32\ab*.dll&quot;  
1231  </span>
1232  
1233  
1234  <tr>
1235  <td class="tablecol1">rasdial
1236  <td>
1237  <h6 class="commandsyntax">
1238  rasdial [Entry Name] {Phonebook File} {User Name} {Password} {Domain}
1239  </h6>
1240  Dials to RAS entry (VPN or phone line), without displaying any user interface.
1241  Except the [Entry Name] parameter, all other parameters are optional.
1242  If you don't specify the optional parameters or you specify empty string (""),
1243  the default values are used.
1244  <br>
1245  Examples:
1246  <span class="commandline"><br>
1247  rasdial "My Internet"<br>
1248  rasdial "VPN1" "" "user1" "abc1234" "domain1"
1249  </span>
1250  
1251  
1252  <tr>
1253  <td class="tablecol1">inetdial
1254  <td>
1255  <h6 class="commandsyntax">
1256  inetdial [Entry Name] 
1257  </h6>
1258  Dials to RAS entry (VPN or phone line), and display informational dialog-box during the dialing process.
1259  <br>
1260  This command is only supported If Internet Explorer version 4.0 or greater is installed.
1261  Be aware that this command might not work on old versions of Windows 98.
1262  
1263   
1264  <br>
1265  Examples:
1266  <span class="commandline"><br>
1267  inetdial "VPN1"
1268  </span>
1269  
1270  
1271  
1272  
1273  <tr>
1274  <td class="tablecol1">rasdialdlg
1275  <td>
1276  <h6 class="commandsyntax">
1277  rasdialdlg [Entry Name] {Phonebook File} {Phone Number or IP Address}
1278  </h6>
1279  Displays a RAS entry for dialing. The <span class="commandsyntax">{Phonebook File}</span> and <span class="commandsyntax">{Phone Number}</span> parameters are
1280  optional. If you don't specify the <span class="commandsyntax">{Phonebook File}</span> parameter or you specify an empty string
1281  ,the default phonebook is used.
1282  <br>
1283  This command is only supported on Windows NT, Windows 2000, and Windows XP.
1284  It's not supported on Windows 98/ME. 
1285  <br>
1286  Examples:
1287  <span class="commandline"><br>
1288  rasdialdlg "Internet1" "" "9876543"<br>
1289  rasdialdlg "VPN1"
1290  </span>
1291  
1292  
1293  
1294  <tr>
1295  <td class="tablecol1">rashangup
1296  <td>
1297  <h6 class="commandsyntax">
1298  rashangup {Entry Name}
1299  </h6>
1300  Hangs up a RAS connection. 
1301  You can use this command to disconnect a connection that you previously created
1302  with inetdial or rasdial commands.
1303  
1304  If you don't specify the {Entry Name} parameter, all active connections will be disconnected.
1305  
1306  <br>
1307  Examples:
1308  <span class="commandline">
1309  <br>rashangup "VPN1"
1310  <br>rashangup
1311  </span>
1312  
1313  
1314  <tr>
1315  <td class="tablecol1">setdialuplogon
1316  <td>
1317  <h6 class="commandsyntax">
1318  setdialuplogon [Entry Name] [User Name] {Password} {Domain} {Phonebook File}
1319  </h6>
1320  Modifies the user name, password and domain of a dial-up item.
1321  <br>
1322  The parameters:
1323  <ul>
1324  <li><span class="commandsyntax">[Entry Name]</span>: The name of the dial-up entry
1325  <li><span class="commandsyntax">[User Name]</span>: The user-name to set into the specified dial-up entry. 
1326  <li><span class="commandsyntax">{Password}</span>: The password to set into the specified dial-up entry.
1327  <li><span class="commandsyntax">{Domain}</span>: The domain name to set into the specified dial-up entry.
1328  <li><span class="commandsyntax">{Phonebook File}</span>: The phonebook file containing the entry you want to change.
1329  If you don't specify this parameter, the default phonebook is used.
1330  </ul>
1331  Examples:
1332  <span class="commandline">
1333  <br>setdialuplogon "VPN1" "user1" "asder443" "domain1"
1334  <br>setdialuplogon "Internet1" "nirs3" "q5r4df7yh5"
1335  </span>
1336  
1337  
1338  <tr>
1339  <td class="tablecol1">exitwin
1340  <td>
1341  <h6 class="commandsyntax">
1342  exitwin [shutdown type] {additional option}
1343  </h6>
1344  This command terminates the current session of Windows.
1345  The <span class="commandsyntax">[shutdown type]</span> parameter can be one of the following values:
1346  <ul>
1347  <li><span class="special2">logoff</span>: Shut down all running processes, log off the current user, and display
1348  the log on dialog to allow another user to log into the system.
1349  <li><span class="special2">reboot</span>: Shut down the entire system, and then reboot.
1350  <li><span class="special2">poweroff</span>: Shut down the entire system, and then turn off the power. (Only for systems that support this feature !)
1351  <li><span class="special2">shutdown</span>: Simply shut down the entire system, without reboot and without turning the power off. 
1352  </ul>
1353  You can also use one of the following additional options:
1354  <ul>
1355  <li><span class="special2">force</span>: Forces all applications to terminate immediately. 
1356  Using this option can caused the current running application to lose data.
1357  Use it only in extreme cases !
1358  
1359  <li><span class="special2">forceifhung</span>: Forces applications to terminate if they are not responding.
1360  This option is only available in Windows 2000/XP. 
1361  </ul>
1362   
1363  <br>
1364  Examples:
1365  <span class="commandline"><br>
1366  exitwin reboot<br>
1367  exitwin poweroff force<br>
1368  exitwin logoff forceifhung
1369  </span>
1370  
1371  
1372  <tr>
1373  <td class="tablecol1">initshutdown
1374  <td>
1375  <h6 class="commandsyntax">
1376  initshutdown {message} {timeout value in seconds} {force} {reboot}
1377  </h6>
1378  Initiate a system shutdown. This command is somewhat similar to exitwin command, but
1379  it has some other features that exitwin doesn't support. This command is not supported
1380  on Windows 95/98/ME.
1381  All parameters of this command are optional. If you don't specify any parameter,
1382  the system shutdown is initiated without displaying message and without waiting. 
1383  <br>
1384  The parameters:
1385  <ul>
1386  <li><span class="commandsyntax">{message}</span>: The message to display before starting the system shut down.
1387  <li><span class="commandsyntax">{timeout value in seconds}</span>: The number of seconds to wait before starting the system shut down.
1388  <li><span class="commandsyntax">{force}</span>: Forces all applications to terminate, even without saving your work. 
1389  <li><span class="commandsyntax">{reboot}</span>: Reboot after the system shutdown.
1390  </ul>
1391  <br>
1392  Examples:
1393  <span class="commandline"><br>
1394  initshutdown "shutting down the system within 60 seconds" 60 reboot<br>
1395  initshutdown "" 0 force
1396  </span>
1397  
1398  
1399  <tr>
1400  <td class="tablecol1">abortshutdown
1401  <td>
1402  <h6 class="commandsyntax">
1403  abortshutdown 
1404  </h6>
1405  Abort the system shutdown that initiated with initshutdown command.
1406  This command doesn't accept any additional parameters. 
1407  <br>
1408  Example:
1409  <span class="commandline"><br>
1410  abortshutdown
1411  </span>
1412  
1413  <tr>
1414  <td class="tablecol1">lockws
1415  <td>
1416  <h6 class="commandsyntax">
1417  lockws
1418  </h6>
1419  Lock the workstation. After locking your workstation, you must type your password in order
1420  to continue your work. This command is only available on Windows 2000 and Windows XP.
1421  
1422  
1423  <tr>
1424  <td class="tablecol1">monitor
1425  <td>
1426  <h6 class="commandsyntax">
1427  monitor [action]
1428  </h6>
1429  Changes the state of the display monitor. The <span class="commandsyntax">[action]</span>
1430  parameter may contain the following values:
1431  <ul>
1432  <li><span class="special2">off</span>: Turn off the monitor
1433  <li><span class="special2">on</span>: Turn on the monitor
1434  <li><span class="special2">low</span>: Set the monitor to low power state.
1435  </ul>
1436  <br>
1437  This command only works in systems that support this feature.
1438  <br>
1439  Examples:
1440  <span class="commandline"><br>
1441  monitor off<br>
1442  monitor on<br>
1443  </span>
1444  
1445  
1446  <tr>
1447  <td class="tablecol1">screensaver
1448  <td>
1449  <h6 class="commandsyntax">
1450  screensaver
1451  </h6>
1452  Starts the default screen saver.
1453  
1454  <tr>
1455  <td class="tablecol1">standby
1456  <td>
1457  <h6 class="commandsyntax">
1458  standby {force}
1459  </h6>
1460  Shuts down the computer and puts it in 'standby' mode.
1461  If the <span class="commandsyntax">{force}</span> parameter is specified, the system is 
1462  forced to go into standby mode without asking for permission from all applications.
1463  Generally, it's not recommended to use this parameter.
1464  <br>
1465  This command works only in systems that supports standby mode.
1466  <br>
1467  Example:
1468  <span class="commandline"><br>
1469  <br>standby force
1470  <br>standby
1471  </span>
1472  
1473  
1474  
1475  <tr>
1476  <td class="tablecol1">hibernate
1477  <td>
1478  <h6 class="commandsyntax">
1479  hibernate {force}
1480  </h6>
1481  Shuts down the computer and puts it in 'hibernate' mode.
1482  If the <span class="commandsyntax">{force}</span> parameter is specified, the system is 
1483  forced to go into hibernate mode without asking for permission from all applications.
1484  Generally, it's not recommended to use this parameter.
1485  <br>
1486  This command works only in systems that supports hibernate mode.
1487  <br>
1488  Example:
1489  <span class="commandline"><br>
1490  <br>hibernate force
1491  <br>hibernate
1492  </span>
1493  
1494  
1495  <tr>
1496  <td class="tablecol1">shortcut
1497  <td>
1498  <h6 class="commandsyntax">
1499  shortcut [filename] [folder] [shortcut title] {arguments} {icon file} {icon resource number} {ShowCmd} {Start In Folder} {Hot Key}
1500  </h6>
1501  Creates a shortcut to a file. 
1502  <br>
1503  The parameters:
1504  <ul>
1505  <li><span class="commandsyntax">[filename]</span>: Create a shortcut to this filename.
1506  <li><span class="commandsyntax">[folder]</span>: Specify the destination folder that inside it the shortcut will be created.
1507  You can specify any valid folder, including the special variables that represent system folders, like ~$folder.desktop$ (Desktop folder), ~$folder.programs$ (Start-Menu-Programs folder), and so on...
1508  
1509  
1510  <li><span class="commandsyntax">[shortcut title]</span>: The text displayed in the shortcut.
1511  <li><span class="commandsyntax">{arguments}</span>: Optional parameter - Additional arguments to execute the filename.
1512  <li><span class="commandsyntax">{icon file}</span>: Optional parameter - Use this parameter if your want that the shortcut will be displayed
1513  with icon other than the default one.
1514  <li><span class="commandsyntax">{icon resource number}</span>: Optional parameter - The resource number inside the icon file.
1515  <li><span class="commandsyntax">{ShowCmd}</span>: Optional parameter - Use this parameter if you want to maximize or minimize the window of the program.
1516  Specify "max" to maximize the window or "min" to minimize it.
1517  
1518  <li><span class="commandsyntax">{Start In Folder}</span>: Optional parameter - Specifies the "Start In" folder. 
1519  If you don't specify this parameter, the "Start In" folder is automatically filled with the folder of the program you specify in <span class="commandsyntax">[filename]</span> parameter.
1520  <li><span class="commandsyntax">{Hot Key}</span>: Optional parameter - Specifies an hot-key that will activate the shortcut.
1521  For example: Alt+Ctrl+A, Alt+Shift+F8, Alt+Ctrl+Shift+Y
1522  
1523  </ul>
1524  
1525  <br>
1526  Examples:
1527  <span class="commandline"><br>
1528  shortcut "f:\winnt\system32\calc.exe" "~$folder.desktop$"  "Windows Calculator"
1529  <br>shortcut "f:\winnt\system32\calc.exe" "~$folder.programs$\Calculators"  "Windows Calculator"
1530  <br>shortcut "f:\Program Files\KaZaA\Kazaa.exe" "c:\temp\MyShortcuts" "Kazaa"
1531  <br>shortcut "f:\Program Files" "c:\temp\MyShortcuts" "Program Files Folder" "" "f:\winnt\system32\shell32.dll" 45
1532  <br>shortcut "f:\Program Files" "c:\temp\MyShortcuts" "Program Files Folder" "" "" "" "max"
1533  </span>
1534  
1535  
1536  <tr>
1537  <td class="tablecol1">cmdshortcut
1538  <td>
1539  <h6 class="commandsyntax">
1540  cmdshortcut [folder] [shortcut title] [command]
1541  </h6>
1542  Creates a shortcut to NirCmd command. When you activate the shortcut (by doubleclicking it),
1543  The command that you specify in <span class="commandsyntax">[command]</span> parameter will be executed.
1544  <br>
1545  Examples:
1546  <span class="commandline">
1547  <br>cmdshortcut &quot;~$folder.desktop$&quot; &quot;Open CDROM&quot; cdrom open k:
1548  <br>cmdshortcut &quot;c:\temp&quot; &quot;Turn Monitor Off&quot; monitor off
1549  </span>
1550  
1551  
1552  <tr>
1553  <td class="tablecol1">cmdshortcutkey
1554  <td>
1555  <h6 class="commandsyntax">
1556  cmdshortcutkey [folder] [shortcut title] [hot key] [command]
1557  </h6>
1558  Similar to cmdshortcut command, but also allows you to specify an hot key to activate the command.
1559  <br>
1560  Examples:
1561  <span class="commandline">
1562  <br>cmdshortcutkey &quot;~$folder.desktop$&quot; &quot;Open CDROM&quot; &quot;Ctrl+Shift+K&quot; cdrom open k:
1563  <br>cmdshortcutkey &quot;c:\temp&quot; &quot;Turn Monitor Off&quot; &quot;Ctrl+Shift+M&quot; monitor off
1564  </span>
1565  
1566  
1567  
1568  <tr>
1569  <td class="tablecol1">urlshortcut
1570  <td>
1571  <h6 class="commandsyntax">
1572  urlshortcut [URL] [Folder] [Shortcut Title]
1573  </h6>
1574  Creates a shortcut to URL address. (Like the shortcuts in Favorities of Internet Explorer)
1575  The <span class="commandsyntax">[Folder]</span> parameter specifies the destination folder that inside it the shortcut will be created. 
1576  If you want to create the shortcut inside your default Favorities folder, use ~$folder.favorites$ variable.
1577  
1578  <br>
1579  Examples:
1580  <span class="commandline">
1581  <br>urlshortcut "http://www.nirsoft.net" "~$folder.favorites$" "NirSoft Web Site"
1582  <br>urlshortcut "http://www.google.com" "~$folder.favorites$\Search Engines" "Google"
1583  <br>urlshortcut "http://www.yahoo.com" "c:\temp" "Yahoo"
1584  </span>
1585  
1586  
1587  <tr>
1588  <td class="tablecol1">exec
1589  <td>
1590  <h6 class="commandsyntax">
1591  exec [show/hide] [application + command-line]
1592  </h6>
1593  Runs an application, and optionally specify one or more command-line parameters for the 
1594  executed application.
1595  The <span class="commandsyntax">[show/hide]</span> parameter specifies whether the
1596  running application will be visible or not.
1597  If 'hide' is specified, the running application won't be visible to the user.
1598  
1599  <br>
1600  Example:
1601  <span class="commandline">
1602  <br>exec show &quot;f:\winnt\system32\calc.exe&quot;
1603  <br>exec hide &quot;c:\temp\wul.exe&quot; /savelangfile
1604  </span>
1605  
1606  
1607  
1608  
1609  <tr>
1610  <td class="tablecol1">exec2
1611  <td>
1612  <h6 class="commandsyntax">
1613  exec2 [show/hide] [working folder] [application + command-line]
1614  </h6>
1615  Similar to exec command, but also provide another parameter, [working folder], that
1616  specifies the default working folder for the application that you run.
1617  <br>
1618  Example:
1619  <span class="commandline">
1620  <br>exec2 show "f:\winnt\system32" &quot;f:\winnt\system32\calc.exe&quot;
1621  <br>exec2 hide c:\temp &quot;c:\temp\wul.exe&quot; /savelangfile
1622  </span>
1623  
1624  
1625  
1626  
1627  
1628  <tr>
1629  <td class="tablecol1">execmd
1630  <td>
1631  <h6 class="commandsyntax">
1632  execmd [command]
1633  </h6>
1634  Executes a command of Command-Prompt (Console Window) without displaying anything
1635  on the screen.
1636  <br>
1637  Examples:
1638  <span class="commandline">
1639  <br>execmd del "~$folder.desktop$\calc.lnk"
1640  <br>execmd mkdir f:\temp\desktop1
1641  <br>execmd copy "~$folder.desktop$\*.lnk" f:\temp\desktop
1642  </span>
1643  
1644  <tr>
1645  <td class="tablecol1">shexec
1646  <td>
1647  <h6 class="commandsyntax">
1648  shexec [operation] [filename]
1649  </h6>
1650  Opens or Prints a filename according to the definition of the file extension in the Registry.
1651  For example: a filename with .doc extension will be opened with MS-Word, a filename with
1652  .html extension will be opened with your default browser.
1653  If you specify a valid web site address, the Web site will be opened in your default browser.
1654  the <span class="commandsyntax">[operation]</span> parameter can be "open" or "print".
1655  <br>
1656  Examples:
1657  <span class="commandline">
1658  <br>shexec "open" "c:\my documents\abc.doc"
1659  <br>shexec "print" "d:\files\1.pdf"
1660  <br>shexec "open" "http://www.nirsoft.net"
1661  </span>
1662  
1663  
1664  
1665  <tr>
1666  <td class="tablecol1">setfiletime
1667  <td>
1668  <h6 class="commandsyntax">
1669  setfiletime [filename or wildcard] [Created Date] {Modified Date} {Accessed Date} 
1670  </h6>
1671  Changes the  Created/Modified/Accessed date of one or more files.
1672  The first parameter can be a single filename or wildcard string.
1673  The dates parameters must be specified in the following format: "dd-mm-yyyy hh:nn:ss"
1674  if a date parameter is not specified or you specify an empty string (""), the date won't be changed. 
1675  If you specify "now" as date parameter, the current date and time will be used
1676  <br>
1677  Examples:
1678  <span class="commandline">
1679  <br>setfiletime "c:\temp\*.exe" "15-05-2004 11:22:12"  "22-01-2005 21:22:55"
1680  <br>setfiletime "c:\temp\myfile.txt" "24-06-2003 17:57:11"  "" "22-11-2005 10:21:56"
1681  <br>setfiletime "c:\temp\myfile.txt" now now
1682  </span>
1683  
1684  
1685  
1686  <tr>
1687  <td class="tablecol1">setfilefoldertime
1688  <td>
1689  <h6 class="commandsyntax">
1690  setfilefoldertime [filename, folder or wildcard] [Created Date] {Modified Date} {Accessed Date} 
1691  </h6>
1692  Changes the Created/Modified/Accessed date of one or more files/folders.
1693  This command is very similar to setfiletime command.
1694  The only difference is that setfilefoldertime command can also change the date of a folder - only under Windows 2000/XP.
1695  <br>
1696  Examples:
1697  <span class="commandline">
1698  <br>setfilefoldertime &quot;c:\temp\myfolder&quot; &quot;10-01-2003 11:22:12&quot;  &quot;12-11-2002 02:34:11&quot;
1699  <br>setfilefoldertime &quot;c:\temp\myfolder&quot; now now
1700  </span>
1701  
1702  
1703  
1704  <tr>
1705  <td class="tablecol1">emptybin
1706  <td>
1707  <h6 class="commandsyntax">
1708  emptybin {drive}
1709  </h6>
1710  Empty the Recycle Bin.
1711  the {drive} parameter specifies the drive of the Recycle Bin that you want to empty.
1712  If the {drive} parameter is not specified, all Recycle Bin on all drives will be emptied.
1713  
1714  <br>
1715  Example:
1716  <span class="commandline">
1717  <br>emptybin f:
1718  <br>emptybin
1719  </span>
1720   
1721  
1722  <tr>
1723  <td class="tablecol1">setdisplay
1724  <td>
1725  <h6 class="commandsyntax">
1726  setdisplay [width] [height] [color bits] {refresh rate} {-updatereg} {-allusers}
1727  </h6>
1728  Changes your display settings. The <span class="commandsyntax">[width]</span> and <span class="commandsyntax">[height]</span> parameters represents
1729  the number of pixels on your screen. The <span class="commandsyntax">[color bits]</span> parameter represents the
1730  number of colors shown on your screen (8 - 256 color, 16 - 16bit color, 24 - 24bit color, and so on).
1731  <span class="commandsyntax">{refresh rate}</span> is an optional parameter that specifies the monitor refresh rate.
1732  
1733  If you specify the <span class="commandsyntax">{-updatereg}</span> parameter, the new settings will be saved in the Registry.
1734  If you specify both <span class="commandsyntax">{-updatereg}</span> and <span class="commandsyntax">{-allusers}</span> parameters, the new settings will be saved in the Registry for all users.
1735  
1736  <br>
1737  Example:
1738  <span class="commandline">
1739  <br>setdisplay 800 600 24 -updatereg
1740  <br>setdisplay 1024 768 24 90
1741  <br>setdisplay 1024 768 8
1742  </span>
1743  
1744  
1745  <tr>
1746  <td class="tablecol1">killprocess
1747  <td>
1748  <h6 class="commandsyntax">
1749  killprocess [process]
1750  </h6>
1751  Terminates the specified process.
1752  In the <span class="commandsyntax">[process]</span> parameter, you can specify the full path
1753  of the process filename (e.g: 'C:\Program Files\Internet Explorer\iexplore.exe') 
1754  or the name of the process only, without the path (e.g.: iexplore.exe).
1755  You can also specify the Process ID, by adding the '/' character as a prefix 
1756  (e.g. /1120). 
1757  
1758  <br>
1759  Examples:
1760  <span class="commandline">
1761  <br>killprocess iexplore.exe
1762  <br>killprocess "c:\winnt\system32\calc.exe"
1763  <br>killprocess /1830
1764  </span>
1765  
1766  
1767  
1768  <tr>
1769  <td class="tablecol1">closeprocess
1770  <td>
1771  <h6 class="commandsyntax">
1772  closeprocess [process]
1773  </h6>
1774  Terminates the specified process, by closing its top level windows.
1775  As opposed to killprocess command, closeprocess doesn't force the process to be closed 
1776  immediately. Instead, it send WM_CLOSE message to all top level windows of the specified process.
1777  However, be aware that this command will not work on process with no user interface.
1778  
1779  <p>
1780  In the <span class="commandsyntax">[process]</span> parameter, you can specify the full path
1781  of the process filename (e.g: 'C:\Program Files\Internet Explorer\iexplore.exe') 
1782  or the name of the process only, without the path (e.g.: iexplore.exe).
1783  You can also specify the Process ID, by adding the '/' character as a prefix 
1784  (e.g. /1120). 
1785  
1786  <br>
1787  Examples:
1788  <span class="commandline">
1789  <br>closeprocess iexplore.exe
1790  <br>closeprocess "c:\winnt\system32\calc.exe"
1791  <br>closeprocess /1830
1792  </span>
1793  
1794  
1795  <tr>
1796  <td class="tablecol1">memdump
1797  <td>
1798  <h6 class="commandsyntax">
1799  memdump [process] [dump file] [bytes per line] {bytes to read} {start address} {nohex} {noascii}
1800  </h6>
1801  Reads the memory of process according to the parameters you specify, and writes it
1802  into a text file.
1803  <br>
1804  The parameters:
1805  <ul>
1806  <li><span class="commandsyntax">[process]</span>: The process that you want to dump its
1807  memory. You can specify the full path of the process filename, the process name only,
1808  or the Process ID - by adding the '/' chararcter as prefix (e.g.: /520)
1809  <li><span class="commandsyntax">[dump file]</span>: The filename to save the memory content
1810  of the specified process.
1811  <li><span class="commandsyntax">[bytes per line]</span>: Number of memory bytes per line
1812  in the saved dump file. 
1813  <li><span class="commandsyntax">{bytes to read}</span>: Number of bytes to read.
1814  <li><span class="commandsyntax">{start address}</span>: Start the dumping process from this memory address. 
1815  <li><span class="commandsyntax">{nohex}</span>: Optional. If you specify this parameter, the memory data won't be saved in Hexadecimal format.
1816  <li><span class="commandsyntax">{noascii}</span>: Optional. If you specify this parameter, the memory data won't be saved in Ascii format.
1817  </ul>
1818  <br>
1819  Examples:
1820  <span class="commandline">
1821  <br>memdump iexplore.exe "c:\temp\dump.txt" "16" "0x10000" "0x400000"
1822  <br>memdump calc.exe "c:\temp\calc.txt" "32" "0x30000" "0x400000" nohex
1823  <br>memdump /525 "c:\temp\dump.txt" "16" "0x100000" "0x120000" noascii
1824  </span>
1825  
1826  
1827  <tr>
1828  <td class="tablecol1">service
1829  <td>
1830  <h6 class="commandsyntax">
1831  service {\\Computer} [action] [service name]
1832  </h6>
1833  Changes the status and the startup type of services and drivers.
1834  <br>
1835  The parameters:
1836  <ul>
1837  <li><span class="commandsyntax">{\\Computer}</span>: Optional. Specifies the name of the
1838  remote computer. If you omit this parameter, the local computer is used.
1839  
1840  <li><span class="commandsyntax">[action]</span>: The action you want to do.
1841  This parameter may contain one of the following values:
1842  <ul>
1843  <li><span class="special2">start</span>: Starts the specified service or driver.
1844  <li><span class="special2">stop</span>: Stops the specified service or driver.
1845  <li><span class="special2">pause</span>: Pauses the specified service or driver.
1846  <li><span class="special2">continue</span>: Continues the specified service or driver.
1847  <li><span class="special2">restart</span>: Stops and then starts again the specified service or driver.
1848  <li><span class="special2">auto</span>: Changes the startup type of the specified service or driver to Automatic.
1849  <li><span class="special2">manual</span>: Changes the startup type of the specified service or driver to Manual.
1850  <li><span class="special2">disabled</span>: Changes the startup type of the specified service or driver to Disabled.
1851  <li><span class="special2">boot</span>: (Only for drivers) Changes the startup type of the specified driver to 'Boot'. 
1852  <li><span class="special2">system</span>: (Only for drivers) Changes the startup type of the specified driver to 'System'.
1853  </ul>
1854  <li><span class="commandsyntax">[service name]</span>:
1855  The name of the service or driver.
1856  </ul>  
1857  
1858  <br>
1859  Examples:
1860  <span class="commandline">
1861  <br>service start schedule
1862  <br>service \\remote stop schedule
1863  <br>service restart w3svc
1864  </span>
1865  
1866  
1867  <tr>
1868  <td class="tablecol1">win
1869  <td>
1870  <h6 class="commandsyntax">
1871  win [action] [find] [window to find] [Additional Parameters]
1872  </h6>
1873  For child windows:
1874  <h6 class="commandsyntax">
1875  win child [find] [top window to find] [action] [find] [child window to find] [Additional Parameters]
1876  </h6>
1877  
1878  This command allows you to close, hide, show, maximize, and minimize the specified window.
1879  <br>
1880  The parameters:
1881  <ul>
1882  <li><span class="commandsyntax">[action]</span>: The action you want to do on the specified window:
1883  <ul>
1884  <li><span class="special2">child</span>: Allows you to make an action on child window of the specified top-level window.
1885  <li><span class="special2">close</span>: Closes the specified windows.
1886  <li><span class="special2">hide</span>: Hides the specified windows.
1887  <li><span class="special2">show</span>: Shows again the specified windows. (after hiding it with 'hide' command)
1888  <li><span class="special2">hideshow</span>: Hides the specified windows and then shows it again. You can use this action to repaint the content of a window.
1889  <li><span class="special2">activate</span>: Bring the specified window to the front.
1890  <li><span class="special2">max</span>: Maximizes the specified windows.
1891  <li><span class="special2">min</span>: Minimizes the specified windows.
1892  <li><span class="special2">normal</span>: Restores the specified windows to normal state, after minimizing or maximizing them.
1893  <li><span class="special2">trans</span>: Make the specified windows transparent.
1894  the value in <span class="commandsyntax">[Additional Parameters]</span> is a number between 0 and 255 that specifies the 
1895  transparency level. 0 = completely transparent. 255 = completely opaque.
1896  <li><span class="special2">setsize</span>: Set the size of the specified windows.
1897  the values in <span class="commandsyntax">[Additional Parameters]</span>
1898  specifies the desired window size - x, y, width, height.
1899  <li><span class="special2">move</span>: move/resize the window.
1900  the values in <span class="commandsyntax">[Additional Parameters]</span>
1901  specifies the number of pixels to move/change: x, y, width, height.
1902  <li><span class="special2">center</span>: Center the specified windows.
1903  
1904  <li><span class="special2">settopmost</span>:Set the top-most state of the specified windows.
1905  If the value in <span class="commandsyntax">[Additional Parameters]</span> is 1, 
1906  the specified windows will become top-most windows, if the value is 0, the top-most state
1907  will be canceled.
1908  <li><span class="special2">redraw</span>: Redraw the specified windows.
1909  
1910  <li><span class="special2">settext</span>: Modify the caption/title of the specified windows.
1911  <li><span class="special2">focus</span>: Set the focus to the specified window.
1912  <li><span class="special2">disable</span>: Disable the specified window.
1913  <li><span class="special2">enable</span>: Enable the specified window.
1914  <li><span class="special2">+style</span>: Add style bits to the specified window. The value of <span class="commandsyntax">[Additional Parameters]</span> specifies the style bits to add.
1915  <li><span class="special2">-style</span>: Remove style bits from the specified window. The value of <span class="commandsyntax">[Additional Parameters]</span> specifies the style bits to remove.
1916  <li><span class="special2">+exstyle</span>: Add extended style bits to the specified window. The value of <span class="commandsyntax">[Additional Parameters]</span> specifies the extended style bits to add.
1917  <li><span class="special2">-exstyle</span>: Remove extended style bits from the specified window. The value of <span class="commandsyntax">[Additional Parameters]</span> specifies the extended style bits to remove.
1918  <li><span class="special2">postmsg</span>: Post a message to the specified window. The 3 values in <span class="commandsyntax">[Additional Parameters]</span> specifies the message parameters: Msg, wParam, lParam. 
1919  <li><span class="special2">sendmsg</span>: Send a message to the specified window. The 3 values in <span class="commandsyntax">[Additional Parameters]</span> specifies the message parameters: Msg, wParam, lParam. 
1920  <li><span class="special2">dlgclick</span>: Send a click command to the button inside a dialog-box. The value in <span class="commandsyntax">[Additional Parameters]</span> should specify the control ID of the button, 
1921  or one of the following predefined buttons: yes, no, ok, cancel, retry, ignore, close, help.
1922  <li><span class="special2">dlgsettext</span>: Set the text to the specified control inside a dialog-box. The value in <span class="commandsyntax">[Additional Parameters]</span> should specify the control ID.
1923  <li><span class="special2">dlgsetfocus</span>: Set the focus to the specified control inside a dialog-box. The value in <span class="commandsyntax">[Additional Parameters]</span> should specify the control ID
1924  
1925  </ul>
1926  <li><span class="commandsyntax">[find]</span>: The method to find the window
1927  <ul>
1928  <li><span class="special2">handle</span>: Finds the desired window by specifying the handle
1929  of the window in <span class="commandsyntax">[window to find]</span> parameter.
1930  <li><span class="special2">id</span>: Finds the desired child window by specifying the id of the child window.
1931  Useful only for child windows.
1932  
1933  <li><span class="special2">class</span>: Finds the desired window by specifying the class
1934  name of the window in <span class="commandsyntax">[window to find]</span> parameter.
1935  <li><span class="special2">title</span>: Finds the desired window by specifying the
1936  exact title of the window in <span class="commandsyntax">[window to find]</span> parameter.
1937  
1938  <li><span class="special2">stitle</span>: Finds the desired window by specifying the
1939  first few characters of the window in <span class="commandsyntax">[window to find]</span> parameter.
1940  <li><span class="special2">ititle</span>: Finds the desired window by specifying 
1941  a sequence of characters that exists in the window title.
1942  <li><span class="special2">alltop</span>: All top windows.
1943  <li><span class="special2">alltopnodesktop</span>: All top windows, except of desktop and tray windows.
1944  
1945  <li><span class="special2">active</span>: The current active window.
1946  <li><span class="special2">foreground</span>: The window in foreground.
1947  <li><span class="special2">desktop</span>: The desktop window
1948  </ul>
1949  
1950  <li><span class="commandsyntax">[window to find]</span>:
1951  Specifies the window by handle, class name, or title, according to the value of the
1952  previous parameter.
1953  
1954  </ul>
1955  
1956  <br>
1957  Examples:
1958  <span class="commandline">
1959  <br>win close title "calculator"
1960  <br>win hide stitle "calculat"
1961  <br>win hide ititle "culat"
1962  <br>win show class "SciCalc"
1963  <br>win activate title "my computer"
1964  <br>win max handle 0x00009c01
1965  <br>win redraw alltop
1966  <br>win trans ititle &quot;internet explorer&quot; 192 
1967  <br>win setsize class &quot;IEFrame&quot; 50 50 400 300
1968  <br>win settopmost class "SciCalc" 1
1969  <br>win child class "Shell_TrayWnd" hide class "button"
1970  <br>win child class "Shell_TrayWnd" show class "button"
1971  <br>win child title "calculator" hide id 128  
1972  <br>win -style title "my computer"  0x00C00000
1973  <br>win child title "my computer" +exstyle all 0x00400000
1974  <br>win sendmsg title "calculator" 0x10 0 0
1975  <br>win dlgclick class &quot;#32770&quot; cancel
1976  </span>
1977  
1978  
1979  
1980  <tr>
1981  <td class="tablecol1">cdrom
1982  <td>
1983  <h6 class="commandsyntax">
1984  cdrom [action] {drive:}
1985  </h6>
1986  This command allows you to open and close the door of your CD-ROM drive.
1987  The <span class="commandsyntax">[action]</span> parameter can be 'open' or 'close'.
1988  If you don't specify the <span class="commandsyntax">{drive:}</span> parameter, the default CD-ROM will be used.
1989  <br>
1990  Examples:
1991  <span class="commandline">
1992  <br>cdrom open
1993  <br>cdrom close
1994  <br>cdrom open J:
1995  <br>cdrom close R:
1996  </span>
1997  
1998  
1999  <tr>
2000  <td class="tablecol1">clipboard
2001  <td>
2002  <h6 class="commandsyntax">
2003  clipboard [Action] [Parameter]
2004  </h6>
2005  Allows you to set a value into the clipboard and clear the clipboard.
2006  <p>
2007  [Action] may contain one of the following values:
2008  <ul>
2009  <li><span class="special2">set</span> - set the specified text into the clipboard.
2010  <li><span class="special2">readfile</span> - set the content of the specified text file into the clipboard.
2011  <li><span class="special2">clear</span> - clear the clipboard.
2012  <li><span class="special2">writefile</span> - write the content of the clipboard to a file. (text only)
2013  <li><span class="special2">addfile</span> - add the content of the clipboard to a file. (text only)
2014  </ul>
2015  
2016  <br>
2017  Examples:
2018  <span class="commandline">
2019  <br>clipboard set &quot;123456&quot;
2020  <br>clipboard set ~$folder.desktop$ 
2021  <br>clipboard set ~$folder.start_menu$ 
2022  <br>clipboard readfile &quot;c:\temp\info1.txt&quot;
2023  <br>clipboard addfile &quot;c:\temp\clip1.txt&quot;
2024  <br>clipboard clear
2025  </span>
2026  
2027  
2028  <tr>
2029  <td class="tablecol1">gac
2030  <td>
2031  <h6 class="commandsyntax">
2032  gac [Action] [Parameter]
2033  </h6>
2034  Allows you to install an assembly in the Global Assembly Cache.
2035  <br>
2036  Examples:
2037  <span class="commandline">
2038  <br>gac install &quot;C:\temp\MyAssembly\bin\Release\6\MyAssembly.dll&quot;
2039  </span>
2040  
2041  
2042  <tr>
2043  <td class="tablecol1">beep
2044  <td>
2045  <h6 class="commandsyntax">
2046  beep [Frequency] [Duration]
2047  </h6>
2048  Plays a beep. The <span class="commandsyntax">[Frequency]</span> parameter specifies the frequency, in hertz.
2049  The <span class="commandsyntax">[Duration]</span> parameter specifies the duration of the sound in milliseconds.
2050  Under Windows 95/98/ME, the above parameters are ignored, and only a standard Windows beep is played.
2051  <br>
2052  Example:
2053  <span class="commandline">
2054  <br>beep 500 2000
2055  </span>
2056  
2057  
2058  <tr>
2059  <td class="tablecol1">stdbeep
2060  <td>
2061  <h6 class="commandsyntax">
2062  stdbeep
2063  </h6>
2064  Plays the standard beep of Windows. 
2065  <br>
2066  Example:
2067  <span class="commandline">
2068  <br>stdbeep
2069  </span>
2070  
2071  
2072  <tr>
2073  <td class="tablecol1">setvolume
2074  <td>
2075  <h6 class="commandsyntax">
2076  setvolume [device] [left-volume] [right-volume]
2077  </h6>
2078  Set the volume level of your sound device.
2079  The <span class="commandsyntax">[device]</span> parameter represents the device identifier.
2080  In most cases, you should use '0' value for this parameter.
2081  Under Windows Vista, you should specify 0 for default playback device or 1 for default recording device.
2082  <br>
2083  The <span class="commandsyntax">[left-volume]</span> and <span class="commandsyntax">[right-volume]</span>
2084  parameters should contain a value between 0 (silence) and 65535 (full volume) that represents the volume level for left and right channels.
2085  <br>
2086  Examples:
2087  <span class="commandline">
2088  <br>setvolume 0 0 0
2089  <br>setvolume 0 32768 32768
2090  <br>setvolume 0 0xffff 0
2091  </span>
2092  
2093  <tr>
2094  <td class="tablecol1">setsysvolume
2095  <td>
2096  <h6 class="commandsyntax">
2097  setsysvolume [volume] {Component} {Device Index}
2098  </h6>
2099  Set the sound volume for your system.
2100  Changing this value also affects the sound volume settings under 'Control Panel'.
2101  The <span class="commandsyntax">[volume]</span> parameter should contain a value
2102  between 0 (silence) and 65535 (full volume).
2103  <br>
2104  <span class="commandsyntax">{Component}</span> is an optional parameter that specifies
2105  one of the following sound components: 
2106  master, waveout, synth, cd, microphone, phone, aux, line, headphones, wavein.
2107  The default value is 'master' (for master volume).
2108  Under Windows Vista, the component name must be identical to the one of the device names appear in the
2109  sound window of Vista (Control Panel -> Sound). If the device name contains spaces, it must be in quotes.
2110  
2111  
2112  <br>
2113  <span class="commandsyntax">{Device Index}</span> is an optional parameter that specifies
2114  the sound device index. This parameter is useful if you have more than one sound card.
2115  If you don't specify this parameter, the default sound card in Control Panel is used.
2116  
2117  
2118  <br>
2119  Examples:
2120  <span class="commandline">
2121  <br>setsysvolume 0x8000
2122  <br>setsysvolume 0
2123  <br>setsysvolume 25000 waveout
2124  <br>setsysvolume 25000 master 1
2125  </span>
2126  
2127  <p>
2128  Vista Examples:
2129  <span class="commandline">
2130  <br>setsysvolume 0x8000
2131  <br>setsysvolume 0 &quot;front mic&quot;
2132  <br>setsysvolume 25000 speakers
2133  <br>setsysvolume 25000 &quot;line in&quot;
2134  </span>
2135  
2136  
2137  <tr>
2138  <td class="tablecol1">setsysvolume2
2139  <td>
2140  <h6 class="commandsyntax">
2141  setsysvolume2 [left volume] [right volume] {Component} {Device Index}
2142  </h6>
2143  Similar to setsysvolume, but instead of setting the whole sound volume, 
2144  setsysvolume2 set the right channel and left channel separately.
2145  
2146  <br>
2147  Examples:
2148  <span class="commandline">
2149  <br>setsysvolume2 10000 20000
2150  <br>setsysvolume2 30000 0
2151  <br>setsysvolume2 25000 15000 waveout
2152  <br>setsysvolume2 30000 0 master 1
2153  </span>
2154  
2155  
2156  <tr>
2157  <td class="tablecol1">changesysvolume
2158  <td>
2159  <h6 class="commandsyntax">
2160  changesysvolume [volume change] {Component} {Device Index}
2161  </h6>
2162  Increases or decreases the system volume.
2163  the <span class="commandsyntax">[volume change]</span> parameter specifies the number of volume units to
2164  increase or decrease (negative value to decrease, positive value to increase).
2165  <br>
2166  <span class="commandsyntax">{Component}</span> is an optional parameter that specifies
2167  one of the following sound components: 
2168  master, waveout, synth, cd, microphone, phone, aux, line, headphones, wavein.
2169  The default value is 'master' (for master volume).
2170  Under Windows Vista, the component name must be identical to the one of the device names appear in the
2171  sound window of Vista (Control Panel -> Sound). If the device name contains spaces, it must be in quotes.
2172  
2173  
2174  <br>
2175  <span class="commandsyntax">{Device Index}</span> is an optional parameter that specifies
2176  the sound device index. This parameter is useful if you have more than one sound card.
2177  If you don't specify this parameter, the default sound card in Control Panel is used.
2178  
2179  
2180  <br>
2181  Examples:
2182  <span class="commandline">
2183  <br>changesysvolume 5000
2184  <br>changesysvolume -3000
2185  <br>changesysvolume 0x1000 waveout
2186  <br>changesysvolume 0x1000 master 1
2187  </span>
2188  
2189  
2190  <p>
2191  Vista Examples:
2192  <span class="commandline">
2193  <br>changesysvolume 5000
2194  <br>changesysvolume -3000
2195  <br>changesysvolume 0x1000 &quot;line in&quot;
2196  <br>changesysvolume 0x1000 &quot;speakers&quot; 1
2197  </span>
2198  
2199  <tr>
2200  <td class="tablecol1">changesysvolume2
2201  <td>
2202  <h6 class="commandsyntax">
2203  changesysvolume2 [left volume change] [right volume change] {Component} {Device Index}
2204  </h6>
2205  Similar to changesysvolume, but instead of changing the whole sound volume, 
2206  changesysvolume2 changes the left channel and the right channel separately.
2207  
2208  <br>
2209  Examples:
2210  <span class="commandline">
2211  <br>changesysvolume2 1000 -1000
2212  <br>changesysvolume2 -3000 0
2213  <br>changesysvolume2 0 -5000 waveout
2214  <br>changesysvolume2 -3000 0 master 1
2215  </span>
2216  
2217  
2218  
2219  <tr>
2220  <td class="tablecol1">mutesysvolume
2221  <td>
2222  <h6 class="commandsyntax">
2223  mutesysvolume [action] {Component} {Device Index}
2224  </h6>
2225  Mute/unmute the system volume. <br>
2226  In the <span class="commandsyntax">[action]</span> parameter, specify 1 for mute, 0 for unmute, 
2227  or 2 for switching between mute and normal state.
2228  <br>
2229  The second parameter is optional, and you can specify one of the following sound components:
2230  master, waveout, synth, cd, microphone, phone, aux, line, headphones, wavein.
2231  The default value is 'master' (for master volume).
2232  Under Windows Vista, the component name must be identical to the one of the device names appear in the
2233  sound window of Vista (Control Panel -> Sound). If the device name contains spaces, it must be in quotes.
2234  
2235  
2236  <br>
2237  <span class="commandsyntax">{Device Index}</span> is an optional parameter that specifies
2238  the sound device index. This parameter is useful if you have more than one sound card.
2239  If you don't specify this parameter, the default sound card in Control Panel is used.
2240  
2241  
2242  <br>
2243  Examples:
2244  <span class="commandline">
2245  <br>mutesysvolume 1
2246  <br>mutesysvolume 0
2247  <br>mutesysvolume 2 waveout
2248  <br>mutesysvolume 1 master 1
2249  </span>
2250  
2251  
2252  <p>
2253  Vista Examples:
2254  <span class="commandline">
2255  <br>mutesysvolume 1
2256  <br>mutesysvolume 0
2257  <br>mutesysvolume 2 &quot;rear mic&quot; 
2258  <br>mutesysvolume 1 speakers 1
2259  </span>
2260  
2261  <tr>
2262  <td class="tablecol1">wait
2263  <td>
2264  <h6 class="commandsyntax">
2265  wait [milliseconds]
2266  </h6>
2267  Simply wait the specified number of milliseconds.
2268  <br>
2269  Examples:
2270  <span class="commandline">
2271  <br>wait 1000
2272  <br>wait 500
2273  </span>
2274  
2275  
2276  <tr>
2277  <td class="tablecol1">sysrefresh
2278  <td>
2279  <h6 class="commandsyntax">
2280  sysrefresh {Refresh Type}
2281  </h6>
2282  Initiate a general system refresh. You can use this command to refresh your system after
2283  changing your system settings in the Registry (e.g: changing desktop icons size, environment variables, and so on..)
2284  {Refresh Type} is optional. 
2285  You can specify one of the following values: 
2286  &quot;environment&quot; - for refreshing the environment variables,
2287  &quot;policy&quot; - for policy settings, 
2288  &quot;intl&quot; for locale settings.
2289  <br>
2290  Examples:
2291  <span class="commandline">
2292  <br>sysrefresh
2293  <br>sysrefresh environment
2294  <br>sysrefresh policy
2295  </span>
2296  
2297  
2298  
2299  <tr>
2300  <td class="tablecol1">setcursor
2301  <td>
2302  <h6 class="commandsyntax">
2303  setcursor [X] [Y]
2304  </h6>
2305  Set the position of mouse cursor. The <span class="commandsyntax">[X]</span> and <span class="commandsyntax">[Y]</span> parameters specifies the desired cursor position.
2306  <br>
2307  Example:
2308  <span class="commandline">
2309  <br>setcursor 100 50
2310  </span>
2311  
2312  
2313  <tr>
2314  <td class="tablecol1">movecursor
2315  <td>
2316  <h6 class="commandsyntax">
2317  movecursor [X] [Y]
2318  </h6>
2319  move the mouse cursor. The <span class="commandsyntax">[X]</span> and <span class="commandsyntax">[Y]</span> parameters specifies the number of pixels to move.
2320  Example:
2321  <span class="commandline">
2322  <br>movecursor 10 10
2323  </span>
2324  
2325  
2326  <tr>
2327  <td class="tablecol1">dlg
2328  <td>
2329  <h6 class="commandsyntax">
2330  dlg [Process Name] [Window Title] [Action] [Parameters]
2331  </h6>
2332  Allows you to interact with standard dialog-boxes and message-boxes of Windows.
2333  When a dialog-box is opened, you can use this command to &quot;click&quot; the ok/cancel/yes/no buttons, or fill
2334  the text-boxes in the dialog-box.
2335  <br>
2336  For example, the following commands fill the standard 'Run' dialog-box of Windows with 'calc.exe' process, and then
2337  click the 'OK' button. The '12298' is the control ID of the text-box in the Run dialog-box.
2338  You can find the control ID by using Spy++ of Microsoft, or by using my <a href="http://www.nirsoft.net/utils/winexp.html" target="winexp">WinExplorer</a> utility.
2339  
2340  <span class="commandline">
2341  <br>dlg &quot;explorer.exe&quot; &quot;run&quot; settext 12298  &quot;calc.exe&quot;
2342  <br>dlg &quot;explorer.exe&quot; &quot;run&quot; click ok
2343  </span>
2344  <p>
2345  The following command will choose the 'Yes' answer for any question dialog-box of Explorer process:
2346  <span class="commandline">
2347  <br>dlg &quot;explorer.exe&quot; &quot;&quot; click yes
2348  </span>
2349  
2350  <p>
2351  The following command will choose the 'Cancel' answer for any question dialog-box of any process:
2352  <span class="commandline">
2353  <br>dlg &quot;&quot; &quot;&quot; click cancel
2354  </span>
2355  
2356  <p>
2357  Parameters description:
2358  <ul>
2359  <li><span class="commandsyntax">[Process Name]</span>: 
2360  Specifies the process that created the desired window. You can specify only the process name or the full path of the process.
2361  If this parameter is empty string(&quot;&quot; ), the command will be executed on any process.
2362  <li><span class="commandsyntax">[Window Title]</span>: 
2363  Specifies the title of the window that you want the execute the action. 
2364  If this parameter is empty string(&quot;&quot; ), the command will be executed on any window, regardless the window title.
2365  
2366  <li><span class="commandsyntax">[Action]</span>: 
2367  You can specify one of the following options:
2368  <ul>
2369  <li><span class="special2">click</span>:
2370  Click the specified button. You can specify one of the following predefined values (For standard Windows dialog-boxes only !):
2371  yes, no, ok, cancel, retry, ignore, close, help. You can also specify any control ID as numeric value.
2372  
2373  <li><span class="special2">settext</span>:
2374  Set the text of the specified control. The first parameter of this action specifies the ID of the control, and the second parameter specifies
2375  the text.
2376  
2377  </ul>
2378  </ul>
2379  
2380  
2381  </ul>
2382  
2383  
2384  <tr>
2385  <td class="tablecol1">dlgany
2386  <td>
2387  <h6 class="commandsyntax">
2388  dlgany [Process Name] [Window Title] [Action] [Parameters]
2389  </h6>
2390  similar to dlg command, but also works on any window, even if it's not identified as a standard Windows dialog-box.
2391  
2392  <br>
2393  
2394  <tr>
2395  <td class="tablecol1">returnval
2396  <td>
2397  <h6 class="commandsyntax">
2398  returnval [Return Value]
2399  </h6>
2400  This command allows you to specify the return value for NirCmd. 
2401  The return value can be used by external program that run NirCmd.
2402  <br>
2403  For example, in the following command, NirCmd returns 0x30 value if the user choose the 'Yes' answer:
2404  <span class="commandline">
2405  <br>qboxcom &quot;Do you want to continue ?&quot; &quot;question&quot; returnval 0x30
2406  </span>
2407  
2408  
2409  
2410  <tr>
2411  <td class="tablecol1">sendkey
2412  <td>
2413  <h6 class="commandsyntax">
2414  sendkey [Key] [press | down | up]
2415  </h6>
2416  Sends a keystroke to the system. 
2417  The operating system will behave exactly as the user really pressed the specified keys.
2418  <br>
2419  The <span class="commandsyntax">[Key]</span> parameter specifies the key as virtual key code
2420  (For example: 0x2e for Delete key), or as one of the following predefined values:
2421  a - z and 0 - 9 (for alphanumeric keys), F1 - F24 (for Fxx keys), shift, ctrl, alt, enter, esc.
2422  <br>
2423  The second parameter specifies the key action: 'press', 'down', or 'up'.
2424  For each key down action, you should also add the appropriate key up action.
2425  <p>
2426  
2427  In the following script example, the system behaves like the user presses Shift+Ctrl+Esc (the task manager should appear):
2428  <span class="commandline">
2429  <br>sendkey shift down
2430  <br>sendkey ctrl down
2431  <br>sendkey esc down
2432  <br>sendkey shift up
2433  <br>sendkey ctrl up
2434  <br>sendkey esc up
2435  </span>
2436  <p>
2437  More examples:
2438  <span class="commandline">
2439  <br>sendkey a press
2440  <br>sendkey f10 press
2441  <br>sendkey enter press
2442  <br>sendkey 0x2e press
2443  </span>
2444  
2445  
2446  
2447  <tr>
2448  <td class="tablecol1">sendmouse
2449  <td>
2450  <h6 class="commandsyntax">
2451  sendmouse [right | left | middle] [down | up | click | dblclick]
2452  </h6>
2453  <h6 class="commandsyntax">
2454  sendmouse [move] [x] [y]
2455  </h6>
2456  <h6 class="commandsyntax">
2457  sendmouse [wheel] [Wheel Value]
2458  </h6>
2459  
2460  Sends the specified mouse event to the system.
2461  The operating system will behave exactly as the user really made the specified mouse action.
2462  <br>
2463  Heres some example of sendmouse command:
2464  <ul>
2465  <li>Sent a right click (For most applications, a context menu is opened):
2466  <span class="commandline">
2467  <br>sendmouse right click
2468  </span>
2469  
2470  <li>Sent a double-click with the left mouse button:
2471  <span class="commandline">
2472  <br>sendmouse left dblclick
2473  </span>
2474  
2475  <li>Press the left mouse button, move the mouse cursor 20 pixels left and 30 pixels down, and then release the button:
2476  <span class="commandline">
2477  <br>sendmouse left down
2478  <br>sendmouse move -30 20
2479  <br>sendmouse left up
2480  </span>
2481  
2482  <li>Scroll the mouse wheel 10 units in standard wheel mouse. (On standard wheel mouse, the wheel value should be a multiple of 120).
2483  <span class="commandline">
2484  <br>sendmouse wheel 1200
2485  </span>
2486  
2487  
2488  </ul>
2489  
2490  
2491  
2492  
2493  </table>
2494  
2495  <h4 class="utilsubject">Feedback</h4>
2496  If you have any problem, suggestion, comment, or you found a bug in my utility, 
2497  you can send a message to <a href="mailto:nirsofer@yahoo.com">nirsofer@yahoo.com</a>
2498  
2499  
2500  
2501  
2502  </BODY>
2503  </HTML>


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1