Announcement

Collapse
No announcement yet.

Copying files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Copying files

    I have set up a tool to copy files to our servers. The tool cmd line is COPY %P1% \\%C1%\C$ which prompts me for the file to copy. I enter \\pcname\c$\temp for the file location (the file is on my PC). When the tool runs, I get the following error. "Unable to execute command line: COPY \\pcname\c$\temp \\servername\c$ The system cannot find the file specified." I know the file is in my c:\temp directory. Any ideas?

  • #2
    Re: Copying files

    I have a copy tool as well but I have it set up differently then you do. Let me explain mine and see if there is something that could help you out.

    I use a share points for my tools. prefrence
    command line:
    <span style="font-weight: bold">\\servername\scripts\HyenaTools\pstools\psex ec.exe \\%E% -u domainname\userid -p password -c -f "\\servername\Scripts\HyenaTools\Scripts\logon-scr.bat"</span>


    my batch file:
    <span style="font-weight: bold">@ECHO OFF
    ECHO COPYING GRC.DAT

    COPY "\\servername\scripts\hyenatools\scripts\logon.scr " "C:\WINDOWS\system32"

    ECHO Logon.scr has been copied.</span>

    This copies the logon.scr to the selected machines in Hyena.


    [This message has been edited by Trammel (edited 11-30-2005).]

    Comment


    • #3
      Re: Copying files

      What is the actual file you are trying to copy? Your example just has a directory:

      \\pcname\c$\temp

      Comment

      Working...
      X