Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi all
hi a qv file in one folder ,if i open that file through batch file the copy of the same file should created in another file
such that in destination folder should contain sub folder which should generate automatically ,the sub folder name should be today's date
ex:
input: output:
source(folder name) destination(folder name)-enter
1.qvd today's date(folder name)-enter-------should generate automatically
1.qvd
hi got my own solution
@echo off
set yy=%date:~-4%
set mm=%date:~-7,2%
set dd=%date:~-10,2%
set hh=%time:~0,2%
set mn=%time:~3,2%
set MYDATE=%dd%-%mm%-%yy%_%hh%-%mn%
md C:\destination\%MYDATE%
copy "C:\source\*.txt" "C:\destination\%MYDATE%\"
pause
hi got my own solution
@echo off
set yy=%date:~-4%
set mm=%date:~-7,2%
set dd=%date:~-10,2%
set hh=%time:~0,2%
set mn=%time:~3,2%
set MYDATE=%dd%-%mm%-%yy%_%hh%-%mn%
md C:\destination\%MYDATE%
copy "C:\source\*.txt" "C:\destination\%MYDATE%\"
pause