该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


Files in Directory( "\\myserver.company.com/source/Users/Smith" );
mount = Function( {server},
If( Host is( "Mac" ),
// Use osascript to mount the volume.
Run Program(
Executable( "/usr/bin/osascript" ),
Options( {"-e", Eval Insert( "mount volume \!"smb://^server^\!"" )} ),
server = Concat Items( Remove( Words( server, "/" ), 1 ), "/" );
Eval Insert( "/Volumes/^server^" );
// Windows can use UNC to auto-mount the server.
Eval Insert( "\!\\!\^server^" )
users = Mount( "myserver.company.com/Users" );
Files In Directory( Eval Insert( "^users^/Smith" ) );