Search found 10 matches
- 06 May 2015 01:45
- Forum: DOS Batch Forum
- Topic: List the files with in two datetime
- Replies: 28
- Views: 28231
Re: List the files with in two datetime
Thanks Antonio. Problem is solved.
- 05 May 2015 00:09
- Forum: DOS Batch Forum
- Topic: List the files with in two datetime
- Replies: 28
- Views: 28231
Re: List the files with in two datetime
Hi, cmd /V:ON /C "for /F "tokens=1-7* delims=/: " %a in ('dir /s /A-D /T:C f:\ani\') do @set fileDate=%c%a%b%d%e&if "!fileDate!" geq "201403050101" if "!fileDate!" leq "201504211209" echo %a/%b/%c %d:%e %f %g %h" The output of the above...
- 27 Apr 2015 10:18
- Forum: DOS Batch Forum
- Topic: List the files with in two datetime
- Replies: 28
- Views: 28231
Re: List the files with in two datetime
Thanks Antonio. My Cmd and output is a below cmd /V:ON /C "for /F "skip=5 tokens=1-7* delims=/: " %a in ('dir /s /A-D /T:C f:\ani\*.*') do @set "hour=%d"&(if "%f" equ "p.m." set /A "hour=(1%d+12)%100")&set fileDate=%c%a%bhour%e&echo ...
- 24 Apr 2015 02:09
- Forum: DOS Batch Forum
- Topic: List the files with in two datetime
- Replies: 28
- Views: 28231
Re: List the files with in two datetime
Thanks Antonio & Dave. cmd /V:ON /C "for /F "skip=5 tokens=1-7* delims=/: " %a in ('dir /A-D /T:C f:\ani\*.*') do @set h=%d&(if %f equ p.m. set /A "h=(1%d+12-100)">NUL)&set f=%c%b%a!h!%e&if "!f!" geq "20140304034534" if "!f!" leq...
- 23 Apr 2015 06:15
- Forum: DOS Batch Forum
- Topic: List the files with in two datetime
- Replies: 28
- Views: 28231
Re: List the files with in two datetime
Thanks Dave for you reply.
But i dont want to create any .bat file.
Just use the command at the Command Prompt
c:\Users\Desktop> wmic datafile where "drive='f:' and path ='\\xyz\\' and creationdate>20140502233423 and creationdate< 20150423233445" get creationdate
Thanks
But i dont want to create any .bat file.
Just use the command at the Command Prompt
c:\Users\Desktop> wmic datafile where "drive='f:' and path ='\\xyz\\' and creationdate>20140502233423 and creationdate< 20150423233445" get creationdate
Thanks
- 23 Apr 2015 05:53
- Forum: DOS Batch Forum
- Topic: List the files with in two datetime
- Replies: 28
- Views: 28231
Re: List the files with in two datetime
Need to list the files using the below command with in the datetime wmic datafile where "drive='f:' and path='\\xyx' and lastmodified>20150219023402 and lastmodified<20150422120099" get creationdate, name,size This command is not working. Could any one make changes to the existing command ...
- 22 Apr 2015 23:57
- Forum: DOS Batch Forum
- Topic: List the files with in two datetime
- Replies: 28
- Views: 28231
Re: List the files with in two datetime
As we are restricted to save .bat files in the client system,
we need to use a single line command which run at the cmd prompt to list the files with in the two datetime
Thanks
we need to use a single line command which run at the cmd prompt to list the files with in the two datetime
Thanks
- 22 Apr 2015 00:51
- Forum: DOS Batch Forum
- Topic: List the files with in two datetime
- Replies: 28
- Views: 28231
Re: List the files with in two datetime
Thanks Dave & Antonio.
I tried to remove /A, but I am getting
"Invalid alias Verb".
I need a single command to execute at run prompt and list the files.
Thanks,
I tried to remove /A, but I am getting
"Invalid alias Verb".
I need a single command to execute at run prompt and list the files.
Thanks,
- 21 Apr 2015 09:52
- Forum: DOS Batch Forum
- Topic: List the files with in two datetime
- Replies: 28
- Views: 28231
Re: List the files with in two datetime
Thanks Dave for your reply.
I tried by giving DateTime as 20150422102030.000000-300, but I got the error as
"invalid number. numbers are limited to 32-bits of precision"
Could you please let me know any other alternate solution.
Thanks,
I tried by giving DateTime as 20150422102030.000000-300, but I got the error as
"invalid number. numbers are limited to 32-bits of precision"
Could you please let me know any other alternate solution.
Thanks,
- 20 Apr 2015 09:50
- Forum: DOS Batch Forum
- Topic: List the files with in two datetime
- Replies: 28
- Views: 28231
List the files with in two datetime
Hi all, I want to display the files between two datetimes (YYYYMMDDHHmmss). Tried using two commands 1. set newerthan="2015-03-05 11:26:00" set olderthan="2015-03-10 16:55:00" find f:\new\* -type 'f' -newermt "$newerthan" ! -newermt "$olderthan" 2. @echo off s...