Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. JPBERGEZ

    MOVE ON IF CAN'T CONNECT

    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...
  2. JPBERGEZ

    del printers (never scripted before =) )

    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. ;-)
  3. JPBERGEZ

    Trying to access a Command Prompt via VBS

    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"
  4. JPBERGEZ

    Can I catch external errors?

    Hi Just have a look at http://www.tek-tips.com/faqs.cfm?spid=329&sfid=3330. It's a basic way to catch the output of an external program after it ends.
  5. JPBERGEZ

    COPY A FILE FROM LOCAL TO NETWORK SHARE

    Have you the correct rights to write to the destination folder ? Does it work in command line ?
  6. JPBERGEZ

    Using cacls.exe within VBScript.

    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
  7. JPBERGEZ

    retrieving computer name from remote

    You can retrieve the result of the command line you run from a script. Just have a look in FAQS/Applications for the FAQ I wrote on the subject.
  8. JPBERGEZ

    Retrieving the output from a command line

    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")...
  9. JPBERGEZ

    imtport / export to .csv

    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).
  10. JPBERGEZ

    Manipulating/creating tasks in Task Scheduler

    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&quot...

Part and Inventory Search

Back
Top