I can run a .bat file from my PC using CL Program:
The program CAIPADD retrieves the ip address of my PC. The .bat file tries to do a CD to
a mapped drive. When I run the CL I get this in the spool file generated by RUNRMTCMD:
The system cannot find the file specified.
Anyone have any thoughts as to why I can get to the C:\ Drive but not to mapped drive Z:\ ?
Thanks.
Code:
PGM DCL VAR(&IPADDR) TYPE(*CHAR) LEN(16) CALL PGM(CAIPADD) PARM(&IPADDR) RUNRMTCMD + CMD('C:\Users\knop\Desktop\fueltaxmapper.ba+ t') RMTLOCNAME(&IPADDR *IP) + RMTUSER('xxxx') RMTPWD('xxxxxxxxx') ENDPGM
a mapped drive. When I run the CL I get this in the spool file generated by RUNRMTCMD:
PHP Code:
C:\Windows\system32>cd z:\
The system cannot find the drive specified.
C:\Windows\system32>copy z:\FuelTaxExportNewConfig.xml C:\Program Files (x86)\Xa
ta\translator\cfg
The system cannot find the drive specified.
C:\Windows\system32>ren FueltaxExportNewConfig.xml FuelTaxExport2Mapper_Config.x
ml
Anyone have any thoughts as to why I can get to the C:\ Drive but not to mapped drive Z:\ ?
Thanks.
Comment