hi so work in an recruitment office and im trying to create a batch file that the computers can run on a schedule to create a folder with that days date on it and move all files from the desktop to that folder( also created on the desktop), i want the code to only move files and leave folders and shortcuts unaffected
this is what i've got so far.
right now it is making the folder but not moving anything i know it has something to do with the \%date:/=%
il need this batch file to run from a hidden location so that 1. the students dont mess with it and 2. so the batch doesn't move itself from the desktop. also the computers all have different user names so if i could get something that will make "training1" what ever the current logged in user is so i don't have to rewrite the batch for each of the 60 or so computers we have.
this is what i've got so far.
cd desktop
for /f "tokens=1-3 delims=/" %%a in ("%date%") do md "%%a_%%b_%%c"
mkdir c:\users\training\desktop\%date:/=%
MOVE c:\users\training1\desktop\*.* c:\users\training1\desktop\%date:/=%
right now it is making the folder but not moving anything i know it has something to do with the \%date:/=%
il need this batch file to run from a hidden location so that 1. the students dont mess with it and 2. so the batch doesn't move itself from the desktop. also the computers all have different user names so if i could get something that will make "training1" what ever the current logged in user is so i don't have to rewrite the batch for each of the 60 or so computers we have.
My Computer
- Computer type
- PC/Desktop
- Computer Manufacturer/Model Number
- my own rig
- OS
- 32 bit, all versions work in an office
- CPU
- i7 4770k
- Motherboard
- Gigabyte GA-Z87-D3HP Socket 1150
- Memory
- 16gb Corsair Dominator Vengence 1800 mhz
- Graphics Card(s)
- Msi nvidia gtx 780