Jump to content

Recommended Posts

Posted

Ok I suck at batch scripting. I know some of you are gurus so this will be a walk in the park.

File1

App Name

Last Updated

now every time I do a build I want the last updated to update but cant figure out how.

I tried using findstr to strip the last updated line then echo it back but I dont know how to pipe program output to a variable. I couldd store it in a temp file but thats not the cleanest.

Anyone know?

Cheers


Posted

I'm not really sure what you want but to set the output of a command to a variable the command looks like this...

FOR /F "tokens=*" %R IN ('PROGRAM.EXE /SWITCH') DO SET VAR=%R

In a batch file replace %R with %%R

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...