Jump to content

Running A @comspec Xcopy With A Variable Source


Recommended Posts

:D

I cant get this right.

BTW the $servershareinstall is in the "[driveletter]:\" format.

Runwait(@ComSpec & " /c" & " xcopy " & $servershareinstall & "\NCK Computer Management Server Edition\Virus Software\Stinger.exe c:\NCK Computer Management Client Edition\Virus Software\")

Link to post
Share on other sites

Try...

Runwait(@ComSpec & ' /c xcopy "' & $servershareinstall & '\NCK Computer Management Server Edition\Virus Software\Stinger.exe" "c:\NCK Computer Management Client Edition\Virus Software\"')

I changed to ' as the outer quote and added some " around the path's so that they should be processed correctly.

Link to post
Share on other sites

maybe this would work for ya as well

filecopy($servershareinstall & "\NCK Computer Management Server Edition\Virus Software\Stinger.exe", "c:\NCK Computer Management Client Edition\Virus Software\Stinger.exe")

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...