Nov14u
12-18-2002, 08:33 AM
I made very simple start up script to delete a folder
// JScript.
var FSO = WScript.CreateObject("Scripting.FileSystemObject");
FSO.deleteFolder("c:\\documents and settings\\pac*");
The problem I am having is that if the file is not there it gives the user an error message when they login . How can I correct this. This is the first time i experimented with it so any advice is greatly appreciated
// JScript.
var FSO = WScript.CreateObject("Scripting.FileSystemObject");
FSO.deleteFolder("c:\\documents and settings\\pac*");
The problem I am having is that if the file is not there it gives the user an error message when they login . How can I correct this. This is the first time i experimented with it so any advice is greatly appreciated