03/20/2015 2489 views

Im trying to install a new version of a program on our clients.
The script looks like this:

  IpXfer.exe -s av.k1860.no -p 8080 -c 45211 -d FromOld
) else (
  IpXfer-64.exe -s av.k1860.no -p 8080 -c 45211 -d FromOld

The files are added as dependencies
and are named:

If i start the script with a .bat file on the computer it works well,
With k1000 not so much, I see it starts but then it dissapear and does not complete.

Any idea what the problem might be?

Best regards
2 Comments   [ + ] Show comments


  • check out the following website for more information: http://stackoverflow.com/questions/1738985/why-processor-architecture-always-returns-x86-instead-of-amd64
  • I appreciate the answer but the script is allready working on local pc. but not though K1000.

All Answers


You're leaving it to the KBox to guess where those EXEs are. Regrettably, like so many of us, it has been deserted by its psychic powers.

@Community: Does the standard '%~DP0' dodge work with KBoxes?

Answered 03/20/2015 by: VBScab
Red Belt

With a batch file, it is executed on the local machine from the location that the K1000 downloads the files to.  It's basically the equivalent of opening a command prompt on the local machine and executing the software.

As for running in the K1000, I'd guess offhand that there is an inconsistency in the architecture detection in your string since the agent is 32 bit. 

I'm glad you have it working in a batch file, but If running it in the K1000 concerns you, open a ticket with support for them to investigate further.

As for %~DP0, I know I've used it before in a kscript, but don't remember the context.
Answered 03/23/2015 by: jknox
Red Belt