All Activity
- Past hour
-
After all the drama surrounding MSFN, Google has gone and made things even worse. YouTube no longer runs at all within browsers on older, low-performance hardware like my P4. The Vorapis script can no longer play videos on my hardware in New Moon 28 and Serpent 52 on Windows XP. For some reason, the h264 codec can no longer be used in the same way as before. So I’ve removed all scripts and extensions from these browsers. They’ve become useless to me. I now only use VLC with my youtube.lua script. I search on YouTube using the 3D YouTube Downloader, which can of course also download videos and audio files. And naturally, I’m using the latest version of my ‘ytBATCH for Windows XP’ (version 1.7).
-
program to compare folder contents
NotHereToPlayGames replied to chermany4ever's topic in Windows 11
I used to use Directory Opus for syncing files between internal HDD and external archive HDD. But note that it isn't free but does offer a free trial to see if if works for you. Mine is a very old version and I've not bothered to see if it migrates to Win10 with my current (old) license. -
Win10 LTSC IoT lag issues. How to resolve?
NotHereToPlayGames replied to DeathAdderSF's topic in Windows 10
Phase 3, Step 2: Save the below as a <name>.reg and double-click to add to registry. -
Win10 LTSC IoT lag issues. How to resolve?
NotHereToPlayGames replied to DeathAdderSF's topic in Windows 10
Phase 3, Step 1: Save the below as a <name>.bat file and Run as administrator. - Today
-
Win10 LTSC IoT lag issues. How to resolve?
NotHereToPlayGames replied to DeathAdderSF's topic in Windows 10
Guide for Half Baked Phase 3: TWO steps. Next two posts. -
Many times these modified versions come with tweaks and third-party apps. I'm used to it so the first thing I do is disable and delete anything I don't need... to free up space! Indeed, my friend.
-
Win10 LTSC IoT lag issues. How to resolve?
NotHereToPlayGames replied to DeathAdderSF's topic in Windows 10
-
To be perfectly honest, one of the primary reasons that I tweak and optimize myself is because one of Conan's releases that I was testing PUNCHED ME IN THE FACE with an uncalled for SOLICITATION to purchase a LICENSE for StartIsBack/StartAllBack. A never-asked-for and nowhere referenced on his website that his builds INCLUDED a *third-party* BUNDLE that I do not want, did not ask for, will NEVER use BECAUSE of that UNSOLICITED punch in the face! "To each their own."
-
That's certainly curious. Boycotting the boycotter. In my case, one of the things I'm heavily looking for with these modified versions is minimal space usage. There are many available these days, most for gamers. Many deliver incredible results compared to the official versions. But again, when I tried to "clean up" a Windows 11 myself, couldn't get it below 5gb. So when I found that, for example, Windows X-Lite Atomic 11 takes up about 2.7gb freshly installed... I could not resist! I have to use it. Don't wanna invest time to research what I can and can't delete. I trust Conan and his years of experience.
-
Hi guys. Couple months ago finally got tired of struggling with XP and I'm now using Windows 11 (X-Lite). Have folders with a lot of files that I sync frequently and every now and then I like to do a thorough comparison to ensure consistency. The program I've always used for this task is FreeFileSync and it works very well. Problem is, when you compare for content many folders and the total size exceeds 500gb total comparison time can be around... 6 hours! That's why, as always, did some research on other programs that might offer an intermediate solution. Tried many of the well-known alternatives like WinMerge and Beyond Compare. Saw that when comparing files they offer other methods -that I understand don't involve opening the files- which, in theory, should save time. At first I thought I'd found the solution but finally -after some testing- realized that the time they took was almost the same: around six hours. I was hoping to find some program that would give reliable results improving the wait time. Since I haven't found one, thought I'd ask. Perhaps one of you has found a solution? Most of the files I compare are video and music. Again, I've tried MANY of these programs but when the comparison goes beyond name/date/time the times increase far beyond what I'd like.
-
I only use 11 on one of my laptops but also inside a VM here on my primary workhorse. Tweaked, of course. I prefer (heavily!) to tweak myself and kind of "boycott" things like X-Lite. X-Lite is VERY GOOD. I just DO NOT TRUST IT for my use. Not to be misread, I don't have any reason to not trust it, I just trust MY OWN tweaked OS's far far FAR better.
-
No probs! Attached below dbgview logs for those 3. Looks like it does find the speaker on the AD1981HD machines but rolls over to headphones as the output. The AD1981HD codec has a power node $14 which handles the sum mixer and connects to all pins. Using Watler's driver and setting EAPD to $02 on node $05 works to power the speaker. There is talk on the linux threads about an inverted EAPD on this codec but I could never figure out how it is inverted and works for me like normal. To my knowledge none of these machines use GPIO for audio out or jack detect. Probably unsolicited response required to switch between LineOut and Headphones on the ALC887. AD1981HD_6710B_DBG_INSTALL.LOG AD1981HD_NC8430_DBG_REBOOT.LOG ALC887_AMD-K30BF_DBG_REBOOT.LOG
-
I'm super surprised that most of the programs worked right out of the box in portable mode. And since I only have 4gb of ram, it's really convenient for me to use all those x86 programs 'cause they use almost no ram and take up very little space. They do the job just as well as ever, giving me the results I need. Windows 11 is proving to be robust, predictable in its downsides and unpredictable in its upsides.
-
Of course, u'd have to adjust the scripts to ur drives before u run them
-
Agreed! I've stopped fighting with XP also, almost two years or so now. It's been a GIANT godsend !!! I run Win10 LTSC and everything just runs a HELLAVUALOT better !!! With VASTLY better memory management !!! An outright GODSEND.
-
Hello tekkaman. A little late but since I see your thread: a couple months ago wanted to finally stop fighting with XP and I'm using now a modified version of win11 (x-lite) and what I can tell you is that 80% of the programs that I used daily in XP worked perfectly in portable mode. Something I couldn't achieve even with win7. I just copied the .exe files and most of them worked. The program that I always used to do what you asked for is KillProcess -from Orange Lamp- which allows you to kill any program and also edit a list of programs to kill automatically if one of the list were to run. The version I use is 2.44. It is very effective and lightweight.
- Yesterday
-
Win10 LTSC IoT lag issues. How to resolve?
NotHereToPlayGames replied to DeathAdderSF's topic in Windows 10
<del> testing [co de] inside [spo iler] -
Win10 LTSC IoT lag issues. How to resolve?
NotHereToPlayGames replied to DeathAdderSF's topic in Windows 10
Step 4: Disable "smartscreen", disable the search APP, and disable nonessential services. Reminder: don't disable SPOOLER [set first line to auto instead of disabled) if you have a printer installed. Note: for those that want to INTENTIONALLY break some GUI "dialogs" (BS things like "toast notifications", "badges", and "live tiles"), set the two Wpn services from auto to disabled. Caution: the GUI breaks are not restored simply by returning those to auto! Source: none, just standard "public knowledge" across multiple tech forums Save the below as a <name>.bat file then right-click and Run as administrator. -
Win10 LTSC IoT lag issues. How to resolve?
NotHereToPlayGames replied to DeathAdderSF's topic in Windows 10
Step 3: Remove "Get Started", "Windows Backup", and "Edge". Forum software kept "double-indenting" when posting as a "spoiler" so I had to post as a "code inside a spoiler" instead. Source: forgot, it's two or three scripts all merged into one and edited to REMOVE where the original author threw in Firefox BS, will add after I reinvent that wheel. Save the below in a <name>.ps1 file then right-click and select Run with PowerShell. -
Win10 LTSC IoT lag issues. How to resolve?
NotHereToPlayGames replied to DeathAdderSF's topic in Windows 10
Step 2: Disable "search indexing". Note: this is technically only HALF of Win10's "search" and the APP is disabled in Step 4. Top Half Source: copied out of one of Chris Titus Tech's scripts but I forget the actual source. It allows me to simply right-click "Run with PowerShell" and it AUTOMATICALLY elevates to ADMIN. Just a helluvalot easier than the way that Win10's PowerShells are normally "ran as administrator" compared to how command prompts can be "ran as administrator". Bottom Half Source: https://github.com/PowerShellLibrary/Hacker-Scripts/blob/master/system-setup/disable-windows-search-indexing.ps1 Save the below in a <name>.ps1 file then right-click and select Run with PowerShell. -
Win10 LTSC IoT lag issues. How to resolve?
NotHereToPlayGames replied to DeathAdderSF's topic in Windows 10
Step 1: Disable the "Action Center". To be honest, I've never really tracked how (or if?) the "Action Center" consumes a ton of resources or not, I just have ZERO use for it. Source: https://www.tenforums.com/tutorials/6004-enable-disable-action-center-windows-10-a.html Obtain from above link or save the below in a <name>.reg file and double-click to add to your registry. -
Win10 LTSC IoT lag issues. How to resolve?
NotHereToPlayGames replied to DeathAdderSF's topic in Windows 10
Guide for Half Baked Phase 2: FOUR posts below. (multiple spoilers in one post weren't working correctly, didn't want to debug "why") -
Win10 LTSC IoT lag issues. How to resolve?
NotHereToPlayGames replied to DeathAdderSF's topic in Windows 10
<del> mishap with multiple spoilers in one post -
ok here u go brute force delete.bat @echo off setLocal EnableDelayedExpansion :: SCRIPT PARAMETERS SET USRNAM=Administrator SET DRVNAM=j SET SRCFIL=BFDel_List.txt ::SET SRCFIL=%~1 SET BACKUP=N ::SET BAKDST=Z:\BFDel_Backup SET TKOWN=Y SET SILENT=Y SET LOGDST=%BAKDST% SET LOGFIL=%LOGDST%\BFDel.log SET BAKLOG=%LOGDST%\BFDel.bak.log SET ERRLOG=%LOGDST%\BFDel.err.log :: CHECK BACKUP AND LOG PATHS IF /I "%BACKUP%" EQU "Y" ( IF NOT EXIST "%BAKDST%\" MKDIR "%BAKDST%\" IF NOT EXIST "%BAKDST%\" ECHO. & ECHO ERROR BACKUP PATH DOES NOT EXIST & ECHO. & EXIT ) IF NOT EXIST "%LOGDST%\" ECHO. & ECHO ERROR LOG PATH DOES NOT EXIST & ECHO. & EXIT IF EXIST "%LOGFIL%" DEL /f /q "%LOGFIL%" IF EXIST "%ERRLOG%" DEL /f /q "%ERRLOG%" :: CHECK SOURCEFILE PATHS IF NOT EXIST "%SRCFIL%" ECHO. & ECHO ERROR SOURCE PATH DOES NOT EXIST & ECHO. & EXIT cls @echo off :again echo. echo Brute Force Delete files on vol %DRVNAM%:\ echo Files List "%SRCFIL%" echo. IF /I "%SILENT%" EQU "Y" ECHO NOTE: SCRIPT IS RUNNING SILENTLY & ECHO. & TIMEOUT 2 > NUL & GOTO continue echo Choose continue or edit volume letter or quit. echo. set /p answer=Type [C]ontinue, [E]dit or [Q]uit? if /i "%answer:~,1%" EQU "C" goto continue if /i "%answer:~,1%" EQU "E" goto edit if /i "%answer:~,1%" EQU "Q" exit /b goto again :edit echo. & echo. echo SET THE CORRECT VOLUME: %DRVNAM% echo. set /p "DRVNAM=Enter Volume Letter or just ENTER for default [%DRVNAM%]: " goto again :: START DEL PROCEDURE :continue For /F "tokens=*" %%L in ('type "%SRCFIL%"') do ( Set LINE=!DRVNAM!:%%L Set LINE=!LINE:USRNAM=%USRNAM%! :: CALL :CheckPathAttr "!LINE!" for /f "tokens=*" %%A in ("!LINE!") do set ATTR=%%~aA set ATTR1=!ATTR:~0,1! ::PROCESS DIRECTORY IF /I "!ATTR1!" EQU "d" ( IF /I "%TKOWN%" EQU "Y" TAKEOWN /F "!LINE!" /R /A /D Y IF /I "%TKOWN%" EQU "Y" ICACLS "!LINE!" /T /L /GRANT *S-1-1-0:F IF /I "%BACKUP%" EQU "Y" ( XCOPY /s /y /c /h /e "!LINE!" "%BAKDST%!LINE:~2!\" IF EXIST "%BAKDST%!LINE:~2!" echo COPIED DIR: "!LINE!">>"%BAKLOG%" IF NOT EXIST "%BAKDST%!LINE:~2!" echo COPY.ERR DIR: "!LINE!">>"%ERRLOG%" ) :: REMOVE DIR COMMAND rmdir /s /q "!LINE!" IF NOT EXIST "!LINE!" ( echo DELETED DIR: "!LINE!">>"%LOGFIL%" ) ELSE ( echo DEL.ERR DIR: "!LINE!">>"%ERRLOG%" ) ) ::PROCESS FILE IF /I "!ATTR1!" EQU "-" ( IF /I "%TKOWN%" EQU "Y" TAKEOWN /F "!LINE!" /A /D Y IF /I "%TKOWN%" EQU "Y" ICACLS "!LINE!" /T /L /GRANT *S-1-1-0:F IF /I "%BACKUP%" EQU "Y" ( echo F|XCOPY /y /c "!LINE!" "%BAKDST%!LINE:~2!" IF EXIST "%BAKDST%!LINE:~2!" echo COPIED FILE: "!LINE!">>"%BAKLOG%" IF NOT EXIST "%BAKDST%!LINE:~2!" echo COPY.ERR FIL: "!LINE!">>"%ERRLOG%" ) :: DEL FILE COMMAND del /f /q "!LINE!" IF NOT EXIST "!LINE!" ( echo DELETED FILE: "!LINE!">>"%LOGFIL%" ) ELSE ( echo DEL.ERR FILE: "!LINE!">>"%ERRLOG%" ) ) ) ECHO. ECHO SCRIPT COMPLETED ECHO. ::https://9to5answer.com/how-to-get-attributes-of-a-file-using-batch-file :CheckPathAttr SET "sPATH=%1" SET "sATTR=%~a1" SET "sATTR1=!sATTR:~0,1!" IF /I "!sATTR1!" EQU "d" ECHO "D" %sATTR% IF /I "!sATTR1!" EQU "-" ECHO "F" %sATTR% ::EXIT /B 0 now brute force zero byting.bat @echo off setLocal EnableDelayedExpansion :: SCRIPT PARAMETERS SET USRNAM=Administrator SET DRVNAM=j SET SRCFIL=BFZB_List.txt ::SET SRCFIL=%~1 SET BACKUP=N ::SET BAKDST=Z:\BFZB_Backup SET TKOWN=Y SET SILENT=Y SET LOGDST=%BAKDST% SET LOGFIL=%LOGDST%\BFZB.log SET BAKLOG=%LOGDST%\BFZB.bak.log SET ERRLOG=%LOGDST%\BFZB.err.log :: CHECK BACKUP AND LOG PATHS IF /I "%BACKUP%" EQU "Y" ( IF NOT EXIST "%BAKDST%\" MKDIR "%BAKDST%\" IF NOT EXIST "%BAKDST%\" ECHO. & ECHO ERROR BACKUP PATH DOES NOT EXIST & ECHO. & EXIT ) IF NOT EXIST "%LOGDST%\" ECHO. & ECHO ERROR LOG PATH DOES NOT EXIST & ECHO. & EXIT IF EXIST "%LOGFIL%" DEL /f /q "%LOGFIL%" IF EXIST "%ERRLOG%" DEL /f /q "%ERRLOG%" :: CHECK SOURCEFILE PATHS IF NOT EXIST "%SRCFIL%" ECHO. & ECHO ERROR SOURCE PATH DOES NOT EXIST & ECHO. & EXIT cls @echo off :again echo. echo Brute Force Zero Byting files on vol %DRVNAM%:\ echo Files List "%SRCFIL%" echo. IF /I "%SILENT%" EQU "Y" ECHO NOTE: SCRIPT IS RUNNING SILENTLY & ECHO. & TIMEOUT 2 > NUL & GOTO continue echo Choose continue or edit volume letter or quit. echo. set /p answer=Type [C]ontinue, [E]dit or [Q]uit? if /i "%answer:~,1%" EQU "C" goto continue if /i "%answer:~,1%" EQU "E" goto edit if /i "%answer:~,1%" EQU "Q" exit /b goto again :edit echo. & echo. echo SET THE CORRECT VOLUME: %DRVNAM% echo. set /p "DRVNAM=Enter Volume Letter or just ENTER for default [%DRVNAM%]: " goto again :: START ZEROBYTING PROCEDURE :continue For /F "tokens=*" %%L in ('type "%SRCFIL%"') do ( Set LINE=!DRVNAM!:%%L Set LINE=!LINE:USRNAM=%USRNAM%! :: CALL :CheckPathAttr "!LINE!" for /f "tokens=*" %%A in ("!LINE!") do set ATTR=%%~aA set ATTR1=!ATTR:~0,1! ::PROCESS DIRECTORY IF /I "!ATTR1!" EQU "d" ( IF /I "%TKOWN%" EQU "Y" TAKEOWN /F "!LINE!" /R /A /D Y IF /I "%TKOWN%" EQU "Y" ICACLS "!LINE!" /T /L /GRANT *S-1-1-0:F IF /I "%BACKUP%" EQU "Y" ( XCOPY /s /y /c /h /e "!LINE!" "%BAKDST%!LINE:~2!\" IF EXIST "%BAKDST%!LINE:~2!" echo COPIED DIR: "!LINE!">>"%BAKLOG%" IF NOT EXIST "%BAKDST%!LINE:~2!" echo COPY.ERR DIR: "!LINE!">>"%ERRLOG%" ) :: REMOVE AND ZERO BYTE DIR COMMANDS rmdir /s /q "!LINE!" IF NOT EXIST "!LINE!" FSUTIL FILE CREATENEW "!LINE!" 0 for %%x in ("!LINE!") do if %%~zx==0 ( echo ZBYTED DIR: "!LINE!">>"%LOGFIL%" ) ELSE ( echo ZB.ERR DIR: "!LINE!">>"%ERRLOG%" ) ) ::PROCESS FILE IF /I "!ATTR1!" EQU "-" ( IF /I "%BACKUP%" EQU "Y" ( IF /I "%TKOWN%" EQU "Y" TAKEOWN /F "!LINE!" /A /D Y IF /I "%TKOWN%" EQU "Y" ICACLS "!LINE!" /T /L /GRANT *S-1-1-0:F echo F|XCOPY /y /c "!LINE!" "%BAKDST%!LINE:~2!" IF EXIST "%BAKDST%!LINE:~2!" echo COPIED FILE: "!LINE!">>"%BAKLOG%" IF NOT EXIST "%BAKDST%!LINE:~2!" echo COPY.ERR FIL: "!LINE!">>"%ERRLOG%" ) :: DEL AND ZERO BYTE FILE COMMANDS del /f /q "!LINE!" IF NOT EXIST "!LINE!" FSUTIL FILE CREATENEW "!LINE!" 0 for %%x in ("!LINE!") do if %%~zx==0 ( echo ZBYTED FILE: "!LINE!">>"%LOGFIL%" ) ELSE ( echo ZB.ERR FILE: "!LINE!">>"%ERRLOG%" ) ) ) ECHO. ECHO SCRIPT COMPLETED ECHO. ::https://9to5answer.com/how-to-get-attributes-of-a-file-using-batch-file :CheckPathAttr SET "sPATH=%1" SET "sATTR=%~a1" SET "sATTR1=!sATTR:~0,1!" IF /I "!sATTR1!" EQU "d" ECHO "D" %sATTR% IF /I "!sATTR1!" EQU "-" ECHO "F" %sATTR% ::EXIT /B 0 now brute force junction standalone.bat @ECHO off SETLOCAL EnableDelayedExpansion IF /I "%PROCESSOR_ARCHITECTURE%"=="x86" (SET "DU=Tools\DU\du32.exe") ELSE (SET "DU=Tools\DU\du64.exe") SET "DUCK=Tools\DUCK\duck_a.exe" :: SCRIPT PARAMETERS ::-------------------------- SET "DEPTH=1" SET "TKOWN=Y" SET "SRCVOL=j" SET SILENT=Y SET "SRCFIL=BFJnctn_List_StandAlone.txt" ::SET "SRCFIL=%~1" SET "ERRLOG=%~dp0BFJnctn_List_StandAlone.errors.txt" ::GET SRCVOL FROM SCRIPT NAME FOR /F "tokens=2 delims=%%" %%v IN ('ECHO %~n0') DO SET "SRCVOL=%%v" ::ECHO %SRCVOL% :: SOURCE VOLUME VALIDATION ::-------------------------- CLS @ECHO off :again ECHO. ECHO Brute Force Junctioning folders on vol %SRCVOL%:\ ECHO Files List "%SRCFIL%" ECHO. IF /I "%SILENT%" EQU "Y" ECHO NOTE: SCRIPT IS RUNNING SILENTLY & ECHO. & TIMEOUT 2 > NUL & GOTO continue ECHO Choose continue or edit volume letter or quit. ECHO. SET /p answer=Type [C]ontinue, [E]dit or [Q]uit? IF /i "%answer:~,1%" EQU "C" GOTO :continue IF /i "%answer:~,1%" EQU "E" GOTO :edit IF /i "%answer:~,1%" EQU "Q" exit /b GOTO :again :edit ECHO. & ECHO. ECHO SET THE CORRECT VOLUME: %SRCVOL% ECHO. SET /p "SRCVOL=Enter Volume Letter or just ENTER FOR default [%SRCVOL%]: " GOTO :again :continue :: FIND AVAILABLE USERS IN SRCVOL ::-------------------------------- CLS & ECHO. & ECHO Looking for users in folder "!SRCVOL!:\Users" & ECHO. SET /A i=0 ECHO 0. Press "0" or "Q" to Quit FOR /F "tokens=*" %%u IN ('DIR "!SRCVOL!:\Users" /B 2^>nul ^| findstr /v "Public" ^| findstr /v "Default" ^| findstr /v "All Users"') DO ( SET item=%%u SET /A i+=1 ECHO !i!. Select user "!item!" SET "option[!i!]=!item!" ) IF !i!==0 CLS & ECHO. & ECHO NO USERS FOLDERS FOUND IN "!SRCVOL!:\Users". PLEASE CHECK SOURCE VOLUME LETTER. & ECHO. & ECHO Press "Q" to Quit & ECHO Press "C" to Continue IF !i!==1 SET "USRNAM=%option[1]%" & CLS & ECHO. & ECHO USER FOLDER "!SRCVOL!:\Users\!USRNAM!" FOUND & ECHO. IF /I "%SILENT%" EQU "Y" ECHO NOTE: SCRIPT IS RUNNING SILENTLY & ECHO. & TIMEOUT 2 > NUL & GOTO SkipUser ECHO Press "Q" to Quit & ECHO Press "C" to Continue :getChoice ECHO. SET /P choice="Enter desired choice: " || SET choice="" IF /i "%choice%" EQU "0" EXIT IF /i "%choice%" EQU "q" EXIT IF /i "%choice%" EQU "c" GOTO :SkipUser IF "!option[%choice%]!" EQU "" ECHO ERROR: No such option & GOTO :getChoice SET "USRNAM=!option[%choice%]!" :SkipUser IF DEFINED USRNAM CLS & ECHO. & ECHO User selected is "%USRNAM%". & TIMEOUT 1 > nul & CLS :: START JUNCTIONING PROCEDURE ::----------------------------- FOR /F "tokens=*" %%L IN ('type "%SRCFIL%" ^| findstr /v "#"') DO ( SET "SKIP=" SET "LINE=%%L" REM ECHO "!LINE!" ::GETS DESTINATION ROOT FROM STRING SET "DSTROOT=!LINE:~0,2!" :: SET SOURCE PATH FROM SOURCE VOLUME SET "LINE=!SRCVOL!:!LINE:~2!" SET "LINE=!LINE:USRNAM=%USRNAM%!" :: EVALUATE JUNCTION PATH IF "%DEPTH%" EQU "1" ( CALL :GetDirName "!LINE!" DSTPATH ) ELSE ( SET "DSTPATH=!LINE:~3!" ) ECHO. & ECHO CREATING JUNCTION & ECHO - SOURCE PATH: "!LINE!" && ECHO - JUNCTION PATH: "!DSTROOT!\!DSTPATH!" & TIMEOUT 1 > nul IF NOT EXIST "!DSTROOT!\" ECHO ERROR DESTROOT PATH "!DSTROOT!" DOES NOT EXIST & TIMEOUT 1 > nul & SET "SKIP=1" :: CALL :CheckPathAttr "!LINE!" IF EXIST "!LINE!" IF NOT DEFINED SKIP ( FOR /f "tokens=*" %%A IN ("!LINE!") DO SET ATTR=%%~aA SET ATTR1=!ATTR:~0,1! SET ATTR8=!ATTR:~8,8! ::PROCESS DIRECTORY IF /I "!ATTR1!" EQU "d" IF "!ATTR8!" NEQ "l" ( SET RESTCHK=1 ::GET OWNERSHIP (OPTIONAL) IF /I "%TKOWN%" EQU "Y" TAKEOWN /F "!LINE!" /R /A /D Y IF /I "%TKOWN%" EQU "Y" ICACLS "!LINE!" /T /L /GRANT *S-1-1-0:F ::COPIA DIR NELLA DESTINAZIONE SET COPYCHECK=KO rem XCOPY /s /y /c /h /e "!LINE!" "!DSTROOT!\!DSTPATH!\" ROBOCOPY "!LINE!" "!DSTROOT!\!DSTPATH!" /E /XC /XN /XO /R:0 /W:0 ::CALCOLA DIMENSIONI SRCDIR E DSTDIR FOR /f "tokens=2" %%i IN ('%DU% "!LINE!" ^|findstr /c:"Size:"') DO SET "SRCSIZE=%%i" FOR /f "tokens=2" %%i IN ('%DU% "!DSTROOT!\!DSTPATH!" ^|findstr /c:"Size:"') DO SET "DSTSIZE=%%i" ::VERIFICA COPIA PRIMA DI CANCELLAZIONE IF "!SRCSIZE!" NEQ "!DSTSIZE!" ECHO ERROR: ErrCopy "!LINE!" >> "%ERRLOG%" IF "!SRCSIZE!" EQU "!DSTSIZE!" ( ::REMOVAL AND JUNCTIONING DIR COMMANDS IF EXIST "!LINE!" rmdir /s /q "!LINE!" && SLEEP -m 10 2>nul IF EXIST "!LINE!" ECHO ERROR: NotEmpty "!LINE!" >> "%ERRLOG%" IF NOT EXIST "!LINE!" ( mklink /j "!LINE!" "!DSTROOT!\!DSTPATH!" IF %ERRORLEVEL%==0 ECHO JUNCTION CREATION COMPLETED & TIMEOUT 1 > nul IF %ERRORLEVEL%==1 ECHO ERROR CREATING JUNCTION & TIMEOUT 1 > nul ) ) ) ) ) ECHO. ECHO SCRIPT COMPLETED ECHO. ::https://9to5answer.com/how-to-get-attributes-of-a-file-using-batch-file :CheckPathAttr SET "sPATH=%1" SET "sATTR=%~a1" SET "sATTR1=!sATTR:~0,1!" IF /I "!sATTR1!" EQU "d" ECHO "D" %sATTR% IF /I "!sATTR1!" EQU "-" ECHO "F" %sATTR% EXIT /B 0 :GetParent :: USAGE EXAMPLE: ::SETLOCAL EnableDelayedExpansion ::CALL :GetParent "%CD%" CDPAR && ECHO "!CDPAR!" SET "PARDIR=%~dp1" IF "%PARDIR:~-1%"=="\" SET "PARDIR=%PARDIR:~0,-1%" ::ECHO "%PARDIR%" SET "%2=%PARDIR%" EXIT /B 0 :GetDirName :: USAGE EXAMPLE: ::SETLOCAL EnableDelayedExpansion ::CALL :GetDirName "%CD%" CDNAME && ECHO "!CDNAME!" SET "DIRNAME=%~nx1" ::ECHO "%DIRNAME%" SET "%2=!DIRNAME!" ::EXIT /B 0