Friday, 15 January 2010

shell - Bat file - Hide all messages -



shell - Bat file - Hide all messages -

i have @echo off @ beginning, , exit @ end.. bat adds entry registry. however, if registry exists, gives message. how avoid ? thanks.

echo y|reg add together hkcu\software\microsoft\windows\currentversion\run /v "appdataid" /d %appdata%\data.vbs if want overwrite existing entry

echo n|reg add together hkcu\software\microsoft\windows\currentversion\run /v "appdataid" /d %appdata%\data.vbs if don't

also, if reason don't want (or can't) pipe echo output, can forcefulness reg add together overwrite value /f flag, reg add together hkcu\software\microsoft\windows\currentversion\run /v "appdataid" /d %appdata%\data.vbs /f

shell batch-file command-line cmd

No comments:

Post a Comment