[WFX] VirtualPanel: Temporary panel for TC

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I can't add such flag because files may have only name, real name and attributes. Where can I remember such flag? TC doesn't allow to have security permissions in FS plugins.

Well, maybe I may change it so VP won't rename script files with read-only attribute. So you create script file and set read-only attribute.

But I don't know how to tell about it to user - what should TC do? Show write error message (in this case user will be noticed why rename failed) or just do nothing (in this case user will guess why file isn't moved)? Also, file won't be moved 'cause rename and move are the same operation. In other words, it acts ugly... :?
User avatar
ehab
Senior Member
Senior Member
Posts: 271
Joined: 2007-10-29, 07:41 UTC
Location: Libya

Post by *ehab »

i c what you mean, it opens plenty of other doors. Thanks for the reply.
#181344 Personal licence
betatester
Junior Member
Junior Member
Posts: 16
Joined: 2007-11-18, 11:31 UTC

Detecting 'added files'

Post by *betatester »

After I've been using 'File Redirector' for a long time, the switch to Windows 7 made this program useless.

So I've found this thread and am impressed with this program. It is also nice that it is in full development.

This program is a very good replacement but I still miss one thing compared to 'File Redirector'. When you add files in the actual folders this is not reflected in the virtual folders. Did I miss this option or is it just not present?
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

2betatester
Use the <put command (see detail in readme).
Single user license #329241
PowerPro scripts for Total Commander
betatester
Junior Member
Junior Member
Posts: 16
Joined: 2007-11-18, 11:31 UTC

Post by *betatester »

Vochomurka wrote:2betatester
Use the <put command (see detail in readme).
That's not a very good solution for my situation.

I use this program for collecting music albums top 500 and top 1000 lists.
All these actual directories are scattered all over my several harddisks.

This means that I have to give thousands of put commands where I also have to know all the thousands of actual locations.
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

You can collect all paths (for example, using Find Files and then Feed to listbox) in one text file, and then easily convert them to a Virtual Panel script in any text editor by global replace operations. You also can include external lists in the script code (the "load" command).
Single user license #329241
PowerPro scripts for Total Commander
betatester
Junior Member
Junior Member
Posts: 16
Joined: 2007-11-18, 11:31 UTC

Post by *betatester »

You can't feed to listbox from within Virtual Panel.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Detecting 'added files'

Post by *MVV »

betatester wrote:This program is a very good replacement but I still miss one thing compared to 'File Redirector'. When you add files in the actual folders this is not reflected in the virtual folders. Did I miss this option or is it just not present?
Hello!

You may use <add command to create folder link that will show actual folder contents every time you enter it (and all changes within this folder will be made for actual folder) - if you want to see exact folder contents.

Also you may use <put command in auto-executed script (i.e. script will refresh folder contents when you enter it) - if you want to see a lot of mp3 from different places in one folder. In this case you should create script that will contain some put commands that will add to this folder files from wanted physical folders or even m3u files. Script may have following contents:

Code: Select all

<del *.mp3<put /al . D:\Music\*.m3u<put /a F:\Music\Rammstein\*.mp3
All you need in this case - to create such script and to give for it same name as in AutoUpdateName parameter of INI (also you need to set some bits of EnableAutoScripts parameter to enable auto scripts).
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

betatester wrote:You can't feed to listbox from within Virtual Panel.
But you can feed paths with mp3 from your physical places. Then you need just to make list file (with paths and masks) and load this file using <put command.

E.g. list file D:\Music\vp_list.lst:

Code: Select all

D:\Music\Rammstein\*.mp3
D:\Music\Scorpions\*.mp3
...
And corresponding put command:

Code: Select all

<put /al . D:\Music\vp_list.lst
So you may choose how to do - some <put commands for different folders or lists or single put command for special list file.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2MVV
1. I am not sure it wasn't mentioned here but when I use Shift+F4* in VP panel TC goes all blank (complete freeze). Is it something you can fix or i's out of FS plugin range?

2. Please add "Execute command" item in plugin's root for people who have comand line switched off (like myself through RestrictInterface setting).

3. I think that placing all settings on separate tab (with Apply button) would be definitely better than keeping them hidden in combobox.

