Scripting Issues
Having issues replacing a file using the script below:
Directory: c:\windows\system32
File: cmd.exe
Wait for completion: checked
Parameters: start /wait xcopy $(KACE_DEPENDENCY_DIR)\configuration.xml "C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Network Access Manager\system\configuration.xml*" /q /y"
Any help will be great
Directory: c:\windows\system32
File: cmd.exe
Wait for completion: checked
Parameters: start /wait xcopy $(KACE_DEPENDENCY_DIR)\configuration.xml "C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Network Access Manager\system\configuration.xml*" /q /y"
Any help will be great
0 Comments
[ + ] Show comments
Answers (1)
Answer Summary:
Please log in to answer
Posted by:
SMal.tmcc
8 years ago
Top Answer
you have extra characters in your post
use for parameters
/c xcopy $(KACE_DEPENDENCY_DIR)\configuration.xml "C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Network Access Manager\system\configuration.xml" /q /y
or
/c move $(KACE_DEPENDENCY_DIR)\configuration.xml "C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Network Access Manager\system\configuration.xml" /y
use for parameters
/c xcopy $(KACE_DEPENDENCY_DIR)\configuration.xml "C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Network Access Manager\system\configuration.xml" /q /y
or
/c move $(KACE_DEPENDENCY_DIR)\configuration.xml "C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Network Access Manager\system\configuration.xml" /y