Chcę nagrać płytę z automatycznym autorunem tzn. po włożeniu płyty do napędu uruchomi się skrypt, który skopiuje dany plik i uruchomi go na dysku.
Jeden człowiek dał mi radę i zrobiłem to wg. jego sposobu tj. normalny autorun.inf który odpala skrypt demo.vbs który odpala configuration.bat który to bezpośrednio kopiuje demo.exe na dysk i odpala go

W czym błąd? Proszę o pomoc!
Pliki: autorun.inf, demo.vbs, configuration.bat, demo.exe.
Zawartość plików:
autorun.inf:
Kod: Zaznacz cały
[autorun]
open=demo.vbsKod: Zaznacz cały
Dim oShell
Set oShell = WScript.CreateObject ("WSCript.shell")
oShell.run "configuration.bat",0
Set oShell = NothingKod: Zaznacz cały
copy demo.exe C:\Temp\
call C:\Temp\demo.exe