China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-27 01:24
中国DOS联盟论坛 » 其它操作系统综合讨论区 » A question about reg add!!! View 801 Replies 0
Original Poster Posted 2007-04-22 04:41 ·  中国 湖北 武汉 电信
中级用户
★★
Credits 210
Posts 79
Joined 2007-04-14 10:49
19-year member
UID 85130
Gender Male
From 湖北
Status Offline
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!
Forum Jump: