cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar

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

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?

View solution in original post

2 REPLIES 2

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?

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.