Fog Creek Software
Discussion Board




Problem with vss_fbupdate.wsf

It seems that the WScript.Interactive does not return false when I install the script as a Scheduled Tasks on my win2k server. I have checked the properties on the Scheduled Task but I cant find any places where this can be done.

I have fixed the problem just by returning false every place where the WScript.Interactive is used and it works out fine, but thats not a permanent solution. Please advice.

Kind regards

Lars Buur

Lars Buur
Tuesday, February 11, 2003

Lars,

The solution you propose is perfectly acceptable.  The interactive feature is just for debugging statements, so its safe to return false there.

Michael H. Pryor
Tuesday, February 11, 2003

Yes, .wsf files in Scheduled Tasks do think they are interactive. There is a command-line switch, //B (with two slashes) to force batch mode. Here is the command I use to run the vss_fbupdate script:

c:\winnt\system32\wscript.exe //B d:\progra~1\fogbugz\accessories\vss_fbupdate.wsf

Hope this helps!

David

David Thompson
Tuesday, February 11, 2003

Thank you very much David - that is an even better solution :)

Lars Buur
Friday, February 14, 2003

*  Recent Topics

*  Fog Creek Home