Professional Web Applications Themes

Need help with AspExec and xcopy... - ASP Components

Hello, im trying to xcopy files from one client to another using the AspExec component (desktop-shortcuts for a specific user....) <% client1 = request.form("client1") client2 = request.form("client2") signature = request.form("signature") Set Executor = Server.CreateObject("ASPExec.Execute") Executor.Application = "xcopy \"&CLIENT1&"\c$\&quot;doents and settings&quot;\"&signature&"\desktop\*.* \"&CLIENT2&"\c$\&quot;doents and settings&quot;\"&signature&"\desktop\" Executor.Parameters = "" strResult = Executor.ExecuteDosApp %> Since the webserver running the command doesnt have local admin-rights on the clients ill get the "Access denied" message... Is it possible to pass the admin username and password with the copy-command or any other way to solve this.... All help appreciated Regards Jorgen...

  1. #1

    Default Need help with AspExec and xcopy...

    Hello,
    im trying to xcopy files from one client to another using the AspExec component (desktop-shortcuts for a specific user....)

    <%
    client1 = request.form("client1")
    client2 = request.form("client2")
    signature = request.form("signature")
    Set Executor = Server.CreateObject("ASPExec.Execute")
    Executor.Application = "xcopy \\"&CLIENT1&"\c$\&quot;doents and settings&quot;\"&signature&"\desktop\*.* \\"&CLIENT2&"\c$\&quot;doents and settings&quot;\"&signature&"\desktop\"
    Executor.Parameters = ""
    strResult = Executor.ExecuteDosApp
    %>

    Since the webserver running the command doesnt have local admin-rights
    on the clients ill get the "Access denied" message...

    Is it possible to pass the admin username and password with the copy-command or any other way to solve this....

    All help appreciated

    Regards Jorgen

    Jorgen Gustafsson Guest

  2. #2

    Default Need help with AspExec and xcopy...

    Jorgen,

    You should review the Microsoft doents on impersonating
    a user from ASP. This will enable you to perform the
    desired task.

    [url]http://support.microsoft.com/default.aspx?scid=kb;EN-[/url]
    US;248187

    -Tim
    >-----Original Message-----
    >Hello,
    >im trying to xcopy files from one client to another using
    the AspExec component (desktop-shortcuts for a specific
    user....)
    >
    ><%
    >client1 = request.form("client1")
    >client2 = request.form("client2")
    >signature = request.form("signature")
    >Set Executor = Server.CreateObject("ASPExec.Execute")
    >Executor.Application = "xcopy
    \\"&CLIENT1&"\c$\&quot;doents and
    settings&quot;\"&signature&"\desktop\*.*
    \\"&CLIENT2&"\c$\&quot;doents and
    settings&quot;\"&signature&"\desktop\"
    >Executor.Parameters = ""
    >strResult = Executor.ExecuteDosApp
    >%>
    >
    >Since the webserver running the command doesnt have local
    admin-rights
    >on the clients ill get the "Access denied" message...
    >
    >Is it possible to pass the admin username and password
    with the copy-command or any other way to solve this....
    >
    >All help appreciated
    >
    >Regards Jorgen
    >
    >.
    >
    Tim Guest

Similar Threads

  1. PSCP and ASPexec - help!
    By eibenk@yahoo.com in forum ASP Components
    Replies: 0
    Last Post: October 20th, 07:10 PM
  2. Running cmd.exe with ASPexec - no errors, nothing done
    By eibenk@yahoo.com in forum ASP Components
    Replies: 0
    Last Post: October 18th, 08:59 PM
  3. HELP!! Simple xcopy from XP pro to Win 2003 failing..
    By Mark in forum ASP.NET Security
    Replies: 1
    Last Post: December 1st, 11:40 AM
  4. xcopy
    By Gopi in forum Windows XP/2000/ME
    Replies: 5
    Last Post: August 11th, 07:52 AM
  5. Problem when deploying with xcopy
    By Cristian Suazo in forum ASP.NET General
    Replies: 6
    Last Post: July 16th, 10:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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