| View previous topic :: View next topic |
| Author |
Message |
Boofo Power Member


Joined: 10 Feb 2003 Posts: 1431 Location: Des Moines, IA (USA)
|
Posted: Mon Oct 12, 2009 1:58 pm Post subject: |
|
|
Read my edited post above.  _________________ chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license |
|
| Back to top |
|
 |
MVV Power Member


Joined: 03 Aug 2008 Posts: 4535 Location: Russian Federation
|
|
| Back to top |
|
 |
MVV Power Member


Joined: 03 Aug 2008 Posts: 4535 Location: Russian Federation
|
|
| Back to top |
|
 |
MVV Power Member


Joined: 03 Aug 2008 Posts: 4535 Location: Russian Federation
|
|
| Back to top |
|
 |
VSB Junior Member

Joined: 12 Dec 2006 Posts: 72 Location: Russia
|
Posted: Wed Jul 21, 2010 3:56 pm Post subject: |
|
|
2MVV
Now, I'm writin packer plugin for creating Symboilic Links, HardLibks and Junctions |
|
| Back to top |
|
 |
MVV Power Member


Joined: 03 Aug 2008 Posts: 4535 Location: Russian Federation
|
|
| Back to top |
|
 |
VSB Junior Member

Joined: 12 Dec 2006 Posts: 72 Location: Russia
|
Posted: Thu Jul 22, 2010 1:24 pm Post subject: |
|
|
It will be ONLY Unicode, because UNC (\\?\c:\...) paths can be only in Unicode, and I'm writing with support of real long NTFS path (above 32000 characters).
Although, I don't want write/use tool, i suppose that plugin will be more useful for TC users.
And I'm planning to publish source after initial (main features) stage of development finish.
But I don't decided yet, what public license I should use. May be you can advice me& |
|
| Back to top |
|
 |
MVV Power Member


Joined: 03 Aug 2008 Posts: 4535 Location: Russian Federation
|
Posted: Thu Jul 22, 2010 1:57 pm Post subject: |
|
|
I have no experience in comparing public licenses.
I can say where separate tool is more comfortable than packer plugin. To use tool we need to:
1. Select files/folders.
2. Press hotkey/buttonbar button.
3. Set options.
4. Start process.
To use packer plugin we need to:
1. Select files/folders.
2. Press Alt+F5/buttonbar button.
2a. Choose right plugin.
3. Set options.
4. Start process.
E.g. if I have a lot of additional plugins, I need to find corresponding plugin in drop-down list.
Or if I use some plugin frequently, TC keeps it as last used, but if there are more than one frequently used plugins, I need to choose right one from list every time I need to pack something.
BTW don't forget that creating symbolic links requires elevation! So if you're using separate tool, it may restart itself in elevated mode. But if it is written as plugin, it can't. _________________ VirtualPanel plugin: Temporary panel for TC (forum)
TOTALCMD.NET: TCFS2, NTLinks, CopyTree, AskParam, ConPaste, Sudo… |
|
| Back to top |
|
 |
VSB Junior Member

Joined: 12 Dec 2006 Posts: 72 Location: Russia
|
Posted: Thu Jul 22, 2010 2:34 pm Post subject: |
|
|
About About admin rights:
I'm thinking about COM Elevation Moniker
But I don't know how to implement all this(( |
|
| Back to top |
|
 |
MVV Power Member


Joined: 03 Aug 2008 Posts: 4535 Location: Russian Federation
|
|
| Back to top |
|
 |
VSB Junior Member

Joined: 12 Dec 2006 Posts: 72 Location: Russia
|
Posted: Fri Jul 23, 2010 2:15 am Post subject: |
|
|
But not so interesting.
It's just nothing to do here and now and I want to improve my C++ experience |
|
| Back to top |
|
 |
Balderstrom Power Member


