Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create folder with version number
#3
Hello Kevin,

Thanks for taking the time to answer. I actually found an answer but it was using batch files. I prefer your method of doing it through QM. I will give it a go today.

What I ended up with was this command:
Code:
Copy      Help
@echo off
set "npver="&for /F "tokens=2delims==" %%a in ('wmic datafile where "Name='c:\\Windows\\System32\\notepad.exe'" get version /format:list') do set "npver=%%a"
echo mkdir c:\%npver%_20%date:~6,2%%date:~0,2%%date:~3,2% > c:\Commands\NPver.cmd

So it creates a cmd file that contains the Mkdir command, madeof the result of the version query, followed by today's date. I then called those CMD files via QM.


Messages In This Thread
Create folder with version number - by Logi - 11-19-2019, 06:32 PM
RE: Create folder with version number - by Kevin - 11-20-2019, 03:12 AM
RE: Create folder with version number - by Logi - 11-20-2019, 01:33 PM
RE: Create folder with version number - by Kevin - 10-01-2024, 01:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)