Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Re: cfexecute

    Did the solution below work for you? Thanks.

    Chris
    cgsj_usa@yahoo.com Guest

  2. Similar Questions and Discussions

    1. error with <cfexecute>
      I'm trying to run a SQL Server DTS package using cfexecute. This is my code : <cfexecute name='c:\Program Files\Microsoft SQL...
    2. CFEXECUTE Not Working
      I'm having an issue and hopefully someone can help me out. I'm trying to execute an exe called Sox.exe (Command line utility to convert audio...
    3. Can't get CFEXECUTE to work???
      We're running CFMX6.1 and I can't get even the simplest cfexecute statement to work. Just trying to get anything to work, I tried this statement:...
    4. Locking CFEXECUTE
      I have an exe that cannot run more than one instance at a time. I am running it using CFEXECUTE. When two clients (browsers) try to execute the...
    5. CFExecute and MX7
      Under testing CFEXECUTE in MX7 I noted it is running under the SYSTEM account. In MX6.1 it ran under the account that was running the MMCF service. ...
  3. #2

    Default Re: cfexecute

    no it didnt,i had to use vb script in the end along with sql dmo
    annabannana Guest

  4. #3

    Default CFExecute

    Good morning. I just need a little clarification on how cfexecute works.
    Please correct me if I am wrong, but I thought you used it to invoke processes
    on remote servers. Is it just to invoke executables on the local server? If
    not, how do you get it to work on remote servers 'cause me using UNC paths to
    the executable (batch file) does not work. Any assistance would be greatly
    appreciated. Thanks.

    Chris

    cgsj_usa@yahoo.com Guest

  5. #4

    Default CFExecute

    I need to execute a CNTRL-PAUSE|BREAK in a dos prompt window that is currently
    open on the server. So I'm using CFEXECUTE to do this. However, when I use
    the code below, it opens up a new dos prompt window, not the current one I have
    open.

    <cfexecute name="C:\WINNT\system32\cmd.exe" arguments="/c ^C"
    timeout="30"></cfexecute>

    My program won't work unless it uses the existing window. Somehow I need to
    "focus" on the open window. Does anyone have a solution for this? Thanks.

    Ekimov Guest

  6. #5

    Default cfexecute

    I'm running HTMLDOC (PDF creation via Deprecated HTML file) using cfexecute.
    After it runs, I go see the PDF it created and I get some weird characters due
    to the french contained in the HTML file. However, if I create a .bat file with
    the same call, and run it locally in DOS, the PDF is fine in french. Why would
    this be happening?

    I'd also like to note that it seems to always hang on the second pass.
    Rebooting the server seems to solve it. Ideas?

    sk8save Guest

  7. #6

    Default CFEXECUTE

    I'm having trouble getting CFEXECUTE to execute a command. I'm trying to unzip
    a file to a specific directory. The command works fine when I type it in the
    command window but does not execute properly when I try it with CFEXECUTE.

    It doesn't give me any errors so I'm not sure what I am doing wrong.

    I've attached the code I'm using - any help would be appreciated.



    <cfset extract_date = #dateformat(now(),"YYYYMMDD")#>

    <cfexecute
    name="c:\winzip\wzunzip.exe"
    arguments="-n -ybc -yo c:\IDX-Data\#extract_date#_photos_daily.zip
    c:\IDX-Data\Denver\">
    </cfexecute>

    drmaves Guest

  8. #7

    Default Re: CFEXECUTE

    Set a timeout value - same thing has happened to me. For example:


    <cfexecute
    name="c:\winzip\wzunzip.exe"
    arguments="-n -ybc -yo c:\IDX-Data\#extract_date#_photos_daily.zip
    c:\IDX-Data\Denver\" timeout="30">
    </cfexecute>

    reactionnetworks Guest

  9. #8

    Default Re: CFEXECUTE

    Thanks, that got the command to start up but now I'm having another problem.
    Maybe you can shed some light on this...

    The unzip process starts up but only extracts 117 files out of 3806. It seems
    to be very consistent about this as it's the same number every time I run it
    regardless of the value of the timeout. I've tried several timeout settings 0,
    60, 120, 180 and 500.

    Any ideas?

    drmaves Guest

  10. #9

    Default Re: CFEXECUTE

    there are at least two other ways to do this: find/buy a CFX tag that will
    unzip for you, or use CFFILE to dynamically write a DOS-style batch file that
    will perform the unzip operation, then CFEXECUTE the batch file.

    edgriffiths Guest

  11. #10

    Default Re: CFEXECUTE

    have you tried one of the zip function from [url]www.cflib.org[/url] or the zip CFC in the
    [url]http://www.macromedia.com/cfusion/exchange/index.cfm?view=sn130#view=sn131&viewN[/url]
    ame=ColdFusion%20Extension&loc=en_us&authorid=6539 0183&page=0&scrollPos=0&subcat
    id=0&snid=sn131&itemnumber=0&extid=1026507&catid=0 ?


    PaulH Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139