Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Increasing a Number in a batch file  (Read 2796 times)

0 Members and 1 Guest are viewing this topic.

Kekker

  • Guest
Increasing a Number in a batch file
« on: March 11, 2009, 09:10:00 AM »
I have a batch that runs an an update to an application on various servers, here is a snippet of it:

net use n: \\fs-home-ch\vol1\apps\
copy "C:\Laserforms Updates\LFMFormUpdate(LUS Update 301).lfu" "n:\nal\laserforms 9.02\"
"\\fs-home-ch\vol1\apps\NAL\LaserForms 9.02\LFMFormUpdate(LUS Update 301).lfu"

I need to add a line that increases the update number (in this case LUS Update 301) by 1 each time after the batch file has run, so it will be ready for the next update. Can this be done?

Also, when it performs the 3rd line the app is launched and user user intervention is required to select Yes to a question, I need to be able to eliminate the user intervention so it automatically runs and then closes the app after the update is complete, again user intervention is currently needed to close the app. Can this be done?

Your help is very much appreciated.