×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I get the error message in a DOS box "The system cannot find the path
specified"
When trying to open a file with STRPCCMD. Using the example from the
archives,
My code looks like the following below. Did I remove something I
shouldn't have?
PGM
*/
DCL VAR(&CMD) TYPE(*CHAR) LEN(300)
DCL VAR(&PATH1) TYPE(*CHAR) LEN(100)
DCL VAR(&PATH2) TYPE(*CHAR) LEN(100)
/*
*/
CHGVAR VAR(&CMD) VALUE('rundll32.exe +
url.dll,FileProtocolHandler ' *TCAT ' ')
CHGVAR VAR(&PATH1) VALUE('C:\AR_REGISTER.XLS')
CHGVAR VAR(&PATH2) VALUE(' ')
STRPCO PCTA(*NO)
MONMSG MSGID(IWS4010)
STRPCCMD PCCMD('cmd /c ECHO SET MYDOC=' *TCAT &CMD +
*BCAT 'C:\DATA\MYFILE.BAT')
STRPCCMD PCCMD('cmd /c ECHO SET MYDOC=%MYDOC%' *TCAT &PATH1 *BCAT +
'C:\DATA\MYFILE.BAT')
/* &PATH2 */
IF COND(&PATH2 *NE ' ') THEN(DO)
STRPCCMD PCCMD('cmd /c ECHO SET MYDOC=%MYDOC%' *TCAT &PATH2 *BCAT +
'C:\DATA\MYFILE.BAT')
ENDDO
STRPCCMD PCCMD('cmd /c ECHO start %MYDOC% C:\DATA\MYFILE.BAT')
STRPCCMD PCCMD('C:\DATA\MYFILE.BAT')
ENDPGM
Bob Ostrowski | Senior Programmer/Analyst
TRAINOR GLASS COMPANY | National - IT
11901 S. Austin Ave. | Alsip, IL 60803
T 708.293.4218 | F 708.293.6218 | C 708.560.5813
bob.ostrowski@xxxxxxxxxxxxxxxx <mailto:bob.ostrowski@xxxxxxxxxxxxxxxx>
| www.trainorglass.com <
http://www.trainorglass.com>
As an Amazon Associate we earn from qualifying purchases.