문제

I am writing code for autorun.inf file such as

[autorun]
open=Viewer\viewer.exe
icon=Viewer\viewer.exe,1

.exe is inside the Viewer Folder but i want to run or lunch this exe automatically (as Autoplay) whenever user insert CD/DVD inside the CD/DVD Drive.

But actually this is not working. I dont know why?

OS: Windows 7 (32 Bit)

도움이 되었습니까?

해결책 2

I solve this answer just using single line

[autorun]
open=Viewer\viewer.exe
action=Start ShellRun-CD // this line is important

다른 팁

In relation to the above mentioned question...

[autorun]
open=Viewer\viewer.exe
icon=Viewer\viewer.exe,1
action=Start ShellRun-CD // this line is important

The 1st line after the [autorun] tells the autoplay what file to execute. The 2nd line after the [autorun] displays the icon. If it is a DLL or EXE file then the optional position may be given. If it is an icon (.ico) file then not necessary. The 3rd line is the description that will appear when the autoplay dialogue appears. This line is not important and does not affect the execution of the program.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top