Choose Language Hide Translation Bar
Highlighted

How to tackle blank spaces or . in windows file path?

How to tackle blank spaces or . in windows file path? e.g path="C:\Users\Public\Pictures Ram.a temp\PICASO\temp.pptx";

JSL (copy file etc) does not work if there is spaces or . in the path of a file. what is the solution for that?

Thanks

Ram

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: How to tackle blank spaces or . in windows file path?

The example code for the Copy File() function in the Scripting Index seems to contradict your claim:

 

Names Default To Here( 1 );
rc0 = File Exists( "$TEMP/x.jmp" );
rc1 = Copy File(
	"$SAMPLE_DATA/Loss Function Templates/Normal.jmp",
	"$TEMP/x.jmp"
);
rc2 = File Exists( "$TEMP/x.jmp" );
rc3 = Delete File( "$TEMP/x.jmp" );
rc4 = File Exists( "$TEMP/x.jmp" );
Char( rc0 ) || " " || Char( rc1 ) || " " ||
Char( rc2 ) || " " || Char( rc3 ) || " " ||
Char( rc4 );/* 0 1 1 1 0 */

What is the problem that you seem to have?

Learn it once, use it forever!

View solution in original post

2 REPLIES 2
Highlighted

Re: How to tackle blank spaces or . in windows file path?

The example code for the Copy File() function in the Scripting Index seems to contradict your claim:

 

Names Default To Here( 1 );
rc0 = File Exists( "$TEMP/x.jmp" );
rc1 = Copy File(
	"$SAMPLE_DATA/Loss Function Templates/Normal.jmp",
	"$TEMP/x.jmp"
);
rc2 = File Exists( "$TEMP/x.jmp" );
rc3 = Delete File( "$TEMP/x.jmp" );
rc4 = File Exists( "$TEMP/x.jmp" );
Char( rc0 ) || " " || Char( rc1 ) || " " ||
Char( rc2 ) || " " || Char( rc3 ) || " " ||
Char( rc4 );/* 0 1 1 1 0 */

What is the problem that you seem to have?

Learn it once, use it forever!

View solution in original post

Highlighted

Re: How to tackle blank spaces or . in windows file path?

Thank you, looks like something else was the issue. i am using JSL to generate P3ICLI code.

Thanks you once again.

Article Labels

    There are no labels assigned to this post.