Run BAT file with ASP script [ERROR]

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Run BAT file with ASP script [ERROR]

    Here is the code in ftpRun.asp:

    <%
    set wshell = server.createobject("wscript.shell")
    wshell.run "D:\Inetpub\wwwroot\new\josh\OFP
    5995A\consistency\ftpRun.bat"
    set wshell = nothing
    Response.Write "Files Updated Successfully!"
    %>

    Here is the error I get when I run ftpRun.asp:

    error '80070483'
    No application is associated with the specified file for this
    operation.
    /new/josh/ofp 5995a/consistency/ftpRun.asp, line 4

    Any ideas how to fix it? Any other ways to accomplish the same goal
    on a NT4.0 machine without adding components?

    Thanks,
    Josh
    Josh Guest

  2. Similar Questions and Discussions

    1. "unable to open script file 'mm_findObj.js (error 3)
      I have started getting the above error message now ive started developing ASP pages. I set restricted access to pages- but no matter what I...
    2. "Unable to open script file 'MM_findObj.js' (error 3)"
      Having started with ASP pages, I get this error message "Unable to open script file 'MM_findObj.js' (error 3)" when i goto the behaviours menu, or...
    3. PHP posting script, file updated but web still shows last night's file
      I wrote a PHP script that allows me to post HTML entries to files on my server without going through FTP, yadda yadda. It works fine, and last night...
    4. OT:Unable to open script file P7_u1CMenu.js (error 2)
      I keep getting this error when I merge <td>'s on a table. It will work but I get this repeated message for each of the cells I try and merge....
    5. Problem executing a BAT file (or EXE file) using Perl as CGI script under Apache.
      I have developed some perl code to run as a script under Windows 2000 running apache. This works GREAT on Win2k but on WinNT, perl is simply...
  3. #2

    Default Re: Run BAT file with ASP script [ERROR]

    That's odd.

    Try executing this at the command prompt on your server:

    assoc .bat=batfile

    Also, when you execute that, you can do:

    "cmd.exe /c D:\Inetpub\wwwroot\new\josh\ofb5995A\consitency\ft pRun.bat"

    Ray at work

    "Josh" <joshfeingold@hotmail.com> wrote in message
    news:77f547b5.0310230824.1b618293@posting.google.c om...
    > Here is the code in ftpRun.asp:
    >
    > <%
    > set wshell = server.createobject("wscript.shell")
    > wshell.run "D:\Inetpub\wwwroot\new\josh\OFP
    > 5995A\consistency\ftpRun.bat"
    > set wshell = nothing
    > Response.Write "Files Updated Successfully!"
    > %>
    >
    > Here is the error I get when I run ftpRun.asp:
    >
    > error '80070483'
    > No application is associated with the specified file for this
    > operation.
    > /new/josh/ofp 5995a/consistency/ftpRun.asp, line 4
    >
    > Any ideas how to fix it? Any other ways to accomplish the same goal
    > on a NT4.0 machine without adding components?
    >
    > Thanks,
    > Josh

    Ray at 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