Hi
A basic way should be to use the On Error Resume Next statement that allows you to bypass the errors.
But this solutions does not trap any error at all. So you will not be able to log the error.
Perhaps another kind of test to validate your connection.
Something like MapNetworkdrive to the...
Hi,
in your case, and because you want to "clean" your server, I suggest a "On Error Resume Next" statement at the beginning of your script.
That is, when a printer does not exists, the error doesn't stop the script.
Thats all. ;-)
Hi all
Have a try on this :
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
'The tool is launched
Set oExec = WshShell.Exec("calc.exe")
'Wait for the end of process
Do While oExec.Status = 0
WScript.Sleep 100
Loop
Wscript.Echo "Finished"
PHV have the good approach.
Just have a look to FAQS. I wrote one on "how to retrieve the results of command lines", based on StdOut Property.
Happy coding
The following code uses the Windwos 2OOO RSK tool whoami to identify the current user ans his group membership, then retrieve the output from this command to display it. I know it's not wonderful but this is an example ;-)
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")...
Hello,
In the case where you want to modify the export csv and import the same file, you should have errors meaning that the mailboxes and / or addresses already exists.
In the csv file, insert a columns called Mode, and populate it with the "modify" keywork (without the quotes).
Hi !
I had the same problem and followed your link, download the exe from Microsoft and work on it.
[idea]Just switch the date and time parameters to make it run :
Here is an example of what it could be :
Dim vSched
Dim vdate, vtime
vdate = "MM/DD/YYYY"
vtime = "HH:MN xM"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.