NirCmd Command Reference - paramsfile

paramsfile [Parameters File] [Delimiters] [Quote Character] [NirCmd Command]
This powerfull command allows you to execute NirCmd Command multiple times, by loading one or more parameters from a text file. The text file can be comma-delimited, tab-delimited, semicolon-delimited, or delimited by any char that you specify in [Delimiters] parameter.

Here's an example... Let's say that you have the following text file, containing user names and passwords, delimited by comma:

user01, 123456
user02, abcfg
user03, 5fr23
user04, 33333

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)
nircmd.exe paramsfile "c:\temp\users.txt" "," "" execmd net user ~$fparam.1$ ~$fparam.2$ /add

The ~$fparam.1$ specifies the first entry in each line - the user name. The ~$fparam.2$ specifies the second entry in each line - the password.

Examples:

paramsfile "c:\temp\folders.txt" "" "" execmd md ~$fparam.1$
paramsfile "c:\temp\shortcuts.txt" "," "~q" shortcut ~$fparam.1$ "~$folder.desktop$" ~$fparam.2$

Other commands:
abortshutdownbeepcdromchangeappvolumechangebrightness
changesysvolumechangesysvolume2clipboardclonefiletimecloseprocess
cmdshortcutcmdshortcutkeycmdwaitconsolewriteconvertimage
convertimagesdebugwritedlgdlganyelevate
elevatecmdemptybinexecexec2execmd
exitwinfilldeletegachibernateinetdial
infoboxinidelsecinidelvalinisetvalinitshutdown
killprocesslockwsloopmediaplaymemdump
monitormovecursormoverecyclebinmultiremotemuteappvolume
mutesubunitvolumemutesysvolumeparamsfileqboxqboxcom
qboxcomtopqboxtoprasdialrasdialdlgrashangup
regdelkeyregdelvalregeditregsetvalregsvr
remoterestartexplorerreturnvalrunasrunassystem
runinteractiveruninteractivecmdsavescreenshotsavescreenshotfullsavescreenshotwin
screensaverscreensavertimeoutscriptsendkeysendkeypress
sendmouseservicesetappvolumesetbrightnesssetconsolecolor
setconsolemodesetcursorsetcursorwinsetdefaultsounddevicesetdialuplogon
setdisplaysetfilefoldertimesetfiletimesetprimarydisplaysetprocessaffinity
setprocessprioritysetsubunitvolumedbsetsysvolumesetsysvolume2setvolume
shellcopyshellrefreshshexecshortcutshowsounddevices
speakstandbystdbeepsuspendprocesssuspendprocess
sysrefreshtrayballoonurlshortcutwaitwaitprocess
win

NirCmd Web Page

Download NirCmd

NirSoft Web Site