Forum » Programiranje » batch ali vbs premik datotek
batch ali vbs premik datotek
22gapi22 ::
pozdravljeni,
imam batch file ki ti prenese vse doc, pdf... datoteke iz mojih dokumentov, vendar pa prenese tudi celotno strukturo-z vsemi mapami vključno s praznimi. ali je mogoče, da bi mi vse datoteke prenesel v eno mapo brez ostalih direktorijev?
file je takšen:
@echo off
:: variables
/min
SET odrive=%odrive:~0,2%
set backupcmd=xcopy /s /c /d /h /i /r /y
echo off
%backupcmd% "%USERPROFILE%\*doc" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\*docx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\*pdf" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\*ppt" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\*pptx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\*pps" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\*ppsx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\documents\*doc" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\documents\*docx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\documents\*pdf" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\documents\*ppt" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\documents\*pptx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\documents\*pps" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\documents\*ppsx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\desktop\*doc" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\desktop\*docx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\desktop\*pdf" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\desktop\*ppt" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\desktop\*pptx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\desktop\*pps" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\desktop\*ppsx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\favorites\*doc" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\favorites\*docx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\favorites\*pdf" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\favorites\*ppt" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\favorites\*pptx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\favorites\*pps" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\favorites\*ppsx" "%drive%\all\vse"
@echo off
cls
hvala za pomoč
imam batch file ki ti prenese vse doc, pdf... datoteke iz mojih dokumentov, vendar pa prenese tudi celotno strukturo-z vsemi mapami vključno s praznimi. ali je mogoče, da bi mi vse datoteke prenesel v eno mapo brez ostalih direktorijev?
file je takšen:
@echo off
:: variables
/min
SET odrive=%odrive:~0,2%
set backupcmd=xcopy /s /c /d /h /i /r /y
echo off
%backupcmd% "%USERPROFILE%\*doc" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\*docx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\*pdf" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\*ppt" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\*pptx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\*pps" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\*ppsx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\documents\*doc" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\documents\*docx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\documents\*pdf" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\documents\*ppt" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\documents\*pptx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\documents\*pps" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\documents\*ppsx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\desktop\*doc" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\desktop\*docx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\desktop\*pdf" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\desktop\*ppt" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\desktop\*pptx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\desktop\*pps" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\desktop\*ppsx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\favorites\*doc" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\favorites\*docx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\favorites\*pdf" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\favorites\*ppt" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\favorites\*pptx" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\favorites\*pps" "%drive%\all\vse"
%backupcmd% "%USERPROFILE%\favorites\*ppsx" "%drive%\all\vse"
@echo off
cls
hvala za pomoč
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | Java replaceAllOddelek: Programiranje | 939 (855) | misek |
» | kateri ključek?Oddelek: Kaj kupiti | 1166 (1033) | mr1two |
» | Preprosta *.bat skriptaOddelek: Programiranje | 1225 (1007) | lopov |
» | Nekateri racunalniki ne preberejo CDjev?Oddelek: Pomoč in nasveti | 1202 (1016) | Pyr0Beast |
» | Geforce 7600gs in napajalnik!!Oddelek: Strojna oprema | 2013 (1542) | Slipi |