在 JSL 中提取 jmp 文件的目錄大家好,
我已經設法以一種複雜的方式(使用文字和字符操作)做我想做的事情,但我覺得必須有一種更簡單的方法來做到這一點。 我想要的只是使用 JSL 中的“選擇文件”功能提取剛剛選擇的文件的目錄,以便下次從該目錄開始。 有什麼建議麼??
謝謝,伊夫
高級統計建模自動化和腳本編寫數據存取質量和工藝工程回复:在JSL中提取jmp文件的目錄是的,這很好用! 它比我想出的更接近(但更好)。 我只是認為應該有一個內置函數來提取文件的位置(目錄路徑)。 非常感謝@tx尼爾森!
問候,伊夫
回复:在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
回复:在JSL中提取jmp文件的目錄抱歉我按錯按鈕了!!! 不幸的是,這不是一個解決方案@tx尼爾森。 這只列出已知目錄的文件。 我想瀏覽找到我想要的文件,一旦選擇了它,我想保存該目錄,以便下次我想瀏覽時,它從上一個目錄開始。
乾杯,伊夫
回复:在JSL中提取jmp文件的目錄查看腳本索引中的 Files in Directory() 函數
