Hi,
I want to get your support for 'remote connection using JSL'. This is question from some customer.
1) For example, I use JMP in my laptop, I want to connect some file of other people’s laptop
in my laptop’s JMP using file open function. At this time, Can we open with log-in information to connect and open this file ?
2) When they connect in some file of network PC, they set ID & Password because of internal security.
At this time, can they connect with ID and Password in JMP ?
I have discussed this with other JSL expert and he recommend below script.
If you are available, please let me share your ideas for below script;
-------------------------------
<Script to connect at DOS Command in Window>
net use /delete * /y
@Anonymous off
set USER=id
set PASS=password
net use Y: \\localhost\aaa %PASS% /user:%USER% /persistent:yes
<You need to change below red things>
Names Default To Here( 1 );
////////////////////////////////////////////////////////////////////////////////////////
cmdList = {};
Insert Into( cmdList, "#commands" );
Insert Into( cmdList, "net use /delete * /y" );
Insert Into( cmdList, "set USER=id" );
Insert Into( cmdList, "set PASS=password" );
Insert Into( cmdList, "net use Y: \\localhost\aaa %PASS% /user:%USER% /persistent:yes" );
xtxt = Concat Items(cmdList,"\!N");
Save Text File( "c:\Temp\connectSharedDir.bat" , xtxt);
wait(1);
RP = RunProgram(
Executable( "c:\Temp\connectSharedDir.bat"/*path probably not needed*/ ),
Options( {} ),
ReadFunction( Function( {this}, Write( this << read ) ) )
);
////////////////////////////////////////////////////////////////////////////////////////
open("Y:\Air Traffic.jmp");