Way to make script symlinks from inside xyplorer

Features wanted...
CookieMonster

Re: Way to make script symlinks from inside xyplorer

Post by CookieMonster »

Yes really, including a Microsoft Engineer.
highend wrote:Really? I suggest those people should read a bit more about fsutil.exe before they claim such things...

CookieMonster

Re: Way to make script symlinks from inside xyplorer

Post by CookieMonster »

The command doesn't show anything about association and visually seeing, only how to http://commandwindows.com/fsutil.htm create a hardlink ?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Way to make script symlinks from inside xyplorer

Post by highend »

Not? Interesting. So why am I able to let fsutil show me the hardlink destinations for a file?
One of my scripts helped you out? Please donate via Paypal

CookieMonster

Re: Way to make script symlinks from inside xyplorer

Post by CookieMonster »

highend wrote:Not? Interesting. So why am I able to let fsutil show me the hardlink destinations for a file?
Can fsutil do visual color representation in Windows Explorer ?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Way to make script symlinks from inside xyplorer

Post by highend »

Can fsutil do visual color representation in Windows Explorer ?
What? This is the XY forum...

I quote something from the _last page_:
Quote:
I assume there is no way for XY to list where the hard link location is related to ?

Correct. Although this could be done with a custom column, a script, and a command line tool. Google knows more about such tools...
And, uhhh, exactly this IS POSSIBLE^^

And please, post the name of this "Microsoft Engineer"...
One of my scripts helped you out? Please donate via Paypal

CookieMonster

Re: Way to make script symlinks from inside xyplorer

Post by CookieMonster »

highend wrote:
Can fsutil do visual color representation in Windows Explorer ?
What? This is the XY forum...

I quote something from the _last page_:
Quote:
I assume there is no way for XY to list where the hard link location is related to ?

Correct. Although this could be done with a custom column, a script, and a command line tool. Google knows more about such tools...
And, uhhh, exactly this IS POSSIBLE^^

And please, post the name of this "Microsoft Engineer"...
What was the command you used with fsutil to see a hardlink destination to a file ? I understand now, since I know of the tool, to which with the help of this tool you can have a custom column that will or can run a script to execute fsutil so that one can see a visual representation of hardlinks within XY, correct ? And if so, do you know if such scripts exist ?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Way to make script symlinks from inside xyplorer

Post by highend »

fsutil has an inbuild help file. May I suggest that you read it this time?

A script for a custom column? I've posted at least a dozen. Basic scripting, a few lines of code. You can do that.

I'm still waiting for the name of the Microsoft engineer that told you that's not possible to show hardlinks...
One of my scripts helped you out? Please donate via Paypal

CookieMonster

Re: Way to make script symlinks from inside xyplorer

Post by CookieMonster »

highend wrote:I'm still waiting for the name of the Microsoft engineer that told you that's not possible to show hardlinks...
Rather who didn't know the answer; Karthicka_R, then I was directed elsewhere to which I was informed that my question, may be related to Internet Explorer and that I'd need to build a presentation.

CookieMonster

Re: Way to make script symlinks from inside xyplorer

Post by CookieMonster »

Can you not, with fsutil, search a entire drive for all hardlinks, I tried this command with no success; maybe too many flags ?

Code: Select all

fsutil hardlink list fsinfo driveType C:\ hardlink
highend - Have any keywords to search for such scripts you created, I've searched and don't see your name in any of the threads ?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Way to make script symlinks from inside xyplorer

Post by highend »

http://www.xyplorer.com/xyfc/search.php ... mit=Search

How to Configure Extra Column
Custom column property: "minutes"
Latitude and Longitude
Display NTFS permissions list with option to print & export
etc.
One of my scripts helped you out? Please donate via Paypal

3QQPcr
Posts: 50
Joined: 01 Feb 2022 04:52

Re: Way to make script symlinks from inside xyplorer

Post by 3QQPcr »

highend wrote: 01 Jul 2015 18:22 No need for admin rights for normal symlinks:

Code: Select all

    $vbsFile = "%TEMP%\~CreateSymlink.vbs";
    $baseName = getpathcomponent("<curitem>", "base");
    $cscript = ("%osbitness%" == 64) ? "%windir%\System32\cscript.exe" : "%windir%\SysWOW64\cscript.exe";

    $vbsContent = <<<>>>
set WshShell = WScript.CreateObject("WScript.Shell")
set oShellLink = WshShell.CreateShortcut("<curpath>\$baseName.lnk")
oShellLink.TargetPath = "<curitem>"
oShellLink.WindowStyle = 11
oShellLink.IconLocation = "<curitem>"
oShellLink.Description = "$baseName"
oShellLink.WorkingDirectory = "<curpath>"
oShellLink.Save
>>>;

    if (exists("<curitem>") == 1) {
        writefile($vbsFile, $vbsContent);
        run """$cscript"" ""$vbsFile"" /nologo", , 1, 0;
        delete 0, 0, $vbsFile;
    }
Anyone know if there's a similar solution that will allow creation of symlink'd directories and not just files?
I tried the script highend posted but it seems to only work on files, not directories.

mazot
Posts: 42
Joined: 20 Apr 2020 23:19

Re: Way to make script symlinks from inside xyplorer

Post by mazot »

here is a copy of highends script with adjustments for folders.
there are 2 versions at end of script just in case you want to try something different in future.
symlinkFolder.xys
(960 Bytes) Downloaded 80 times

3QQPcr
Posts: 50
Joined: 01 Feb 2022 04:52

Re: Way to make script symlinks from inside xyplorer

Post by 3QQPcr »

mazot wrote: 27 May 2022 22:51 here is a copy of highends script with adjustments for folders.
Awesome, thank you very much for taking the time to help me.
Hopefully this will benefit others too.

3QQPcr
Posts: 50
Joined: 01 Feb 2022 04:52

Re: Way to make script symlinks from inside xyplorer

Post by 3QQPcr »

mazot wrote: 27 May 2022 22:51 here is a copy of highends script with adjustments for folders.
there are 2 versions at end of script just in case you want to try something different in future.
symlinkFolder.xys
After some experimentation, this solution seems to generate a different type of directory symlink than the type https://schinagl.priv.at/nt/hardlinkshe ... nsion.html generates.
The script you posted seems to create a shortcut/symlink with a .lnk extension that upon removal seems to no longer be recognized.

The directory symlinks LSE creates do not seem to be dependent on an .lnk extension.
Does anyone know if it's possible to generate directory symlinks via XYplorer script in the manor LSE does?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Way to make script symlinks from inside xyplorer

Post by highend »

XY can create junctions (if that's what you're referring to) via the script command new()

XY needs to be started with admin permissions for that

Otherwise use a script that writes out a .bat file with self elevation that uses mklink to create it...
One of my scripts helped you out? Please donate via Paypal

Post Reply