Avatar of Sh M
Sh M
Flag for United States of America asked on

Scripting adding 8 minutes to a timestamp

Hi
I have the following script generating a time stamp which is used to name a file.
I like to add 7 extra minutes to any generated time stamp.

Here is the code:
:getTimeStamp
Set stmp=
For /f "tokens=* skip=1" %%a in (' wmic os get localdatetime ') do (
Set stmp=%%a
Set stmp=!stmp:~0,8!_stmp:~8,4!
)
Then I set my folder name using this time stamp:
Set fildername= xxxxx_ %smtp% however I like to add 5 minutes to this %smtp% later. How can it be done?

Thanks in advance
Scripting Languages

Avatar of undefined
Last Comment
Sh M

8/22/2022 - Mon
SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Bill Prew

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Sh M

ASKER
Thank you
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes