![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-06 06:21 |
48,039 topics / 350,124 posts / today 2 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] How to call a program in Startup? |
| Printable Version 855 / 6 |
| Floor1 yiyepianzhou | Posted 2007-10-26 13:46 |
| 初级用户 Posts 47 Credits 138 | |
|
Using the at command to call a program in “C:\Documents and Settings\Administrator\「Start」 Menu\Programs\Startup”, the system says it can't find the path. What's going on?
|
|
| Floor2 hunanshewai | Posted 2007-10-26 16:37 |
| 新手上路 Posts 4 Credits 10 | |
|
Try changing it to C:\"Documents and Settings"\"Administrator"\
|
|
| Floor3 yiyepianzhou | Posted 2007-10-26 17:04 |
| 初级用户 Posts 47 Credits 138 | |
|
Still doesn't work
After changing it, dir can display the contents inside but it still can't call the program in there |
|
| Floor4 yiyepianzhou | Posted 2007-10-26 17:13 |
| 初级用户 Posts 47 Credits 138 | |
|
Still doesn't work
After changing it, dir can view the contents inside but it still can't call the program in there |
|
| Floor5 HAT | Posted 2007-10-27 11:23 |
| 版主 Posts 5,017 Credits 9,023 | |
|
First get the real path of the program in “C:\Documents and Settings\Administrator\「Start」 Menu\Programs\Startup”, then use at to call it.
|
|
| Floor6 yiyepianzhou | Posted 2007-10-27 13:51 |
| 初级用户 Posts 47 Credits 138 | |
|
I put a batch file in “Startup”
After the machine starts up I want it to call itself by itself, but using at just won't work |
|
| Floor7 abcd | Posted 2007-10-27 13:57 |
| 银牌会员 Posts 739 Credits 1,436 | |
|
%0 can get the absolute path of the batch file itself
You can try "%~f0" |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |