I used
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v a /t REG_SZ /d f:\TFTplayer.exe /f
But I wanted to use this file to open it, so I added a little something and it became
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v a /t REG_SZ /d f:\TFTplayer.exe "%1" /f
and then it wouldn't work.
CMD gives the error: too many command-line arguments
I don't think it looks wrong, so could one of the experts tell me where exactly the mistake is???
Thanks, everyone!
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v a /t REG_SZ /d f:\TFTplayer.exe /f
But I wanted to use this file to open it, so I added a little something and it became
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v a /t REG_SZ /d f:\TFTplayer.exe "%1" /f
and then it wouldn't work.
CMD gives the error: too many command-line arguments
I don't think it looks wrong, so could one of the experts tell me where exactly the mistake is???
Thanks, everyone!
