Jump to content

Recommended Posts

Posted

I'm using my usb drive I've put few important files Portable FireFox, Portable Miranda IM, Autoruns, and Process Explorer. Now I use a program called PStart to have a nice menu with the programs on my drive.

I need a script that launches with Pstart "it has option to autorun" that will sleep uintil my usb drive unplugs then have it kill the program.

Posted

Well you can run PStart which is like a menu for usb drive which can autorun when you plug it in. But when you unplug it is still running on computer. I was playing with driveget for few minutes, but I gotta run to the gym ill try figure it out little bit later. :whistle:

Posted

Well you can run PStart which is like a menu for usb drive which can autorun when you plug it in. But when you unplug it is still running on computer. I was playing with driveget for few minutes, but I gotta run to the gym ill try figure it out little bit later. :whistle:

Oh i get it.

Well, lets pretend you have only one removable drive plugged in at any one time.

Do
    $Drives = DriveGetDrive("REMOVABLE")
    If $Drives[0] = 0 Then;change if you have any more removable drives
        ProcessClose("PStart.exe");Change for process name
    EndIf
Until $Drives[0] = 0 ;This too for more removable Drives
Exit

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
  • Recently Browsing   0 members

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