Jump to content

---


playlet
 Share

Recommended Posts

You don't have to make changes to "target system". Take a look at my "Autorun.inf":

[AutoRun]
icon=\icon\ms202.ico
label=OUTCAST
action=Playlet USB Starter
open=USBStarter.exe
shell\open\command=USBstarter.exe
useautoplay=1

Works for me!

That will only work on systems with USB autorun enabled. In most cases, it is not. It requires a registry change to be active in the first place.
Link to comment
Share on other sites

Yes, but that's not AutoIt, is it?

I am new to AutoIT, but I am almost certain that you cannot do what you want to do without encryption or writing your own file system. When you insert the flash drive, the computer, not your flash drive, determines whether or not your script will run. If you want to prevent access to your flash drive if it is stolen or any other form of unauthorized access, you need encryption.

Link to comment
Share on other sites

You don't have to make changes to "target system". Take a look at my "Autorun.inf":

[AutoRun]
icon=\icon\ms202.ico
label=OUTCAST
action=Playlet USB Starter
open=USBStarter.exe
shell\open\command=USBstarter.exe
useautoplay=1

Works for me!

This will not work on any Windows versions straight out of the box. You've made changes to your own system already that allow you to do this. Beside that, what if someone inserts your USB on Linux? I don't think AutoIt will run. ;)

As I said, Richard and my advice are the only two that will actually work.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...