OT: Deleting Junctions

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
admin
Site Admin
Posts: 67229
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: OT: Deleting Junctions

Post by admin »

What if you delete a folder with one or more junctions somewhere deep down in some subfolders? Am I supposed to scan the whole delete job searching for junctions? I don't think so.

eil
Posts: 1919
Joined: 13 Jan 2011 19:44

Re: OT: Deleting Junctions

Post by eil »

actually, such algorithm could be useful. :roll:
i'm wondering about making the "Smart Delete" scripting button, which would check(recursively) for junctions/tags(comments,labels)/any special file attributes = doesn't matter if it's much longer than ordinary Delete, when it's much safer. :wink: but my scripting skills are still too bad for such "big feature", so this idea remains for future. :cry:
Win 7 SP1 x64 100% 1366x768|1900x1080

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: OT: Deleting Junctions

Post by PeterH »

admin wrote:What if you delete a folder with one or more junctions somewhere deep down in some subfolders? Am I supposed to scan the whole delete job searching for junctions? I don't think so.
What should I say? It's a good example...

Either XY does it by program logic, I do it manually, (as you said: for all subfolders, maybe some hours,) or I lose data.

What would you say is best?

(Very bad that it's only on WXP - but you might disable the test if non-XP.)
(OK: good, that Vista/7 don't have that bug problem :P )

admin
Site Admin
Posts: 67229
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: OT: Deleting Junctions

Post by admin »

Junctions are not as prolific in XP as in Vista. Most users will never use them.

I'll make a note about this, but with low prio.

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: OT: Deleting Junctions

Post by PeterH »

OK: I would like to automate this (for some special case...)

But: "Junction/Delete Junction" seems not to be available for scripting?
At least I didn't find it...

Could this be made available as a command?

Nuno
Posts: 109
Joined: 12 Sep 2008 22:19
Location: Portugal

Re: OT: Deleting Junctions

Post by Nuno »

Hi!
I tried to delete a junction using XYplorer context menu and the link didn't get removed (bug?).
The junction was originally created using Paste Special -> Paste as Junction.
I managed to delete it safely by firstly renaming the target folder. That way the contents didn't get removed as well.

admin
Site Admin
Posts: 67229
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: OT: Deleting Junctions

Post by admin »

Which OS?

Nuno
Posts: 109
Joined: 12 Sep 2008 22:19
Location: Portugal

Re: OT: Deleting Junctions

Post by Nuno »

admin wrote:Which OS?
:oops: Sorry...
I'm using Win7x64 Ultimate.

admin
Site Admin
Posts: 67229
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: OT: Deleting Junctions

Post by admin »

Confirmed, it does not work. :shock: Thanks...

Nuno
Posts: 109
Joined: 12 Sep 2008 22:19
Location: Portugal

Re: OT: Deleting Junctions

Post by Nuno »

:) I'm glad I could help!

admin
Site Admin
Posts: 67229
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: OT: Deleting Junctions

Post by admin »

I assume this was on a special folder path (eg. "Desktop\...")? I could reproduce it there.

Nuno
Posts: 109
Joined: 12 Sep 2008 22:19
Location: Portugal

Re: OT: Deleting Junctions

Post by Nuno »

I guess so. It was inside the special folder box.com "Box Sync" places in My Documents.

admin
Site Admin
Posts: 67229
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: OT: Deleting Junctions

Post by admin »

Yep. Fix comes.

danman
Posts: 20
Joined: 03 Sep 2013 05:27

Re: OT: Deleting Junctions

Post by danman »

I give up. What the heck is a junction point?

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: OT: Deleting Junctions

Post by j_c_hallgren »

danman wrote:I give up. What the heck is a junction point?
How about looking here: http://en.wikipedia.org/wiki/Junction_point
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

Post Reply