1.

Solve : Run a exe file from a USB?

Answer»

I have a program that I want to load up everytime I plug in my USB stick but I am having TROUBLE finding a way to do that, I was thinking that I could do a batch script to run the program but because I use the USB stick in many different computers that all assign it a different drive letter I am finding it difficult to acheive what I am after.

Does anyone have any ideas on what I could do to get the program to EITHER auto load or show up in the AutoRun selection screen when I plug it in. All the computers that I will be running it off are winXP SP2

This is what I have so far for the batch script. But when I TRY and run it, it tells me that it is an unrecognized internal or external command.

Code: [Select]@ECHO OFF
ECHO Running Portable Applications Menu.....
\applications\portable application Menu\startPortableAppsMenu.exe
pause
Can anyone help me out?Add autorun routine to it from Karenware Tools at http://www.karenware.com/powertools/ptautorun.asp maybe .... Never used it for pen drives, might only work for CD's and DVD's, but couldn't hurt to try it and its free... :-/

Also because of the spaces maybe try this: "\applications\portable application Menu\startPortableAppsMenu.exe" in your code.... just as SEEN with " " and @Echo. vs Echo :-/


@ECHO OFF
@ECHO. Running Portable Applications Menu.....
"\applications\portable application Menu\startPortableAppsMenu.exe"
pauseI created an Autorun file with the software that you suggested but when I run it I get an error saying E:\ Not Accessable.

and adding the " " to that line of code still comes up with the same error.

This is the autorun.ini file

Code: [Select][Autorun]
open=\Applications\Portable Application Menu\StartPortableApps.exe
Action=Start PortableApps
label=Storage



Discussion

No Comment Found