Snippets Collections
@ECHO OFF
set list=Desktop Documents Downloads Favorites Music Pictures Videos
set baseLocation="%USERPROFILE%\OneDrive - Olivet Nazarene University\LocalPC\"
set "Key=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
set "Typ=REG_EXPAND_SZ"
set RegList="Desktop" "Personal" "{374DE290-123F-4565-9164-39C4925E467B}" "Favorites" "My Music" "My Pictures" "My Video"
set /a c=0
setLocal enableDelayedExpansion
for %%j in (%RegList%) do (
    set RegList[!c!]=%%j & set /a c=c+1
)
for %%i in (%list%) do (
    if not exist %baseLocation%%%i (
        mkdir %baseLocation%%%i
    ) else (
        echo %%i already exsists
    )
)
set baseLocation=%baseLocation:"=%
for %%i in (%list%) do (
    RoboCopy.exe "%USERPROFILE%\%%~i\." "%baseLocation%\%%~i\." *.* /MOV /FP /NP /IS /Z /E /NFL /NDL /NJH
)
set /a d=0
for %%k in (%list%) do (
    call set val=%%RegList[!d!]%% & Reg Add "%Key%" /f /V !val! /T %Typ% /D "%baseLocation%%%k" & set /a d=d+1
)  
echo DONE!
pause
for /R %f IN (*.mkv) DO ffmpeg -i "%f" -c copy "%~nf.mp4"
 For /D /R j:\test %%1 IN (*) DO c:\trid_w32\trid "%%1"\* -ae


Replace j:\test with the directory that you want to move recursively through (TrID will not run on the files in the root of this directory).

Replace c:\trid_w32\trid with the path to trid.exe.

Dump the line in a batch file and run.
@ECHO OFF
ECHO Delete Folder: %CD%?
PAUSE
SET FOLDER=%CD%
CD /
DEL /F/Q/S "%FOLDER%" > NUL
RMDIR /Q/S "%FOLDER%"
EXIT
star

Tue Jul 23 2024 22:49:40 GMT+0000 (Coordinated Universal Time) https://superuser.com/questions/1582439/changing-windows-user-folders-3d-objects-desktop-downloads-documents-favori

#batch #cmd #user
star

Thu Jun 20 2024 03:20:59 GMT+0000 (Coordinated Universal Time) https://gist.github.com/jamesmacwhite/58aebfe4a82bb8d645a797a1ba975132

#batch #ffmpeg #cmd
star

Wed Jun 19 2024 08:09:21 GMT+0000 (Coordinated Universal Time) https://www.reddit.com/r/commandline/comments/17beywz/parse_through_all_subdirectories_and_run_a_exe_on/?rdt

#batch #windows #trid #files
star

Wed Jun 19 2024 08:05:14 GMT+0000 (Coordinated Universal Time) https://mark0.net/forum/index.php?topic

#trid #batch #windows #files #extention
star

Tue Jul 05 2022 10:20:58 GMT+0000 (Coordinated Universal Time)

#batch
star

Wed Feb 02 2022 21:35:23 GMT+0000 (Coordinated Universal Time) https://pureinfotech.com/delete-large-folder-fast-windows-10/

#windows #batch #cmd
star

Wed Feb 02 2022 21:34:40 GMT+0000 (Coordinated Universal Time) https://pureinfotech.com/delete-large-folder-fast-windows-10/

#windows #batch

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension