Question

I'm looking for good tutorials to learn programming batch and it looks simple enough but I cant seem to find information on what /v, /t , /d represent...

I assume:

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun"   /v "1" /t REG_SZ /d "msnmsgr.exe" /f

/v = value
/t = target
/d = ?
/f = ?

Am I correct on v and t? and what about d & f

Was it helpful?

Solution

This has nothing to do with batch commands. Those are command-line options to the reg.exe executable.

reg add <KeyName> [{/v ValueName | /ve}] [/t DataType] [/s Separator] [/d Data] [/f]

If you're interested in command-line utilities that are part of Windows, you should bookmark the TechNet A-Z List

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top