ZTree.com  | ZEN  | About...  

 Index   Back

rename a directory 'under the cursor' ?   [OT]

By: Hartmut Schneider     Germany  
Date: Jul 27,2017 at 06:33
In Response to: [OT] is it poossible to rename a directory where the cursor is with the ztreemenu? (Ryan)

> AA= should work but it causes an error saying... it is being used by
> other process.
>
> what other process? the only process here is the ztree cursor staying
> on it to change the directory name. what dont i understand here?

Please keep in mind that when you start a program, this program gets its Current Directory from where you launch it.
Example: Provided you have made a temp directory D:\Ryan\temp1
and launch ZTW.exe from there (i.e. from a Cmd box with Current dir = D:\Ryan\temp1),
then you can Neiter rename Nor delete temp1.

The START command offers a parameter '/D path' to set the program's Current Dir to that path.
When I launch an external graphic viewer from ZTree (ZPreview e.g.), I use
start /dD:\ %#ZtTools%\ZPreview.64.exe %#ZTHome%
so that the Current Dir of this Viewer is D:\ - independent from the directory ZTree stands on at launch time, even if it's a temporary directory.

Hartmut

812 views      
Thread locked
 

Messages in this Thread

 
96,631 Postings in 12,230 Threads, 350 registered users, 70 users online (0 registered, 70 guests)
Index | Admin contact |   Forum Time: Mar 19, 2024 - 9:37 am UTC  |  Hits:62,013,870  (11,151 Today )
RSS Feed