in

Dotnetpanel Forums

Community support forums for DotNetPanel products

Scheduled Tasks -> Execute System Command

Last post 11-27-2008 10:24 PM by MattGahan. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-17-2007 11:22 AM

    Scheduled Tasks -> Execute System Command

    Hello,

    I would like to use the Scheduled Tasks feature, specifically the Execute System Command Task Type.  I have a vbscript file that removes directories from a directory within the wwwroot of a site.  I want it to run every morning at 2:00am.  I cannot seem to figure out what information to provide to get it to run and I could not find any information pertaining to the Execute System Command Task Type.

    When I select Execute System Command, I get a form to enter a Server Name, Executable Path, and Executable Parameters.

    I enter the server name (tnwww01), the path (s:\HostingSpaces\Dominos\dominos.throttlenet.com\wwwroot\removeTempAttachments.vbs), and no parameters.

    I save the task and then try and run it.  The directories that were supposed to be removed are not.  But I ensure that the script runs perfectly when I execute manually.

    Any help in using the system scheduler would be most helpful.

    Thank you

    Filed under:
  • 04-18-2007 7:56 AM In reply to

    Re: Scheduled Tasks -> Execute System Command

    Hi marbesan,

    If you need to schedule script run you need to type the following into the path field: cscript.exe //NoLogo s:\HostingSpaces\Dominos\dominos.throttlenet.com\wwwroot\removeTempAttachments.vbs. Then try to run task in order to ensure it works.

    Best regards,
    Pavel Tsurbeleu, COO
    DotNetPanel Software - professionally developed software for hosting businesses
  • 11-27-2008 10:24 PM In reply to

    Re: Scheduled Tasks -> Execute System Command

    I'm having difficulties getting this to work.

    Audit log is reporting this >System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ComponentModel.Win32Exception: The system cannot find the file specified.
    when i use the format in the excuteable path field; cscript.exe //NoLogo E:\hostingspaces\scripts\myscript.js

    and> System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ComponentModel.Win32Exception: The filename, directory name, or volume label syntax is incorrect
    when i tried with C:\windows\system32\cscript.exe //NoLogo E:\hostingspaces\scripts\myscript.js

    Any clues as to what i am doing wrong?

    Many thanks.

     

     

    Filed under:
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems