|
HI, I have inherited a script that to me seems complex. I'm new to kix and any help appreciated. Basically the script sets a bunch of variables to get the date of a file from a listing. This used to be fine however, we have just moved the script to a new server that has been built and is set to use UK Regional Settings. So my question is how do I go about changing the script to do this the other way round now.
See extract from the script. If you need any more details please just shout.
many thanks for any help that I get.
Create date filename for logging $yr=left(@date,4) $mn1=right(@date,5) $mn=left($mn1,2) $dy=right($mn1,2) @crlf "Branch Journal File copy to G: Drive" @crlf "Do not close this window - It will close when the task is complete"
;****** Set date and create output file
$SY = 1 + left(@date,4) - 1 $SystemYear = 1 + right($SY,2) - 1 $mn1 = 1 + right(@date,5) - 1 $SystemMonth = 1 + left($mn1,2) - 1 $SystemDay= 1 + right(@date,2) - 1 $SystemDays=($SystemYear*365)+($SystemMonth*30.4167)+$SystemDay
|