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

Author Topic: How to make a calculation in DOS?  (Read 2180 times)

0 Members and 1 Guest are viewing this topic.

Moon2006

  • Guest
How to make a calculation in DOS?
« on: December 12, 2006, 07:42:09 PM »
HI,

Again, I am trying to make a calculation in the bat file.

I would like to get the last year as 2005 by substracting from this year 2006.
Can I do that?May I know how to do ?
Neither  %year%-1  nor %year-1% doesn't work.
Value of %year% is 2006.
Any idea pls?

Thanks,


ghostdog74



    Specialist

    Thanked: 27
    Re: How to make a calculation in DOS?
    « Reply #1 on: December 12, 2006, 07:57:01 PM »
    you can look at the set command here http://www.ss64.com/nt/set.html

    Moon2006

    • Guest
    Re: How to make a calculation in DOS?
    « Reply #2 on: December 12, 2006, 08:28:07 PM »
    I got it.
    Thanks so  much............

     :)

    Quote
    you can look at the set command here http://www.ss64.com/nt/set.html