Query About Cfschedule Tag

Discussion in 'Programming' started by <cf_Prasad>, Jun 19, 2008.

  1. #1
    Hi

    Myself Prasad a COLDFUSION programmer. I have one doubt regarding <cfschedule> tag's functionality. I want to schedule a ".vbs"(vbscript) file with the help of this tag. Is this possible??? bcoz wht I have read about <CFSCHEDULE> tag is - 'This tag Can run a CFML page at scheduled intervals'.
    Please help me.
    If this is not possible then Can we pass parameter to ".bat" file from cfml page??
    Any idea or suggetion on this will be greatly appreciated!!!!!!
     
    <cf_Prasad>, Jun 19, 2008 IP
  2. websiteideas

    websiteideas Well-Known Member

    Messages:
    1,406
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #2
    I think you may be able to do this with the cfexecute tag like this:

    <cfexecute name="C:\Windows\system32\cscript.exe" arguments="C:\vbscripts\Script.vbs"> </cfexecute>
     
    websiteideas, Jun 27, 2008 IP
  3. <cf_Prasad>

    <cf_Prasad> Peon

    Messages:
    2
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks a lot... It worked!!!!
    The only changes which I made is I had execute schtasks.exe and passed command line arguments to it to schedule a vbs file.
    Thnx a lot again.... :)
     
    <cf_Prasad>, Jun 30, 2008 IP
    lycos likes this.