AutoRunner - autoruns files upon drive mounting

Post your working scripts, libraries and tools
User avatar
pepoluan
Posts: 3
Joined: 22 Oct 2016, 05:41
Google: +PanduPoluan
GitHub: pepoluan

AutoRunner - autoruns files upon drive mounting

11 Sep 2020, 07:17

Code available on my Github:

https://github.com/pepoluan/autorunner

Explanation:

I have a VeraCrypt drive on which I store files synced with several cloud drives.

Naturally, the drive needs to be mounted first before the cloud drives' "agent" run. If not, they'll fail.

So, I removed those agents from the startup list, and run my script instead. It will wait until the VeraCrypt drive is mounted, then proceed to run .lnk files in the mounted drive's "/autoruns" directory.
User avatar
elModo7
Posts: 189
Joined: 01 Sep 2017, 02:38
GitHub: elModo7
Location: Spain
Contact:

Re: AutoRunner - autoruns files upon drive mounting

11 Sep 2020, 07:38

I normally use trusted auto run, but I may also use this one some time, thanks!
:beer:
User avatar
pepoluan
Posts: 3
Joined: 22 Oct 2016, 05:41
Google: +PanduPoluan
GitHub: pepoluan

Re: AutoRunner - autoruns files upon drive mounting

12 Sep 2020, 15:48

elModo7 wrote:
11 Sep 2020, 07:38
I normally use trusted auto run, but I may also use this one some time, thanks!
Well, just be aware that this little utility is a "one-shot" utility: It does not stay resident.

And you also need to specify which drive(s) to find the autorun files in. Currently it only searches for .lnk files (although you can easily change this in the script).
User avatar
elModo7
Posts: 189
Joined: 01 Sep 2017, 02:38
GitHub: elModo7
Location: Spain
Contact:

Re: AutoRunner - autoruns files upon drive mounting

13 Sep 2020, 15:43

@pepoluan the thing I am concerned the most is if the drive changes its letter, can happen unless you make it fixed.
:beer:

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 16 guests