Joined: 11 Oct 2005 Posts: 2024
|
Posted: Thu Oct 07, 2010 7:23 pm Post subject: |
|
|
This may be a bug with Junction itself, but
NTLinks is indicates that the following the following Junction:
| Quote: | Junction: X:\_AUDIO_\_ARTIST_\Warlock ( Doro )\1984_Burning The Witches
Points2 : X:\_AUDIO_\_ARTIST_\Warlock ( Doro )\1984_Burning The Witches
Actual1 : X:\U\Admin\Documents\Music\Warlock\1984_Burning The Witches
VALID: Yes |
Now Sysinternals Junction.exe indicates that: | Quote: | Junction: \\?\X:\_AUDIO_\_ARTIST_\Warlock ( Doro )\1984_Burning The Witches
Points2 : X:\_AUDIO_\_ARTIST_\Warlock ( Doro )\1984_Burning The Witches |
The junction is really invalid, as it USED to go to Actual1, but that path no longer exists. |
|
| Back to top |
|
 |
MVV Power Member


Joined: 03 Aug 2008 Posts: 4535 Location: Russian Federation
|
Posted: Fri Oct 08, 2010 2:49 am Post subject: |
|
|
Hm-m. Interesting. NTLinks calls GetFileAttributes to check if target is valid. And it asks Windows about reparse point target every time, it doesn't use any cache. So it tells Yes when Windows returns valud attributes for target.
As I see, you have a junction that points to itself. Am I right? How did you get such junction? And it is interesting how junction that points to itself can have another actual path...
Maybe you know how to reproduce this? _________________ VirtualPanel plugin: Temporary panel for TC (forum)
TOTALCMD.NET: TCFS2, NTLinks, CopyTree, AskParam, ConPaste, Sudo… |
|
| Back to top |
|
 |
Balderstrom Power Member


Joined: 11 Oct 2005 Posts: 2024
|
Posted: Fri Oct 08, 2010 3:00 am Post subject: |
|
|
It doesn't point to itself (or rather, I should say I didn't MAKE it point to itself). Before I deleted the old path, "X:\U\Admin\..." it used to point there.
I did an OS reinstall, the drive letters changed - that may of had something to do with it. I put the drive letters back afterwards, but that path was removed.
I'm not sure if it's reproduceable by just creating a junction, removing the path it points to and rebooting or not.
I have 4 such junctions in that particular folder as they all previously pointed to X:\U\Admin
Would just be nice if NTLinks could return invalid if where a junction points to is == itself
And here's one other of the group:
Where actual and points to are even the same heh. | Quote: | in _ARTIST_\Warlock ( Doro )\
1985_HellBound
Poinst2 --> X:\_Audio_\_ARTIST_\Warlock ( Doro )\1985_Hellbound
Valid: Yes
Actual1: --> X:\_Audio_\_ARTIST_\Warlock ( Doro )\1985_Hellbound |
Last edited by Balderstrom on Fri Oct 08, 2010 3:19 am; edited 1 time in total |
|
| Back to top |
|
 |
MVV Power Member


Joined: 03 Aug 2008 Posts: 4535 Location: Russian Federation
|
Posted: Fri Oct 08, 2010 3:16 am Post subject: |
|
|
| Balderstrom wrote: | | It appears from what I have seen over the last while, when you delete the path that a junction points to, the junction will no longer point there. It will now point to itself. and attempts to parse it will return a valid path, but wont go anywhere. | When you delete target folder, junction is still points to that folder, but you can't enter it since it is invalid. Its target is not changed to its own path in such case until someone change it.
| Balderstrom wrote: | Would just be nice if NTLinks could return invalid if where a junction points to is == itself  | Problem is that recursions won't be resolved here. E.g. you have junction 1 that points to junction 2 that points to junction 1 (or even more levels). To check if junction is valid you need to retrieve actual path - but it is not so quick procedure (it uses a loop that checks every name in path). RP_Valid field returns Yes when target folder exists - in your case it really exists. Maybe you need some other field here - 'points to itself'.
| Quote: | And here's one other of the group:
Where actual and points to are even the same heh. | BTW every usual junction has same actual path and target - if it doesn't point to folder that is inside of other reparse point.
But I don't know who changed theese junctions so they now point to themselves... _________________ VirtualPanel plugin: Temporary panel for TC (forum)
TOTALCMD.NET: TCFS2, NTLinks, CopyTree, AskParam, ConPaste, Sudo… |
|
| Back to top |
|
 |
|
|
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 vote in polls in this forum
|
|