How to write this batch file?

  • Thread starter Thread starter Leo Zhang
  • Start date Start date
L

Leo Zhang

Dear all,
I wanna write a batch file to put a file created date property to a
variable. How can i write this batch file?
 
Dear all,
I wanna write a batch file to put a file created date property to a
variable. How can i write this batch file?
for /f "Tokens=1" %%d in ('dir filename /t:c') do (
set crtdte=%%d
)


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top