Snippets Collections
for /L %i in (1,1,100) do @echo\>"D:\Ordner mit vielen Textdateien\text%i.txt"


Sollen die neuen Textdateien die Kopie einer schon bestehenden Textdatei sein dann
for /L %i in (1,1,100) do @copy "D:\Vorhandene Textdatei.txt" "D:\Ordner mit vielen Textdateien\text%i.txt">nul
fsutil file createnew 0664_PS.txt 10
fsutil file createnew 0674_PS.txt 10
fsutil file createnew 0769_PS.txt 10
fsutil file createnew 0774_PS.txt 10
fsutil file createnew 0786_PS.txt 10
@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 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"
netsh interface portproxy add v4tov4 listenaddress=<localaddress> listenport=<localport> connectaddress=<destaddress> connectport=<destport>
for /L %i in (1,1,100) do @copy "D:\vorlage.txt" "D:\ordner\text%i.txt">nul
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$Home\Desktop\Windows Terminal.lnk")
$Shortcut.TargetPath = "$env:LOCALAPPDATA\Microsoft\WindowsApps\Microsoft.WindowsTerminal_8wekyb3d8bbwe\wt.exe"
$Shortcut.Save()
 
$bytes = [System.IO.File]::ReadAllBytes("$Home\Desktop\Windows Terminal.lnk")
$bytes[0x15] = $bytes[0x15] -bor 0x20 #set byte 21 (0x15) bit 6 (0x20) ON
[System.IO.File]::WriteAllBytes("$Home\Desktop\Windows Terminal.lnk", $bytes)
star

Sat Feb 15 2025 15:34:13 GMT+0000 (Coordinated Universal Time) https://administrator.de/forum/tool-um-gleichzeitig-mehrere-text-dateien-zu-erstellen-85480.html

#cmd
star

Fri Nov 22 2024 09:09:53 GMT+0000 (Coordinated Universal Time) https://www.thomas-krenn.com/de/wiki/Dummy_Dateien_unter_Windows_erstellen

#cmd
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

Mon Aug 29 2022 16:47:45 GMT+0000 (Coordinated Universal Time)

#networking #cmd
star

Sun Apr 03 2022 19:12:53 GMT+0000 (Coordinated Universal Time)

#cmd
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:32:02 GMT+0000 (Coordinated Universal Time) https://superuser.com/questions/1560049/open-windows-terminal-as-admin-with-winr/1560192

#powershell #windows #cmd
star

Wed Jul 07 2021 19:56:28 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/11865085/out-of-a-git-console-how-do-i-execute-a-batch-file-and-then-return-to-git-conso

#git-bash #cmd

Save snippets that work with our extensions

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