Link to home
Start Free TrialLog in
Avatar of nsgguy245
nsgguy245

asked on

Millisecond Variable in Windows Shell

I need to write a script that changes a filename name to a name with the date and time appended to it. I have most of it already, but cannot figure out how to include milliseconds as part of the time. This is what I have so far:

Rename "%%V" .%%V%%L%%J%%K_%%M%%N%%~xV

ASKER CERTIFIED SOLUTION
Avatar of johnnash1180
johnnash1180
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of BillDL
BillDL
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nsgguy245
nsgguy245

ASKER

Thanks both for the detail and the explanation!
Thank you nsgguy245
Hey, I thought I asked you not to include me when accepting the answer ;-)
I know, but I liked your explanation on how that worked. So thanks again. :)
You're very welcome.