Re: runas could not execute the copy command

From: Rick (me_at_privacy.net)
Date: 06/22/04


Date: Tue, 22 Jun 2004 08:26:46 -0700


"Faisal" <faisal_qasimpk@yahoo.com> wrote in message news:d55ce0a6.0406220718.48340f13@posting.google.com...
> Hi,
>
> Trying to create a script to copy files using runas, but it is failing with:
>
> "
> C:\>runas /user:clas@domain "copy payment_initation"
> Enter the password for clas@domain:
> Attempting to start copy payment_initiation as user "clas@domain" ...
> RUNAS ERROR: Unable to run - copy payment_initiation
> 2: The system cannot find the file specified.
> "
>
> How can this be resolved. I will be grateful for your help.

Is the file in the current folder? If not, you'll need to qualify the
copy command, i.e. "copy <drive>:\<folder>\payment_initiation".

Rick



Relevant Pages

  • runas could not execute the copy command
    ... Trying to create a script to copy files using runas, but it is failing with: ... Regards ...
    (microsoft.public.win2000.general)
  • Re: Script to obtain last password change date
    ... I am trying to get the syntax right for ... It keeps failing on the Get Object command with ... out of the script center and it is supposed to work against 2003 AD. ...
    (microsoft.public.windows.server.scripting)
  • Re: MS KB Article 231270, does any one know where it is?
    ... That KB appears to have been withdrawn. ... have been after RunAs was a feature. ... installation directory and/or the specific registry keys of the ... be an aid in finding exactly where access are failing. ...
    (microsoft.public.win2000.security)
  • Re: Is It possible to run a script as admin?
    ... > If the device is Win2K or WinXP, you can use RunAs, however Runas will ... > work with an exe and you'll also have to specify a password. ... I wrote a script that requires the user have ... If I could just allow admin access for the logon script I'd be ...
    (microsoft.public.scripting.vbscript)
  • Re: Im new to scripting a I working on a project that I need some help with.
    ... After that the script ... >> that the user account is not valid. ... > it to the Administrators group: ... If the user does not have it, maybe a RunAs solution ...
    (microsoft.public.scripting.vbscript)