Page 7 of 8

Re: Way to make script symlinks from inside xyplorer

Posted: 28 Oct 2015 14:07
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...

Re: Way to make script symlinks from inside xyplorer

Posted: 28 Oct 2015 14:10
by CookieMonster
The command doesn't show anything about association and visually seeing, only how to http://commandwindows.com/fsutil.htm create a hardlink ?

Re: Way to make script symlinks from inside xyplorer

Posted: 28 Oct 2015 14:12
by highend
Not? Interesting. So why am I able to let fsutil show me the hardlink destinations for a file?

Re: Way to make script symlinks from inside xyplorer

Posted: 28 Oct 2015 14:14
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 ?

Re: Way to make script symlinks from inside xyplorer

Posted: 28 Oct 2015 14:23
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"...

Re: Way to make script symlinks from inside xyplorer

Posted: 28 Oct 2015 15:30
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 ?

Re: Way to make script symlinks from inside xyplorer

Posted: 28 Oct 2015 15:37
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...

Re: Way to make script symlinks from inside xyplorer

Posted: 28 Oct 2015 15:42
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.

Re: Way to make script symlinks from inside xyplorer

Posted: 29 Oct 2015 01:23
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 ?

Re: Way to make script symlinks from inside xyplorer

Posted: 29 Oct 2015 05:08
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.

Re: Way to make script symlinks from inside xyplorer

Posted: 25 May 2022 23:24
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.

Re: Way to make script symlinks from inside xyplorer

Posted: 27 May 2022 22:51
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 223 times

Re: Way to make script symlinks from inside xyplorer

Posted: 28 May 2022 09:20
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.

Re: Way to make script symlinks from inside xyplorer

Posted: 01 Jul 2022 23:11
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?

Re: Way to make script symlinks from inside xyplorer

Posted: 02 Jul 2022 10:24
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...