Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Batch not able to use modulus
Name: stroke6463 Date: August 15, 2006 at 12:54:03 Pacific OS: XP PRO CPU/Ram: idk
Comment:
I have a batch that checks daily for the month day and year. I have to change a file name to be -3 days on a monday to the previous fridays date. I have the months and years figured out but the problem is on a leap year it screws up my program. I just want the output to be 0 in 2008 confirming that it is a leap year. Here is an example:
set Year=06 set /a Leap=%test:~1,1%%4 echo %Leap% The output is 6.
When I manually run that from the command line step by step it works perfectly but when I run it from a batch it doesn't see the % operator. Any ideas? Thanks.
Summary: The below script makes you able to use the native one as usual, i.e. ScriptName IPaddress or Scriptname @FileName where FileName is a text file with ONE IP on each line. Beware the script was not test...
Summary: Hi We have XP client login to the network and I have made a vbscript that copies files to the map drive, but I am not able to use the %userprofile% in the script. Can anyone help me please. I just wa...
Summary: I´m writing a script on php on win xp, with apache web server, the server it`s working ok, and php too, the problem is when I try to pass a form to another script; I´m not able to use the varible on t...