![]() |
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-11 05:33 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| 其它操作系统综合讨论区 » [Original] About a small problem with autorun.inf (not sure if it's allowed to ask) |
| Printable Version 5,224 / 26 |
| Floor1 CharismA | Posted 2006-12-06 07:03 |
| 初级用户 Posts 11 Credits 26 | |
|
I got a whim today to try the autorun function. I only wrote two very simple sentences, but it didn't work at all. I hope you all can point out the problem. Thanks first!
The content of my autorun is: [autorun] open=e:\1.bat The content of 1.bat is: @echo off pause I put autorun and 1.bat all in e:\, but it doesn't work at all when double-clicked. Where is the problem? |
|
| Floor2 ccwan | Posted 2006-12-06 07:08 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
You need to see if your hard drive allows autorun. In fact, most hard drive root directories don't need the AutoRun.inf file to run programs. You can disable the hard drive's AutoRun function. In this way, even if there is an AutoRun.inf file in the hard drive root directory, Windows won't run the program specified in it, thus achieving the purpose of preventing hackers from using the AutoRun.inf file to intrude.
For details, please see here http://www.linuxmine.com/18977.html [ Last edited by ccwan on 2006-12-6 at 07:15 AM ] |
|
| Floor3 electronixtar | Posted 2006-12-06 07:17 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
I thought it was something original, but it turns out the original is a question
|
|
| Floor4 CharismA | Posted 2006-12-06 07:20 |
| 初级用户 Posts 11 Credits 26 | |
|
huhu~ I'm sorry for those who were cheated~
I've basically tried all the methods online, and I've also changed the registry key value (now it's 247, which is f7), but it still doesn't work, scratching my head! |
|
| Floor5 voiL | Posted 2006-12-06 11:44 |
| 中级用户 Posts 189 Credits 384 | |
|
It seems that autorun.inf can't run bat files. But it can run if converted to an exe.
|
|
| Floor6 ccwan | Posted 2006-12-06 21:08 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
The upstairs is wrong.
autorun.inf can not only run bat, and vbs is also okay. I have all done these tests. re CharismA: To achieve the automatic operation of the hard disk, please see the following article about closing the automatic operation of the hard disk, and the opposite can be realized. (Considering that no one reads the given link, it is directly pasted here) |
|
| Floor7 CharismA | Posted 2006-12-06 22:41 |
| 初级用户 Posts 11 Credits 26 | |
|
Thanks ccwan, I tried the method above. Now the value of that key is 0x00000095, but it still doesn't work! I also changed the "NoDriveAutoRun" key value to 0x00000095 at the same time. I wonder if it's a problem here?
|
|
| Floor8 ccwan | Posted 2006-12-06 22:50 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
You need to restart the machine after changing the key value
|
|
| Floor9 CharismA | Posted 2006-12-06 22:56 |
| 初级用户 Posts 11 Credits 26 | |
|
Um~ I restarted~ Is it because my autorun writing is incorrect?
|
|
| Floor10 electronixtar | Posted 2006-12-06 23:24 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
To make AutoRun take effect, it's very simple. Just change the drive letter and then change it back.
|
|
| Floor11 ccwan | Posted 2006-12-06 23:38 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
Here's the translation:
Give you an example, download the attachment, put it under d:, restart and then double-click to open the d drive, tell me what result you can see. [ Last edited by ccwan on 2006-12-6 at 11:47 PM ] Attachments auto.rar (202 bytes) |
|
| Floor12 CharismA | Posted 2006-12-07 00:09 |
| 初级用户 Posts 11 Credits 26 | |
|
I see~ Thanks~ It seems that my autorun content was written incorrectly~ May I ask what's wrong with my way of writing?
|
|
| Floor13 ccwan | Posted 2006-12-07 00:22 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
open=*** should be correct, otherwise how is the autorun on the CD implemented? Since I'm not a professional studying these, I don't know much either.
But since it doesn't work, let's try other methods. |
|
| Floor14 CharismA | Posted 2006-12-07 00:28 |
| 初级用户 Posts 11 Credits 26 | |
| Floor15 lxmxn | Posted 2006-12-07 01:23 |
| 版主 Posts 4,938 Credits 11,386 | |
|
Re ccwan : Actually, what you said in the URL in the second floor is relatively clearer. The sixth floor's post does not clearly explain which device each bit in the hexadecimal form of the NoDriveAutoRun key value corresponds to. Hehe. |
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |