Jump to content

Way To Put A Program Into Usb


stealthtenns

Recommended Posts

You can write your own batch script, that will do what are saying. But I am not sure what you mean by this statement

"is there a way to put a program on that will automatically close all files"

Could you please clarify that to me?

Edited by Infiltrator
Link to comment
Share on other sites

I would assume that if you will create an autorun file that will execute a batch file, you're job is done...

This might not work since U3 sticks are partitioned into 2 partitions: CD-ROM, which "unlocks" your data partition... Still worth a shot though.

dimaj

Link to comment
Share on other sites

Ok what I am reffering to is. I have a .bat file that if I click it, it will close all the applications. Now I know that when you put the usb stick in, automatically without cliking anything the u3 thing comes up. What I want to do is, when I put in the usb stick, it will autmatically run the .bat script, like instead of running the u3, I want it to run the .bat or both at same time. Is it possible? thanks

Link to comment
Share on other sites

Yes it is possible to run both, you can write the batch scrip and then in the u3 menu you can choose a program to start when the u3 menu is launched and because the u3 is launched when you insert the drive the batch will also run. otherwise if you have an autorun.ini in your root and list the batch script listed in the autorun.ini file it should autorun provided that you have autorun enabled.

Link to comment
Share on other sites

You might want to rethink the autorun idea, I mean what if the computer you are trying to close all the programs from has the autorun feature disabled. I know a CD would still run, even after the autorun feature has been disabled.

Link to comment
Share on other sites

The problem is I do not know how to make a program run on startup using the u3.

Take a look at these articles, they explain how to create an autorun script that can be saved to an USB. It should give you some ideas on how to write a batch file and then use it to run any file you want.

http://dailycupoftech.com/usb-drive-autoruninf-tweaking/

http://www.irongeek.com/i.php?page=videos/...and-batch-files

http://www.howtogeek.com/forum/topic/autor...-usb-thumbdrive

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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