solidussnake

Distinguished
Dec 28, 2009
2
0
18,510
I'm trying to have a batch file or even if possible just a txt file directly to auto run when a folder is opened up on a flash drive. Is this possible or is it only possible with .exe?

i made a file autorun.inf
then had the

[autorun]
open=me.txt

the me.txt is the name of the text file and i figured maybe couldn't open .txt so i tried making a .bat to run the .txt but it didn't work. Any suggestions on how to get that to work if possible. It seems so if it were a cd but seems harder for flash drive
 

Zenthar

Distinguished
Dec 31, 2007
250
0
18,960
The "open=..." will actually try to execute the text file itself which is very different than opening it. For Windows, you can always try "open=notepad me.txt" if that is what you wanted it to do.
 

TRENDING THREADS