Both of those are working for me.  I'm on win2k & WSH 5.6.  What
version of WSH are you using?