Aller au contenu principal

scrips register to managemnet server

Thread needs solution

hi all, 

i try create scrips to register manual to server but still failed

 

cls
@echo off

if %processor_architecture%==x86 set PATH="%programfiles%\Acronis\RegisterAgentTool"

cd %path%
register_agent -o register -a 192.168.5.4

pause

 

please advice

0 Users found this helpful

Hello Hamza Sam!

The above snippet works for me (removed the if, and replaced ip with hostname)

Can you provide some detail? Where, what fails with what message? Where are you running the batch from?

-- Peter

Hello Hamza Sam!

This looks like as if the quotes around "%program files%" are not honoured, consequently failing to cd to into a nonexistent directory where register_agent doesn't exist.

Is this the full batch file you are running, because I find it weird that you don't set the Path variable for 64bit system, and the default system path variable isn't a single path you can cd into.

On what OS, version, bitness are you running this?

-- Peter