View Single Post
Old 8th October 2005, 00:51   #313
Major Dude
Join Date: Jan 2004
Location: Brisbane, Australia
Posts: 1,193
You cannot access the sleep method of wscript, as it is a host supplied method and not a method of the object. I have provided a settimeout method host method for AW however which can be used to sleep.

Both versions of your code work fine for me, although I am running it as an internal script rather than external, and so dont have the 'objWinamp.' bit. It is likely to be your host environment - which I assume is wscript or VB something. You could try declaring sFileName as a string, or setting it as sFileName = "" at first to make your host realise that it is a string, or try using the + operator instead of &.
shaneh is offline   Reply With Quote