STRPCCMD with blank in path

940 pts.
Tags:
AS/400 interoperability
CL
Client Access/400
Microsoft Excel
STRPCCMD
I am trying to start an Excel spreadsheet with a blank in the path. ex: STRPCCMD 'START K:My DocumentsGLMonthend.XLS' I've tried all sorts of QUOTE scenarios but have not hit on the right set. Thank you MIS
ASKED: December 11, 2008  2:21 AM
UPDATED: December 11, 2008  6:56 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

I believe you will need quotes around the path portion as well as the whole command string; for example:

STRPCCMD ‘start ”’k:\my documents\monthend.xls”” (I think you need three apostrophes to make it work as a single ‘ in CL/RPG).

Or, you could use the 8.3 abbreviation for the folder:

STRPCCMD ‘start k:\mydocu~1\monthend.xls’. (Using the 8.3 abbreviation for part of your path will not force you to use 8.3 naming for the whole thing, so there is no reason to abbreviate ‘monthend.xls’, even though it is longer than 8.3.)

–HTH, Koohiisan.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • PSMurray
    How do I find the 8.3 abbreviation of the file name?
    530 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following