*) Create new text file and load into editor.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
betatester
Junior Member
Junior Member
Posts: 16
Joined: 2007-11-18, 11:31 UTC

Post by *betatester »

MVV wrote:
betatester wrote:You can't feed to listbox from within Virtual Panel.
But you can feed paths with mp3 from your physical places. Then you need just to make list file (with paths and masks) and load this file using <put command.

E.g. list file D:\Music\vp_list.lst:

Code: Select all

D:\Music\Rammstein\*.mp3
D:\Music\Scorpions\*.mp3
...
And corresponding put command:

Code: Select all

<put /al . D:\Music\vp_list.lst
So you may choose how to do - some <put commands for different folders or lists or single put command for special list file.
That's not a workable situation with thousands of source directories scattered over 4 harddisk where the virtual holding folder changes each year.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

fenix_productions wrote:2MVV
1. I am not sure it wasn't mentioned here but when I use Shift+F4* in VP panel TC goes all blank (complete freeze). Is it something you can fix or i's out of FS plugin range?

2. Please add "Execute command" item in plugin's root for people who have comand line switched off (like myself through RestrictInterface setting).

3. I think that placing all settings on separate tab (with Apply button) would be definitely better than keeping them hidden in combobox.
1. For me it doesn't freeze TC (maybe for some seconds if current folder is write-protected but TC shows error message then).
I'm not recommend to use Shift+F4 because TC will create file in some unexpected folder (that is current in this TC panel but in physical drive) - I've suggested to fix it in suggestion E here but I don't know if and when it will be fixed. Anyway, I think TC can't edit files in FS folders since such files have no real path (only if TC will extract file to temp folder and get it back after closing editor). Even in VP not every folder have physical analog (only folders created using <add command).

2. You always may jump to command line using Shift+Right shortcut even if you switched command line off. Also, since commands may use current directory it isn't so convenient to start them from root always

3. Currently three Windows controls allow to set all parameters but on separate tab they will require much more controls and code to process them.



Hm-m, I didn't know that FR may update folder contents automatically. As I see, it remembers folder path if folder contains files (for empty folders it can't). :!:


betatester wrote:That's not a workable situation with thousands of source directories scattered over 4 harddisk where the virtual holding folder changes each year.
Maybe you need to describe situation better. But according to FR mention I may guess that you want to see real contents of folders. You need to add theese folders using <add command - in this case your folders will mirror physical folders. I'll try to show how to add theese folders quickly.
First of all, make text file with dir list (e.g. search for folders with mp3 files and no subfolders):

Code: Select all

D:\Music\ABBA\
D:\Music\Roxette\
...
Next, using text editor (I'm using EmEditor) replace with RegEx ".*\\(.*)\" with "00000010\t00000000 00000000\t\\Music\\\1\t\0" (w/o quotes) - you will get state file music.lst for VP:

Code: Select all

00000010	00000000 00000000	\Music\ABBA	D:\Music\ABBA\
00000010	00000000 00000000	\Music\Roxette	D:\Music\Roxette\
...
Last step, create folder \Music in VP and use command:

Code: Select all

<load "<path_to_created_state_file>" \
This will add folder links to all your music folders into \Music folder of VP.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

MVV wrote: 2. You always may jump to command line using Shift+Right shortcut even if you switched command line off. Also, since commands may use current directory it isn't so convenient to start them from root always
It works only if you hide it ([Layout] -> CmdLine=0) and not disable ([Configuration] -> RestrictInterface=2).
MVV wrote: 3. Currently three Windows controls allow to set all parameters but on separate tab they will require much more controls and code to process them.
I understand that current solution was easier to implement but it makes it less user-friendly IMHO.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

OK, I missed RestrictInterface option. Currently it is possible to ask parameters for all commands if they contain just '?' character, but for <exec command it doesn't work yet, I will add this feature. While added, simple script with text "<exec ?" will satisfy your wish.



VirtualPanel 1.0.0.510 (changes since 1.0.0.505): 8)
+ new operator "like" for <ifcond command allows to check if filename matches mask
* reread source call after operations removed
* read-only files delete mode bug
* bad parameters for info box format function (in 1.0.0.505)

