Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to create a Autorun.inf to open a particular folder?

when i insert the my pen drive, it just opens its drive automatically,i want it to open a different folder instead. 

Tried 

[autorun]

icon="setup.ico"
label=WINSETUP
action=Drivers and softwares
open="Drivers and softwares\" 

i can only get the icon to work, the rest just wont work.
 

 

Spoiler
Spoiler

Intel i7 4790K (4.0 GHz) | MSI Z97-GAMING 5 | Corsair Vengeance 8GB DDR3-1866 2x8GB | Asus GeForce GTX 1070 OC Strix | Samsung 840 Pro Series 256GB | Corsair RM 850W | Corsair H90 94.0 CFM | Logitech® Wireless Combo MK330 | Cooler Master HAF XM | Dell S2240L 60Hz 21.5 IPS | 

PCPartPicker 

Link to post
Share on other sites

Open a folder from that drive I assume, right?

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to post
Share on other sites

Open a folder from that drive I assume, right?

Yes. 

 

Spoiler
Spoiler

Intel i7 4790K (4.0 GHz) | MSI Z97-GAMING 5 | Corsair Vengeance 8GB DDR3-1866 2x8GB | Asus GeForce GTX 1070 OC Strix | Samsung 840 Pro Series 256GB | Corsair RM 850W | Corsair H90 94.0 CFM | Logitech® Wireless Combo MK330 | Cooler Master HAF XM | Dell S2240L 60Hz 21.5 IPS | 

PCPartPicker 

Link to post
Share on other sites

My guess it's probably got something to do with spaces in the filenames.

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to post
Share on other sites

My guess it's probably got something to do with spaces in the filenames.

so should i add % in between ?

 

Spoiler
Spoiler

Intel i7 4790K (4.0 GHz) | MSI Z97-GAMING 5 | Corsair Vengeance 8GB DDR3-1866 2x8GB | Asus GeForce GTX 1070 OC Strix | Samsung 840 Pro Series 256GB | Corsair RM 850W | Corsair H90 94.0 CFM | Logitech® Wireless Combo MK330 | Cooler Master HAF XM | Dell S2240L 60Hz 21.5 IPS | 

PCPartPicker 

Link to post
Share on other sites

@Rohith_Kumar_Sp

Ah, the problem is different.

"open" tells the computer to open a file, for example run a bat, or a script.It doesn't open a folder in file explorer.

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to post
Share on other sites

@Rohith_Kumar_Sp

Ah, the problem is different.

"open" tells the computer to open a file, for example run a bat, or a script.It doesn't open a folder in file explorer.

i'm no expert, i also made a autorun called 

 

[autorun]

icon="setup.ico"
label=WINSETUP
action=Drivers and softwares
open="Drivers and softwares\SteamSetup.exe" 

it doesnt open steam setup, so i know i'm doing something else wrong. 

 

Spoiler
Spoiler

Intel i7 4790K (4.0 GHz) | MSI Z97-GAMING 5 | Corsair Vengeance 8GB DDR3-1866 2x8GB | Asus GeForce GTX 1070 OC Strix | Samsung 840 Pro Series 256GB | Corsair RM 850W | Corsair H90 94.0 CFM | Logitech® Wireless Combo MK330 | Cooler Master HAF XM | Dell S2240L 60Hz 21.5 IPS | 

PCPartPicker 

Link to post
Share on other sites

@Rohith_Kumar_Sp

You need to make a script to open the folder in windows explorer.

In vbs it would be :

Set objShell = CreateObject("Wscript.Shell")path = "<Path here>"objShell.Run "explorer.exe /e," & path

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to post
Share on other sites

 

@Rohith_Kumar_Sp

You need to make a script to open the folder in windows explorer.

In vbs it would be :

Set objShell = CreateObject("Wscript.Shell")path = "<Path here>"objShell.Run "explorer.exe /e," & path

like this ?

 

Set objShell = CreateObject("Wscript.Shell")
path = "<\Drivers and softwares\>"
objShell.Run "explorer.exe /e," & \Drivers and softwares\

EDIT: open="Drivers and softwares\SteamSetup.exe" also doesn't work. it just wont open the folder or the exe inside a folder. it just opens the pen drive folder normally

 

Spoiler
Spoiler

Intel i7 4790K (4.0 GHz) | MSI Z97-GAMING 5 | Corsair Vengeance 8GB DDR3-1866 2x8GB | Asus GeForce GTX 1070 OC Strix | Samsung 840 Pro Series 256GB | Corsair RM 850W | Corsair H90 94.0 CFM | Logitech® Wireless Combo MK330 | Cooler Master HAF XM | Dell S2240L 60Hz 21.5 IPS | 

PCPartPicker 

Link to post
Share on other sites

Have you tried writing a batch OR .cmd file and executing it?

Link to post
Share on other sites

explorer.exe "\windows\system32\drivers\etc"
 

within open_HOSTS_dir.bat seems to work fine, you'll just need to have it execute correctly on autorun

Link to post
Share on other sites

explorer.exe "\windows\system32\drivers\etc"

 

within open_HOSTS_dir.bat seems to work fine, you'll just need to have it execute correctly on autorun

this is my auotrun please just fix it.

 

[autorun]
icon="setup.ico"
label=Windows 7/10 x64
shell\read=open readme.txt 
action=Drivers and softwares
open=Drivers and softwares\

 

 

Spoiler
Spoiler

Intel i7 4790K (4.0 GHz) | MSI Z97-GAMING 5 | Corsair Vengeance 8GB DDR3-1866 2x8GB | Asus GeForce GTX 1070 OC Strix | Samsung 840 Pro Series 256GB | Corsair RM 850W | Corsair H90 94.0 CFM | Logitech® Wireless Combo MK330 | Cooler Master HAF XM | Dell S2240L 60Hz 21.5 IPS | 

PCPartPicker 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Newegg

×