Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Now Live: Qlik Sense SaaS Simplified Authoring – Analytics Creation for Everyone: READ DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
vignesh_s
Creator
Creator

batch file

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

1 Solution

Accepted Solutions
vignesh_s
Creator
Creator
Author

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

View solution in original post

1 Reply
vignesh_s
Creator
Creator
Author

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