JSL에서 jmp 파일의 디렉토리 추출안녕하세요 여러분,
나는 복잡한 방식(단어 및 문자 조작 사용)으로 원하는 작업을 수행했지만 이 작업을 수행하는 더 쉬운 방법이 있어야 한다고 생각합니다. 내가 원하는 것은 JSL의 파일 선택 기능을 사용하여 방금 선택한 파일의 디렉터리를 추출하여 다음에 해당 디렉터리에서 시작하도록 하는 것입니다. 어떤 제안??
고마워요, 이브
고급 통계 모델링자동화 및 스크립팅데이터 접근품질 및 프로세스 엔지니어링Re: JSL에서 jmp 파일의 디렉터리 추출 중예, 잘 작동합니다! 내가 생각했던 것보다 가깝지만 더 좋습니다. 파일의 위치(디렉토리 경로)를 추출하는 기능이 내장되어 있어야 한다고 생각했습니다. 많은 감사 @txnelson !
감사합니다, 이브
Re: JSL에서 jmp 파일의 디렉터리 추출 중아래 내 스크립트를 살펴보고 내가 원하는 것에 가까워지고 있는지 알려주세요.
Names Default To Here( 1 );
theDirectory = "";
xx = Pick File( "Pick a File", theDirectory );
theDirectory = Substr( xx, 1, Length( xx ) - Length( Word( -1, xx, "\/" ) ) - 1 );
// now this Pick File will go to the directory that the file from the last
// Pick File was selected from
yy = Pick File( "Pick a File", theDirectory );
// If you want this Pick File to span across different scripts, then it would be a simple
// matter to save the directory in a specific namespace and get the
// directory location from a variable saved in that namespace.
// If you want to have the Pick File directory available from JMP session to JMP session
// then what I have used in the past, is to simply save the character string for the
// directory to a .txt file, using Save Text File() and Load Text File() to make the directory
// persistant
Re: JSL에서 jmp 파일의 디렉터리 추출 중죄송해요 버튼을 잘못눌렀어요!!! 안타깝게도 이는 해결책이 아닙니다. @txnelson . 이것은 알려진 디렉토리의 파일만 나열합니다. 원하는 파일을 찾기 위해 탐색하고 싶고 일단 파일을 선택하면 다음에 탐색할 때 이전 디렉토리에서 시작되도록 디렉토리를 저장하고 싶습니다.
건배, 이브
Re: JSL에서 jmp 파일의 디렉터리 추출 중스크립팅 색인에서 Files in Directory() 함수를 확인하세요.
