Windows Vista fun: change default job folder and Run Program (on client) limits

Hi,

We are experiencing some problems with a "Run program(on client)" component and a Windows Vista server. The protocol runs fine on windos xp, but in vista we get permision errors and so on. A probably similar question, I think, was posted here before but not answered:

https://community.accelrys.com/message/2492

So at the moment, and for solving this problem I thought about the following solutions:

1- is it possible to change the default job folder when the server is windows vista?

2- in the "Run program(on client)" component, when Linux, we can enter different commands using:

cd /home/user ; ls -lrt ; ps -ef

but in Windows only the first command is executed, can it be changed so we enter a whole file of commands?

3- In the "Run program(on client)" component, how can I tell it by default that the starting directory is whatever I want (specified by the user)? So when I type, for instance "dir", I get the contents of that directory and not of the default job folder

Thanks for your help

P.D. The questions about "Run program(on client)" component are relative of both windows vista and xp

Answers 4
HP
HP 2009-10-22
Hello Werner,

You found the options I was just about to suggest.

As for managing programs, if you have the integration collection you can create components based on your desired language, such as Java, Perl or Python, in addition the ability to invoke a windows command line or script "Run Program (On Server)" or "Run Command on Remote Host (SSH)". However in order to "manage" a windows program it must provide an API to manage it with. If it does not provide an adequate command-line or an alternative like a SOAP API, then I do not see how Java would provide an advantage in calling it.

In the pre-Vista days, if a Windows application supported VB scripting you could manage it via this Windows-specific scripting language -- which was convenient for doing things like formatting in Excel -- but security "enhancements" in Vista may preclude the ability to do this.

The key will be in the application you are trying to manage and the ways it allows that management. If it is a Windows GUI only with no adequate API then it may not be possible to fully integrate it.

Best wishes,
Lynn Miller
Accelrys Support
HP
HP 2009-10-22
antoher option i wonder about now is the possiblity if using pilotscript or python or another similar components to call the windows programs, as the windows command line is so limited
HP
HP 2009-10-22
sorry, what i meant is if it is possible to change the jobs folder as a protocol parameter
HP
HP 2009-10-22
ok so I found a workaround:

- the job folder can be changed through the admin portal but this is not user friendly
- i can give multiple commands in windows separating them with the "&&"
- another option is to prepare a batch file with multiple commands, and just run it

anyway, about the possibility of managing win programs with java, python or pipeline script, i would be also interested