Batch File for Desktop Clean Up

February 11, 2020 at 04:01:09
Specs: Windows 10
My desktop is continuously overfilled with downloaded files.
I need some help with a batch file and Windows scheduler that will do following:

1. Create once a week a folder in format - 18Nov2014
2. Will move into this folder all desktop files

Could someone help with that task?

Thank you


See More: Batch File for Desktop Clean Up

Reply ↓  Report •

#1
February 11, 2020 at 04:04:29
sure give me like an hour, got a little time in a bit.

i5-6600K[delid]@4.8GHz Core/4.6 Cache@1.456v | 2x8GB DDR4-3200MHzCL12-12-12-28-1@1.52v | Sapphire Nitro+ SE RX 590 8GB@1650Mhz core@1.155v/2236MHz


Reply ↓  Report •

#2
February 11, 2020 at 04:14:51
could you return me the result for this command in cmd.exe:

echo %date%

just need to know if the output is affected by the language.

im getting di 11-02-2020

i have a feeling yours wont be in dutch ;)

i5-6600K[delid]@4.8GHz Core/4.6 Cache@1.456v | 2x8GB DDR4-3200MHzCL12-12-12-28-1@1.52v | Sapphire Nitro+ SE RX 590 8GB@1650Mhz core@1.155v/2236MHz


Reply ↓  Report •

#3
February 11, 2020 at 04:57:18
Getting a date in format : 11/02/2020

Reply ↓  Report •

Related Solutions

#4
February 11, 2020 at 07:07:48
could you try this for me?

and yes i won't translate the month, unless it really needs to.

test.bat:

@echo off
if not "%~dp0" "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup" (
	echo Please place this .bat file in:
	echo "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup"
	echo This file will run everytime windows is started and can be disabled through:
	echo taskmanager --^> startup, enable/disable
	pause&exit/b
)
cd "%USERPROFILE%\Desktop"
for /f "tokens=2,3,4 delims=-/ " %%a in ('echo %DATE%') do if "%%a"=="11" (
	mkdir "%CD%\%%a-%%b-%%c"
	for /f "tokens=*" %%A in ('dir/b') do (
		if not "%%A"=="*-*-*" (
			if not "%%A"=="%~nx0" (
				move /-Y "%CD%\%%A" "%CD%\%%a-%%b-%%c"
			)
		)
	)
)

i5-6600K[delid]@4.8GHz Core/4.6 Cache@1.456v | 2x8GB DDR4-3200MHzCL12-12-12-28-1@1.52v | Sapphire Nitro+ SE RX 590 8GB@1650Mhz core@1.155v/2236MHz


Reply ↓  Report •

#5
February 13, 2020 at 09:02:08
Wouldn't it be better to tell the system to file them in "downloads" folder?

Always pop back and let us know the outcome - thanks


Reply ↓  Report •

#6
February 13, 2020 at 10:35:39
yes, but i do the same thing with folders on the desktop.

visual thinking, blabla

just feels more natural i guess.

and the just right click, screen --> hide icons to hide the mess haha

i5-6600K[delid]@4.8GHz Core/4.6 Cache@1.456v | 2x8GB DDR4-3200MHzCL12-12-12-28-1@1.52v | Sapphire Nitro+ SE RX 590 8GB@1650Mhz core@1.155v/2236MHz


Reply ↓  Report •

#7
February 13, 2020 at 15:47:56
"visual thinking, blabla
just feels more natural i guess"
+1

Reply ↓  Report •

Ask Question