Scott Klement wrote:
I can execute commands Windows like 'move' and 'copy', but the Windows app's import program always completes without errors but also without actually doing anything. I believe the Windows app uses a relative path to access the import file, and that somehow the REXEC environment causes problems with the current directory.

RUNRMTCMD should output a spooled file that shows what happened during the session.

I did know about that, but reading it again made me think of adding a chdir command to display the current directory, to see if I could confirm my suspicion.

C:\WINDOWS\system32 seems to be the default current directory for iSeries Access for Windows Remote Command. I'm not sure if I was terribly inattentive before or if something changed, but the path is printed in the spooled output for every command in the .bat script that I'm running, whether or not the chdir command is in the script.

When I was first trying to get this work (about a month ago), it seemed that the CD command didn't change the directory properly for the next command in the .bat script. Now it is working and the process seems to be working fine.

Thanks everyone for your help,

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].