Question: need to lauch external program as an administrator

Ask a Question related to ASP Components, Design and Development.

  1. #1

    Default Question: need to lauch external program as an administrator

    Hello,
    I need an ASPobject that will enable me to lauch an external program, like a
    ..BAT file for example, under the Administrator account.
    If I launch a xxx.BAT file using WSCRIPT.SHELL, I have "permission denied"
    errors under Windows XP that does not permit me to do this (view following
    code...)

    Set oScript = Server.CreateObject("WSCRIPT.SHELL")
    Call oScript.Run ("createzipfile.bat", 0, True)
    --------------> "permission error", under Windows XP (works fine under
    Windows NT !)

    Do you know a DLL object that could enable me to overpass this issue ?
    Thanks in advance for your answer,
    Phil

    Philippe Gregoire
    [email]greg@oceanic-prod.com[/email]
    [url]www.oceanic-prod.com[/url]


    Gregos Guest

  2. Similar Questions and Discussions

    1. FSCommand, execute external program
      Hi, i have a problem i wish to submit to you. i have created a graphic application on Flash MX, working on a browser. My customer use old printers...
    2. How to execute an external (like C++) program?
      Hi, All, I need to execute a command-line utility just after stream publishing is over. Can I launch external EXE's from FCS's server-side scripts?
    3. starting an external program
      starting an external program Tue, 11 November 2003 00:12 I'am using een php script with de exec() command to start een external program that...
    4. opening documents on external program
      is your movie in a far deep folder ? sometimes paths too long or containing spaces can make problems..... I'm suggesting that 'cause I use Filextra4...
    5. Invoking an external program in ASP.NET
      Hi, I am trying to invoke an external email management program from my ASP.NET web application. For testing purposes I created a very simple...
  3. #2

    Default Re: Question: need to lauch external program as an administrator

    Are you sure that it's a permissions issue, as opposed to something caused
    by the fact that you aren't using a full path to the .bat file?

    I suppose you could create a batch file that uses su.exe from the Resource
    Kit and have that batch file run the other batch file as the local admin.

    Ray at work

    "Gregos" <info@oceanic-prod.com> wrote in message
    news:bpkqol$1poehi$1@ID-134316.news.uni-berlin.de...
    > Hello,
    > I need an ASPobject that will enable me to lauch an external program, like
    a
    > .BAT file for example, under the Administrator account.
    > If I launch a xxx.BAT file using WSCRIPT.SHELL, I have "permission denied"
    > errors under Windows XP that does not permit me to do this (view following
    > code...)
    >
    > Set oScript = Server.CreateObject("WSCRIPT.SHELL")
    > Call oScript.Run ("createzipfile.bat", 0, True)
    > --------------> "permission error", under Windows XP (works fine under
    > Windows NT !)
    >
    > Do you know a DLL object that could enable me to overpass this issue ?
    > Thanks in advance for your answer,
    > Phil
    >
    > Philippe Gregoire
    > [email]greg@oceanic-prod.com[/email]
    > [url]www.oceanic-prod.com[/url]
    >
    >

    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