stealthtenns Posted October 14, 2010 Share Posted October 14, 2010 I have a usb sandisk cruzer with u3. and I know that the u3 pops ups automatically. is there a way to put a program on that will automatically close all files. I have the .ba program to do this but how do I put in into my usb. Quote Link to comment Share on other sites More sharing options...
Infiltrator Posted October 15, 2010 Share Posted October 15, 2010 (edited) 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 October 15, 2010 by Infiltrator Quote Link to comment Share on other sites More sharing options...
dimaj Posted October 15, 2010 Share Posted October 15, 2010 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 Quote Link to comment Share on other sites More sharing options...
stealthtenns Posted October 15, 2010 Author Share Posted October 15, 2010 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 Quote Link to comment Share on other sites More sharing options...
IrishFavor Posted October 15, 2010 Share Posted October 15, 2010 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. Quote Link to comment Share on other sites More sharing options...
Infiltrator Posted October 16, 2010 Share Posted October 16, 2010 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. Quote Link to comment Share on other sites More sharing options...
stealthtenns Posted October 16, 2010 Author Share Posted October 16, 2010 The problem is I do not know how to make a program run on startup using the u3. Quote Link to comment Share on other sites More sharing options...
Infiltrator Posted October 16, 2010 Share Posted October 16, 2010 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 Quote Link to comment Share on other sites More sharing options...
stealthtenns Posted October 26, 2010 Author Share Posted October 26, 2010 Tried the above but didnt work because just an autoplay would start not the actual program... Is there a way to create a partition on the drive like the u3 has a partition so then it would run as a cd on the partition part? thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.