Double Commander

Official forum
It is currently Sun May 19, 2013 5:30 am

All times are UTC + 3 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sun May 13, 2012 7:47 pm 
Offline

Joined: Sun Mar 18, 2012 2:44 pm
Posts: 4
Hello to all,
it would be helpful, if the cm_ChangeDir could change the path of the active file view and the not active file view.
My suggestion is to put the path of the not active view in the “execution in” field and
change the path of the not active File view if the “execution in” is not empty.

In the example I modify the DC source and create a new command. In the example I split the folders by using the pipe (“|”) character.

Code:
procedure TActs.cm_ChangeMyDir(param: string='');
var
   sTempString1,sTempString2: String;
   iPosOfPipe: integer;
begin

   iPosOfPipe := Pos('|',param);

     if(iPosOfPipe=0) then begin
       FrmMain.ActiveFrame.CurrentPath := ReplaceEnvVars(param);
     end
     else begin
       sTempString1:=Copy(param, 1, iPosOfPipe-1);
       sTempString2:=Copy(param, iPosOfPipe+1, Length(param));
       FrmMain.ActiveFrame.CurrentPath := ReplaceEnvVars(sTempString1);
      FrmMain.NotActiveFrame.CurrentPath := ReplaceEnvVars(sTempString2);
     end;                 
end;


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 3 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Get Double Commander at SourceForge.net. Fast, secure and Free Open Source software downloads