Hello James,
To run executables you should use the <process> element instead of the
<stafcmd> element, the following works correctly for me:
<process>
<location>'local'</location>
<command mode='"shell"'>'Temp.bat'</command>
<workdir>R'C:\Some Directory'</workdir>
<returnstdout/>
<returnstderr/>
</process>
Regards
2008/9/9 <[EMAIL PROTECTED]>
> Hi all:
>
> I have a question about how to call a bat file in remote system.
>
> After I call this bat, I can not see the result.
>
> Bat file can not take effect.
>
> How can I resole this problem, thanks everyone!
>
>
>
> james_ji
>
> 2008-9-9
>
>
>
>
>
>
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
>
> <!DOCTYPE stax SYSTEM "stax.dtd">
>
>
>
> <stax>
>
>
>
> <!-- FREE EDITION - ONLY A SINGLE SNAPSHOT IS AVAILABLE -->
>
> <defaultcall function="main"/>
>
>
>
> <function name="main" scope="local">
>
> <block name="'installcheck'">
>
> <call function="'installcheck'">
>
> </call>
>
> </block>
>
> </function>
>
>
>
>
>
> <function name="installcheck">
>
> <stafcmd>
>
> <location>'STAF-JAMES'</location>
>
> <service>'process'</service>
>
> <request>'start command "C:/FTPDirectory/install_check/check.bat"
> username "Administrator" password "11111.6" workdir "C:/installnation
> check/install_check" wait '</request>
>
> </stafcmd>
>
> </function>
>
> </stax>
>
>
>
>
>
> *James ji* | Enterprise, CDC
>
> 12th Floor, Metro Mansion 228 Zhongshan Road, Nanjing 210008
>
> *O*ffice: +86(25)83190788 EXT 286
>
>
> TREND MICRO EMAIL NOTICE
> The information contained in this email and any attachments is confidential
> and may be subject to copyright or other intellectual property protection.
> If you are not the intended recipient, you are not authorized to use or
> disclose this information, and we request that you notify us by reply mail
> or telephone and delete the original message from your mail system.
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> staf-users mailing list
> staf-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/staf-users
>
>
--
Ahmed Mostafa
Associate Software Engineer
DB2 NSE Support
Cairo Technology Development Center
IBM Egypt
0123919750
[EMAIL PROTECTED]
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users