Also added example of command that deletes all files except scripts and *.mp3 and *.m3u in current directory (using new operator like):

Code: Select all

<for %f . * { <ifcond { !script && !like "*.mp3" && !like "*.m3u" @ %f } { <del "%f" } }
Last edited by MVV on 2010-03-14, 15:21 UTC, edited 2 times in total.
betatester
Junior Member
Junior Member
Posts: 16
Joined: 2007-11-18, 11:31 UTC

Post by *betatester »

MVV wrote:
betatester wrote:That's not a workable situation with thousands of source directories scattered over 4 harddisk where the virtual holding folder changes each year.
Maybe you need to describe situation better. But according to FR mention I may guess that you want to see real contents of folders. You need to add theese folders using <add command - in this case your folders will mirror physical folders. I'll try to show how to add theese folders quickly.
First of all, make text file with dir list (e.g. search for folders with mp3 files and no subfolders):

Code: Select all

D:\Music\ABBA\
D:\Music\Roxette\
...
Next, using text editor (I'm using EmEditor) replace with RegEx ".*\\(.*)\" with "00000010\t00000000 00000000\t\\Music\\\1\t\0" (w/o quotes) - you will get state file music.lst for VP:

Code: Select all

00000010	00000000 00000000	\Music\ABBA	D:\Music\ABBA\
00000010	00000000 00000000	\Music\Roxette	D:\Music\Roxette\
...
Last step, create folder \Music in VP and use command:

Code: Select all

<load "<path_to_created_state_file>" \
This will add folder links to all your music folders into \Music folder of VP.
It's not a link to all folders of an artist

My virtual folder structure will look something like this

Code: Select all

- 0001-U2-1987-The Joshua Tree
  - 1987 - The Joshua Tree (MFSL)
    - (music files)
- 0002-Guns 'n Roses-1991-Use Your Illusion 1
  - 1991 - Use Your Illusion I
    - (music files)
- 0003-Dire Straits-1985-Brothers In Arms
  - 1985 - Brothers In Arms
    - (music files)
- 0004-Metallica-1991-Metallica
  - 1991 - Metallica (The Black Album)
    - (music files)
- 0005-Pink Floyd-1973-Dark Side Of The Moon
  - 1973 - Dark Side Of The Moon
    - (music files)
  - 1973 - Dark Side Of The Moon (1992 Remaster)
    - (music files)
- 0006-Michael Jackson-1982-Thriller
  - 1982 - Thriller (2008 25th Anniversary Edition)
    - (music files)
- 0007-Beatles-1967-Sgt Pepper's Lonely Hearts Club Band
  - 1967 - Sgt. Pepper's Lonely Hearts Club Band (2009 Mono Remastered)
    - (music files)
  - 1967 - Sgt. Pepper's Lonely Hearts Club Band (2009 Stereo Remastered)
    - (music files)
The folders

Code: Select all

- 0001-U2-1987-The Joshua Tree
- 0002-Guns 'n Roses-1991-Use Your Illusion 1
- 0003-Dire Straits-1985-Brothers In Arms
- 0004-Metallica-1991-Metallica
- 0005-Pink Floyd-1973-Dark Side Of The Moon
- 0006-Michael Jackson-1982-Thriller
- 0007-Beatles-1967-Sgt Pepper's Lonely Hearts Club Band
are all folders with no reference to actual folders.

The folders

Code: Select all

  - 1987 - The Joshua Tree (MFSL)
  - 1991 - Use Your Illusion I
  - 1985 - Brothers In Arms
  - 1991 - Metallica (The Black Album)
  - 1973 - Dark Side Of The Moon
  - 1973 - Dark Side Of The Moon (1992 Remaster)
  - 1982 - Thriller (2008 25th Anniversary Edition)
  - 1967 - Sgt. Pepper's Lonely Hearts Club Band (2009 Mono Remastered)
  - 1967 - Sgt. Pepper's Lonely Hearts Club Band (2009 Stereo Remastered)
with their music files refer to several different locations on several harddisks.

Making a list of all these folders (over 3500) and their corresponding virtual folders is almost a monk task
Post Reply