Add Task Scheduler in windows 10 name with timestamp
1.create batch file (.bat) with text editor ex. notepad or editplus
2.enter this code
@echo off
for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find "."') do set dt=%%a
set YYYY=%dt:~0,4%
set MM=%dt:~4,2%
set DD=%dt:~6,2%
set HH=%dt:~8,2%
set Min=%dt:~10,2%
set Sec=%dt:~12,2%
set stamp=%YYYY%-%MM%-%DD%_%HH%-%Min%-%Sec%
copy "c:\xxxx.txt" "D:\%stamp%.txt"
3.save file to xxx.bat
4.open Task Scheduler. by Press windows key and type Task Scheduler for open it.
5.Task scheduler library
Click on “Create New Task” on the right hand side of the screen and set the parameters as follows:
a. Set the user account to SYSTEM
b. Choose "Run with highest privileges"
c. Choose the OS for Windows7
Click on “Triggers” tab and then click on “New…” Choose “At Startup” from the drop down menu, click Enabled and hit OK
Click on the “Actions tab” and then click on “New…” If you are running a .bat file use cmd as the program the put /c .bat In the Add arguments field
Click on “OK” then on “OK” on the create task panel and it will now be scheduled.
Add the .bat script to the place specified in your task eve