ZTree.com  | ZEN  | About...  

 Index   Back

Clarify Long Pathname 'support'   [Help!]

By: Tim Mongeon       
Date: May 25,2020 at 05:16
In Response to: Clarify Long Pathname 'support' (Kim Henkel)

> > I should state that I can copy and move to long paths using Ztree
> but
> > cannot open files. So this seems strange.
> Is your problem primarily (or only) with the Open command?
> Does it happen with all file types?
> FYI, I took one of your examples, but made it a .txt, and Open happily
> launched Notepad with the file loaded.
> \Control Panel (Specific to)
> \User Profiles, Documents & Settings, etc
> \Microsoft Accounts
> \Trusted Devices
> \How 'Trusted Devices' Work on Windows 10 (and Why You No Longer
> Need to 'Trust This PC')
> \084658_How 'Trusted Devices' Work on Windows 10 (and Why You No
> Longer Need to 'Trust This PC').txt

For those who are really interested in my process - here are the details (I have to write everything down or I forget how to do it) - although this info is from 2015 (I have modified it somewhat since then), the basic process is the same,

1. In Ztree set to split (F8) with left side set to directory C:\Users\Tim\Documents
and the right side set to Drive H (data drive).
a. Set the sort to date and time (places all of the files in the order in which they
were created).
1. Press Alt-S + D
a. The right side of the Data drive contains all of the folders you will be
sorting items into:

Records Folders
Research Folders
Freeware and Freeware in Use Folders
Restore Settings Folders
Windows 10 Current Builds Folders
Windows 10 Recovery Options Folders
Windows 7 Current Builds
New 2015 November (backed up on physical drive E)

Other folders as required

b. The left side will contain the items that require sorting (normally on C
1. These consists of captured webpages (using tools like Firefox extensions
including, PageSaver Pro, FireShot Pro, and ScreenGrab and the program,
FastStone Capture) as well as downloaded files and utilities.
2. These are found in several directories:

H:\1_files\down them al\

2. Working on the left side, sort the files into the appropriate directories on the
a. Look at each item on the left to determine where it needs to be sorted.
1. You may be able to easily tell where the file needs to go just from the
file name:

115243_How to Uninstall Windows 10 and Downgrade to Windows 7 or 8.1.png

This example will be sorted to the directory:

H:\Windows 10 Recovery Options\8. Restore back to Windows 7 Pro\

2. Sometimes more information may be required. You will need to open the
image file and read its contents (remember that the image file is a
saved web page that contains text).
a. From within Ztree, highlight the file and use the 'O' to open the file
into Xnview (Xnview is set as the default image viewer under Windows).
b. Read through the file as required.
3. Once you know which directory, locating it may not always be easy. You may
need to search for a particular directory if you can't locate it on H.
a. Use the program Everything to search for the folder (set Everything to
look at Folders only):
b. I use Zree macros to do the sorting.
1. Assumes the macros are already in Ztree's History, if not see box.
2. Tag all of the files (press 'T' on each file name within Ztree) that
will be copied over to this particular directory. It could be one or
more than one.
3. Run the Prep Macro.
a. What prep does is to place the filename into the RENAME editing mode. First
it removes all the extraneous characters from the file name - this would
include the characters at the beginning that are assigned to make the filename
unique and the filename extension at the end.


115243_How to Uninstall Windows 10 and Downgrade to Windows 7 or 8.1.png


How to Uninstall Windows 10 and Downgrade to Windows 7 or 8.1

b. Second it copies this new string into the clipboard.
1. If you need to perform additional editing of the filename, this can be done
while still in the field but you will need to manually copy the changed name
into the clipboard by using the End or Home key in conjunction with the
Shift key to highlight the entire field when done and Ctrl-C to copy the new
string into the clipboard. However additionally editing will seldom be
required and the macro will save you plenty of time and hand movement.

c. Press Esc to exit the RENAME editing mode.

4. Run the FilesCopy Macro.
a. What the FilesCopy Macro does is to take all of the files you've tagged and
move them to the directory on the right side of Ztree's Split screen (the
target directory must be highlighted) and use the string you've copied to the
clipboard as the directory name thus creating a reference entry for a specific
item of information.

The File,

115243_How to Uninstall Windows 10 and Downgrade to Windows 7 or 8.1.png

is moved to the directory,

H:\Windows 10 Recovery Options\8. Restore back to Windows 7 Pro
\How to Uninstall Windows 10 and Downgrade to Windows 7 or 8.1

Faster Method of Sorting Files – Use Subst command.

Currently I have the following directories I have to open, switch between, etc:

C: Drive
1. C:\Users\Tim\Documents\ *
2. C:\Users\Tim\Downloads\
3. C:\Self-Contained\

H: Drive
1. H:\1_files\down them al\ (and the repository subdirectories) *
2. H:\Freeware\ *
3. H:\Freeware in use\ *
4. H:\New 2015 November (backed up on physical drive E)\ *
5. H:\Records - All others\
6. H:\Records - Medical and Insurance\
7. H:\Records - Product Manuals\
9. H:\Research (general)\
10. H:\Research (Processes, Dlls, Services, etc)\
11. H:\Research (Programs or Devices)\ *
12. H:\Research (Virus and Malware)\
13. H:\Windows 10 Recovery Options\
14. H:\Restore 2016 Settings\

.. and there are others that are accessed very seldom

* Accessed very frequently

Having Ztree split set to drive C on one side and H on the other is certainly a help but with so many directories that have to be accessed on H, I find I spend too much time scrolling down directory lists, opening directories, closing directories, etc. To minimize this, I use the Subst command (or more specifically the Visual Subst utility - see document ‘Programs and Purpose I use Them 2016’). Subst most often used locations and then just use Ztree to switch between the virtual drives.

Subst – substitutes a drive letter for a directory location (In Ztree MUST use ‘Run as Admin’)


To Set:
i.e. r: h:\research

To Remove:
/D (case sensitive) i.e. r: /D

Each Subst(ituted) drive is a virtual drive. This can also solve the problem of opening files from the Research directories because the file path is too long (I set Windows 10 to allow long paths but Ztree does not support it).

Okay - so that is the majority of it, Kim and any other interested parties. I hope you understand what I am looking for. -as I explained in the message previous to this - it is the opening of said LFN files that is the problem.


Messages in this Thread

95,040 Postings in 11,980 Threads, 349 registered users, 32 users online (1 registered, 31 guests)
Index | Admin contact |   Forum Time: Jul 6, 2020 - 12:53 pm EDT  |  Hits:31,975,404  (11,397 Today )
RSS Feed