MemeMaestro
New Coder
So the thing is, I built myself a .bat file to clean up my entire desktop with one click. I then executed said file and was dumb enough to immediately do so on the desktop rather than testing it in a seperate folder first. Then, as the title suggested, disaster struck and while the folder was created correctly, it ended up empty and all my files are gone and I don't know where they went. I am hoping that someone may be able to tell me where they are, help me get them back, or just deliver the bad news that they're lost in Limbo forever.
Here's the code in question:
Note that I have since fixed the code and it is now working as intended. Though my files are still lost.
Here's the code in question:
Code:
@echo off
set "data_folder=%UserProfile%\Desktop\DATA"
if not exist "%data_folder%" (
mkdir "%data_folder%"
) else (
echo Ordner %data_folder% existiert bereits.
)
for %%A in ("%UserProfile%\Desktop*") do (
if not "%%~xA"=="" (
set "type_folder=%data_folder%%%~xA"
if not exist "%type_folder%" mkdir "%type_folder%"
move "%%~A" "%type_folder%"
)
)
echo Done!
pause
Note that I have since fixed the code and it is now working as intended. Though my files are still lost.