|
Ken - Do you have an example CLP you might want to share? -----Original Message----- From: midrange-l-bounces+keg=nwnatural.com@xxxxxxxxxxxx [mailto:midrange-l-bounces+keg=nwnatural.com@xxxxxxxxxxxx]On Behalf Of Holder, Ken Sent: Tuesday, August 23, 2005 1:17 PM To: 'Midrange Systems Technical Discussion' Subject: RE: Is the drive already mapped? Suggestion... Map the drive with your STRPCCMD PC command. Then using the QNTC file system, do a Make Dir (MD) on the target NT server via CL to check to see if your getting to the server or not. Create a test directory on the other server so you can test for CPFA0A0. Monitor for CPFA0A0 "Object already exists" message. If you get that message then your PGM should continue on. If you get any another CPF message then go to your error routine. Hope this helps. Ken H. -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of as400tech@xxxxxxxxxxx Sent: Tuesday, August 23, 2005 11:45 AM To: midrange-l@xxxxxxxxxxxx Subject: Re:Is the drive already mapped? Marty, Thanks for the reply. Here is the command I am using. STRPCCMD PCCMD('net use M: \\xxx.xxx.xxx.xxx\folder') + PAUSE(*NO) However, I don't see any way to capture what, if anything, is being sent back to the iSeries. > message: 6 > date: Tue, 23 Aug 2005 14:07:51 -0400 > from: "Urbanek, Marty" <Marty_Urbanek@xxxxxxxxxxxx> > subject: RE: Is the drive already mapped? > > Terry, > > I am not familiar with the details of STRPCCMD, but if STRPCCMD returns > the command output to the iSeries, you should be able to issue a NET USE > command and the interrogate the output to determine if the drive is > mapped. > > -Marty >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.