i have a vbs to write day name (Monay, Tuesday....)

However, after installation of XP sp3, the weekdayname change to Chinese
format weekdayname, not english "Monday..."

how can i do? Thanks a lot.

tony

Re: weekdayname after installation of XP Sp3 by ekkehard

ekkehard
Mon May 05 04:35:13 CDT 2008

Tony WONG schrieb:
> i have a vbs to write day name (Monay, Tuesday....)
>
> However, after installation of XP sp3, the weekdayname change to Chinese
> format weekdayname, not english "Monday..."
>
> how can i do? Thanks a lot.
>
> tony
>
>
You may force the output language/format by using SetLocale:

WScript.Echo WeekdayName( 1 )
SetLocale "en-us"
WScript.Echo WeekdayName( 1 )

output:

Sonntag <== german
Sunday

but in the long run, you'll have to get the update right.
(You did check your regional settings?)


Re: weekdayname after installation of XP Sp3 by Tony

Tony
Mon May 05 05:14:06 CDT 2008

Thanks a lot for your prompt response.

Your solution works.

i did check the region setting in control panel.

there is no change before and after installation of XP sp3

my past and present setting are Hong Kong.

it does not work even i change format / region to US


"ekkehard.horner" <ekkehard.horner@arcor.de>
???????:481ed4d2$0$6514$9b4e6d93@newsspool4.arcor-online.net...
> Tony WONG schrieb:
>> i have a vbs to write day name (Monay, Tuesday....)
>>
>> However, after installation of XP sp3, the weekdayname change to Chinese
>> format weekdayname, not english "Monday..."
>>
>> how can i do? Thanks a lot.
>>
>> tony
> You may force the output language/format by using SetLocale:
>
> WScript.Echo WeekdayName( 1 )
> SetLocale "en-us"
> WScript.Echo WeekdayName( 1 )
>
> output:
>
> Sonntag <== german
> Sunday
>
> but in the long run, you'll have to get the update right.
> (You did check your regional settings?)
>



Re: weekdayname after installation of XP Sp3 by Adam

Adam
Mon May 05 10:32:44 CDT 2008

On May 5, 3:19=A0am, "Tony WONG" <x...@netvigator.com> wrote:
> i have a vbs to write day name (Monay, Tuesday....)
>
> However, after installation of XP sp3, the weekdayname change to Chinese
> format weekdayname, not english "Monday..."
>
> how can i do? =A0Thanks a lot.
>
> tony

Other solutions would be creating a map class to map day of week in
english to day of week in chinese and return the proper value. A
scripting dictionary could be used too.