Polski | Română | Español


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UFM NewDir (TC UP NEW) :: PUBLIC BETA TEST
Author Message
Pawel
Moderator
*****

Posts: 10
Joined: 2009 May
Status: Away



Post: #1
UFM NewDir (TC UP NEW) :: PUBLIC BETA TEST
Hi,
As I promised I was working on application that will replace TC UP NEW app.
Finally, I can show you this piece of code. This is still BETA!
There are no Settings - you can change options only by modify the INI Configuration File.

This application is designed for my UFM project (https://www.pawelporwisz.pl/ufm/download.php) but it will work in TC UP (maybe, when it will be in final stage, it will be ported to TC UP New).

To be able to use UFM NewDir in your current TC UP Installation please do the following:

DOWNLOAD
Download UFM NewDir Application (BETA!):
http://www.meggamusic.co.uk/shup/1558101...EW-DIR.zip

How to use UFM NewDir in TC UP
Below information is also in zip package you downloaded.

This example uses the following TC UP Installation Directory:
D:\Projekty\TC UP\TC UP
Change it to your Installation Directory!


1. Copy NewDir.exe and NewDir.ini to TC UP New Directory:
On 64 bit system use \64 bit\NewDir.exe and on 32 bit system use \32 bit\NewDir.ex
For example: D:\Projekty\TC UP\TC UP\PLUGINS\Tools\TCUPNew

2. Modify TC UP Configuration File (depend on language)
For example (Polish Language): D:\Projekty\TC UP\TC UP\LANGUAGE\WCMD_POL.ini
Change the following lines:

[em_set_tcupnew]
Cmd=%COMMANDER_PATH%\Plugins\Tools\TCUPNew\TCUPNew.exe
Param="%P" %N


into:

;[em_set_tcupnew]
;Cmd=%COMMANDER_PATH%\Plugins\Tools\TCUPNew\TCUPNew.exe
;Param="%P" %N

[em_set_tcupnew]
Cmd=%COMMANDER_PATH%\Plugins\Tools\TCUPNew\NewDir.exe
Param="%P"%N

; Target Panel (SHIFT+F7)
[em_set_tcupnewT]
Cmd=%COMMANDER_PATH%\Plugins\Tools\TCUPNew\NewDir.exe
Param=""%P"%N "%T""



2a. Modify TC UP Button Bar File (depend on language and schema)
D:\Projekty\TC UP\TC UP\DEFAULT.bar

Change this lines:

button22=%COMMANDER_PATH%\ICO\casterx01.dll,17
cmd22=%COMMANDER_PATH%\PLUGINS\Tools\TCUPNew\NewDir.exe
param22=""%P"%N"
menu22=Nowy plik/katalog

into:

;button22=%COMMANDER_PATH%\ICO\casterx01.dll,17
;cmd22=%COMMANDER_PATH%\PLUGINS\Tools\TCUPNew\TCUPNew.exe
;param22=""%P" %N"
;menu22=Nowy plik/katalog

button22=%COMMANDER_PATH%\ICO\casterx01.dll,17
cmd22=%COMMANDER_PATH%\PLUGINS\Tools\TCUPNew\NewDir.exe
param22=""%P"%N"
menu22=Nowy plik/katalog

it doesn't has to be button22 - it may be 20 for you... just search for TCUPNew and change exe name and parametr...

----------------
2b.
To be able to use SHIFT+F7 shortcut in Total Commander you need to register it.
Open your Total Commander Configuration File: D:\Projekty\TC UP\TC UP\wincmd.ini
Edit the following section [Shortcuts] and add this line:

S+F7=em_set_tcupnewT
----------------


3. Customize UFM NewDir Configuration File (PATH section):
D:\Projekty\TC UP\TC UP\PLUGINS\Tools\TCUPNew\NewDir.ini

[PATH]
TCConfigFile=D:\Projekty\TC UP\TC UP\wincmd.ini
FileEditorPath=D:\Projekty\TC UP\TC UP\PLUGINS\Tools\OpenFileTC\OpenFileTC.exe
FileEditorParam=%s
DebugLogFile=D:\Projekty\TC UP\TC UP\PLUGINS\Tools\TCUPNew\NewDir.log
FileTemplates=D:\Projekty\TC UP\TC UP\PLUGINS\Tools\TCUPNew\Templates
ListTemplates=D:\Projekty\TC UP\TC UP\PLUGINS\Tools\TCUPNew\List

---

Here is a short description of UFM NewDir specification:

ULTIMATE FILE MANAGER
Copyright © 2016 - 2019 Paweł Porwisz <ultimate.file.manager@gmail.com>
All rights reserved

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.


UFM New Dir (NewDir.exe) app is a part of Ultimate File Manager project.
It allows you to create files and directories in Total Commander. It is very simple and easy to use.
Press F7 key in TC to create file or directory in source panel or press SHIFT + F7 to create it in target panel.


UFM NewDir 2.0 BETA!
- UFM NewDir can be run from Windows Explorer or Total Commander
- Support for parameters [Only in Total Commander]
- Make Action in Source TC Panel: Use F7 key (or press the button on ButtonBar)
- Make Action in Target TC Panel: Use SHIFT + F7 key
- Possibility to take name from file\directory under cursor
- Possibility to create Directories, List of Directories and Files
- Possiiblity to use PlaceHolders -> TODO!
- Directory Creation Mode
- You can Create Normal Directory
- You can Create Hidden Directory
Directory Creation Mode support the following Post-Creation Actions:
- Open Directory
- Open Newly Created Directory (parent or the last one)
- Do not Open Newly Created Directory
- Close Application
- Close App immediately after creation the directory
- Do not Close App (wait for another action)
The following types of Directories can be created:
- Simple Directory: DIRECTORY
- Multiple Parallel Directories: DIRECTORY_1|DIRECTORY_2|DIRECTORY_3
- Multiple Nested Directories: DIRECTORY_1\DIRECTORY_2\DIRECTORY_3
- Multiple Parallel\Nested Directories: DIRECTORY_1|DIRECTORY_2\DIRECTORY_2_1\DIRECTORY_2_2|DIRECTORY_3\DIRECTORY_3_1


- Directory List Creation Mode
- You can create set of directories defined in list (.txt, .lst)
Directory List Creation Mode support the following Post-Creation Actions:
- Open Directory
- Open Newly Created Directory [Only in Total Commander]
- Open Last Created Directory [Only in Windows Explorer]
- Close Application
- Close App immediately after creation the directory
- Do not Close App (wait for another action)
- Parent Directory [Only in Total Commander]
- Use Current TC Directory
- Use New Directory

Directory List Specification
- Directory List is a simple text file (.txt or .lst)
- It support empty lines and comments (use ; to comment lines)
- It support placeholders, for example: %DATE% or %TIME% -> TODO!
The following types of Directories can be created:
- Simple Directory: DIRECTORY
- Multiple Parallel Directories: DIRECTORY_1|DIRECTORY_2|DIRECTORY_3
- Multiple Nested Directories: DIRECTORY_1\DIRECTORY_2\DIRECTORY_3
- Multiple Parallel\Nested Directories: DIRECTORY_1|DIRECTORY_2\DIRECTORY_2_1\DIRECTORY_2_2|DIRECTORY_3\DIRECTORY_3_1


- File Creation Mode
- You can create a file with given extension
- Possibility to use File Templates (predefined file types (extension))
File Creation Mode support the following Post-Creation Actions:
- Open File
- Edit File in Associated Application
- Edit File in External Application [Only in Total Commander]
- Do not edit file
- Close Application
- Close App immediately after creation the file
- Do not Close App (wait for another action)

UFM NewDir Configuration File (INI):

[LANG]
Lang=1033 -> Application Language -> TODO!


[THEMES]
DarkMode=0 -> Support for Dark Mode


[MODE]
RememberModes=1 -> Remember last used mode (Directory or File)
DirMode=1 -> Current App Work Mode [0=File Mode | 1=Directory Mode]
DirOpenMode=1 -> Open Directory Mode (Total Commander) [0=Do Not Open Directory | 1=Open Directory]
DirOpenParent=1 -> Open Directory Mode (Explorer Mode) [0=Open Last Created Directory | 1=Open Parent Directory]
DirListTC=1 -> Directory List Parent Directory [0=User Defined Directory | 1=Current TC Directory]
FileEditMode=2 -> File Edit Mode [0=Edit in Associated App | 1=Edit in External App | 2=Do Not Edit]
FileTemplates=1 -> File Edit Mode Templates [0=Do Not Use Templates | 1=Use Templates]
CloseMode=1 -> App Close Mode [0=Do Not Close App | 1=Close App]
DebugMode=0 -> App Debug Mode [0=Normal Mode | 1=Debug Mode]
SaveLog=0 -> App Save Log Mode [0=Do Not Save Log | 1=Save Log]


[MISC]
AlwaysOnTop=1 -> App Always On Top [0=False | 1=True]
StayAboveTC=1 -> App Stay on Top of TC Window [0=False | 1=True]
KeepTCPosition=1 -> App Keep Position in the Center of TC Window [0=False | 1=True]
KeepListPosition=1 -> App Keep Position in the Active List of TC Window [0=False | 1=True]
KeepCenterListPosition=0 -> App Keep Position in the Center of Active List of TC Window [0=False | 1=True]
UseNamePlaceHolders=1 -> Use Advanced Name Placeholders [0=False | 1=True] - TODO!
UseAlphaBlend=0 -> App Use Alpha Blend [0=False | 1=True]
AlphaBlendValue=255 -> App Alpha Blend Value [0..255]
UseBtnMenu=1 -> App Show Buttons Menu [0=Show Menu | 1=Set Next Option]
UseBtnIcons=1 -> App Show Button Images [0=Hide Images | 1=Show Images]


[HINT]
ShowAppHints=1 -> App Show Hints [0=False | 1=True]
HintShowTime=1000 -> App Hint Show Time (ms)
HintHideTime=10000 -> App Hint Hide Time (ms)
HintBkgColor=16777215 -> App Hint Bkg Color


[PATH]
TCConfigFile=C:\Users\Pawel\Desktop\TC\CONFIG\TC.ini -> Total Commander Configuration File (Fully qualified path!)
FileEditorPath=C:\Users\Pawel\Desktop\ShellManager.exe -> External File Editor - default is UFM ShellManager (Fully qualified path!)
FileEditorParam=/OPEN_FILE %s -> External File Editor Param
DebugLogFile=C:\Users\Pawel\Desktop\BIN\NewDir\NewDir.log -> App Log File (if SaveLog option enabled) (Fully qualified path!)
FileTemplates=C:\Users\Pawel\Desktop\BIN\NewDir\Templates -> App File Templates Directory (Fully qualified path!)
ListTemplates=C:\Users\Pawel\Desktop\BIN\NewDir\List -> App Diretory List Templates Directory (Fully qualified path!)


[INTERFACE]
ShowColorFrame=1 -> Display Dir/File Frame Color [0=False | 1=True]
DirColorFrame=33023 -> Dir Frame Color
FileColorFrame=16744448 -> File Frame Color
ShowColorBkg=1 -> Display Dir/File Bkg Color [0=False | 1=True]
DirColorBkg=16376765 -> Dir Bkg Color
DirFontBkg=0 -> Dir Font Color
FileColorBkg=12254458 -> File Bkg Color
FileFontBkg=0 -> File Font Color
ShowModeDesc=1 -> Display Currrent App Work Mode Desc [0=False | 1=True]


[OUTPUT]
UseNewName=1 -> Output File/Directory New Name Mode [0=False | 1=True]
NameFormat=[N]_[C] -> App Output Dir\File Name Format [NAME]_[COUNTER]
NameStart=0 -> App Output Dir\File Name Format Start Position
NameDigits=0 -> App Output Dir\File Name Format Digits Count
NameUseBrackets=1 -> App Output Dir\File Name Format Use Brackets [0=False | 1=True]
NameBracket=[] -> App Output Dir\File Name Format Bracket Type


[HISTORY]
UseDirsHistory=1 -> App Directories Output Names History [0=False | 1=True]
LimitDirsByQuantity=1 -> Limit Directories History by Quantity [0=False | 1=True]
DirsQuantityLimit=50 -> Quantity Value of Directories History
LimitDirsByDate=1 -> Limit Directories History by Date [0=False | 1=True]
DirsDateLimit=43602 -> Date Value of Directories History [17.05.2019 = 43602]
ClearDirs=0 -> Clear Directories History [0=False | 1=True]
UseFilesHistory=1 -> App Files Output Names History [0=False | 1=True]
LimitFilesByQuantity=1 -> Limit Files History by Quantity [0=False | 1=True]
FilesQuantityLimit=50 -> Quantity Value of Files History
LimitFilesByDate=1 -> Limit Files History by Date [0=False | 1=True]
FilesDateLimit=43602 -> Date Value of Files History [17.05.2019 = 43602]
ClearFiles=0 -> Clear Files History [0=False | 1=True]

[FILE_EXT]
1=txt -> Default File Extension


---

If anyone of you have some free time and want to help to test this please download it and test it. Write in this thread comments, issues or functionality propositions.

Thanks,
-Pawel
2019-05-17 10:24:55
Find all posts by this user Quote this message in a reply
Post Reply 




Contact Us | TC UP - Total Commander Ultima Prime | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication