PDA

View Full Version : Show a specific "Guide" File on top of folders



anilsharaf
10-07-2017, 07:15 PM
Hi all,
Is it possible to show a file named 'Guide' above folders.

macropod
10-07-2017, 10:16 PM
The order in which files are displayed in a folder depends on how you have Windows Explorer/File Explorer configured. In a folder sorted by Type, an Adobe PDF file named Guide.pdf would generally appear before all other files except for other PDFs whose name might sort before that.

anilsharaf
10-08-2017, 05:35 AM
Thanks Macropod
I forgot to tell that it is word.docm file. I am using Window 7. I need very oftern editing this file as it is a guide to which file I should read first. What step by step procedures I should follow (for example: to make a customized Ribbon in Xl). These folders contain 'saved web pages' and other Xl example files. ( I felt a need for this because when I opened the 'Ribbon-Help' folder I had forgotten where to begin from. So I had to go through most of the files) Any other way to Mark that 'Guide.docm' file to be noticed easily?
Thanks for Your kind reply

macropod
10-08-2017, 06:12 AM
Your posts are as clear as mud.

The mere fact a document might be in the docm format has nothing to do with 'show a file named 'Guide' above folders', let alone 'a customized Ribbon in Xl'.

SamT
10-08-2017, 09:16 AM
Start with a Folder named "_Guide" Put your Guide file in there.

If you browse those folders with your web browser, FF or IE, save the Guide File, in the same top folder as all your Web folders, as a *.htm and name it "index.htm"

I have a ton of such "Web Page Help files". the top Folder on each subject is named according to the subject. It contain all the subfolders and one *.htm* file, "index.htm"

I use a Command Prompt in each Top Folder with the command Dir >> DIR.txt to create a simple text file with all the folder/file names. I then edit that text file to read like

<A href="Folder1Name\"> Folder1Name</A><br>
<A href="Folder2Name\"> Folder2Name</A><br>
<A href="Folder3Name\"> Folder3Name</A><br>
Then save it as "Index.htm". At this stage, you can name the index folder as you please, For instance "Gardening.htm"

<br> is an HTML CarriageReturn/LineFeed

In each of those folders, I again create a Dir.txt file.
This time I first arrange all the file names in the order I want, (delete all the "FileName_Files" Folder lines.) The I edit the rest of the lines to look like

<A href="FileName.htm*">FileName</A><br>And again save this text file as "index.htm"

This works because when a Web browser is sent to a folder, it looks for a file named "index.htm*"


Here is an excerpt from one of my actual upper level indexes


<HTML><BODY>
<table>
<tr><th>The Authors Books</th></tr>
<tr><td><a href="Andre%20Norton/">Andre Norton</a><br padding=0><hr></td></tr>
<tr><td><a href="Catherine%20Asaro/">Catherine Asaro</a><br padding=0><hr></td></tr>
<tr><td><a href="Christopher%20Anvil/">Christopher Anvil</a><br padding=0><hr></td></tr>
<tr><td><a href="David%20Drake/">David Drake</a><br padding=0><hr></td></tr>
<tr><td><a href="David%20Freer/">David Freer</a><br padding=0><hr></td></tr>
<tr><td><a href="David%20Weber/">David Weber</a><br padding=0><hr></td></tr>
<tr><td><a href="Elizabeth%20Moon/">Elizabeth Moon</a><br padding=0><hr></td></tr>
<tr><td><a href="Eric%20Flint/">Eric Flint</a><br padding=0><hr></td></tr>
<tr><td><a href="Harry%20Turtledove/">Harry Turtledove</a><br padding=0><hr></td></tr>
<tr><td><a href="Holly%20Lisle/">Holly Lisle</a><br padding=0><hr></td></tr>
<tr><td><a href="James%20P.%20Hogan/">James P. Hogan</a><br padding=0><hr></td></tr>
<tr><td><a href="James%20Schmitz/">James Schmitz</a><br padding=0><hr></td></tr>
<tr><td><a href="Jeffry%20Carver/">Jeffry Carver</a><br padding=0><hr></td></tr>
<tr><td><a href="Jerry%20Pournelle/">Jerry Pournelle</a><br padding=0><hr></td></tr>
<tr><td><a href="John%20Dalmas/">John Dalmas</a><br padding=0><hr></td></tr>
<tr><td><a href="John%20Ringo/index.htm">John Ringo</a><br padding=0><hr></td></tr>
<tr><td><a href="K.%20D.%20Wentworth/">K. D. Wentworth</a><br padding=0><hr></td></tr>
<tr><td><a href="Keith%20Laumer/">Keith Laumer</a><br padding=0><hr></td></tr>
<tr><td><a href="Lois%20McMaster%20Bujold/">Lois McMaster Bujold</a><br padding=0><hr></td></tr>
<tr><td><a href="Manly%20Wade%20Wellman/">Manly Wade Wellman</a><br padding=0><hr></td></tr>
<tr><td><a href="Mercedes%20Lackey/">Mercedes Lackey</a><br padding=0><hr></td></tr>
<tr><td><a href="Murray%20Lienster/">Murray Lienster</a><br padding=0><hr></td></tr>
<tr><td><a href="S.%20M.%20Sterling/">S. M. Sterling</a><br padding=0><hr></td></tr>
<tr><td><a href="Sarah%20Hoyt/">Sarah Hoyt</a><br padding=0><hr></td></tr>
<tr><td><a href="Spider%20Robinson/">Spider Robinson</a><br padding=0><hr></td></tr>
<tr><td><a href="Travis%20Taylor/">Travis Taylor</a><br padding=0><hr></td></tr>
<tr><td><a href="Wen%20Spencer/">Wen Spencer</a><br padding=0><hr></td></tr>
</table>
</BODY></HTML>
As you can see, I formatted it into a table. <tr> starts a table Row, and <td> starts a table text cell. the "%20" is used to replace spaces in the link address to prevent some browsers from raising an error.

As you can tell from all the other links, the "index.htm" in this line is redundant.
<a href="John%20Ringo/index.htm">John Ringo</a>

Each folder linked to above also has an "index.hm" file in it.

The
<br padding=0><hr> is just to pretty up the display

SamT
10-08-2017, 09:41 AM
Here's an example of an actual Dir >> Dir.txt Command

Volume in drive E is Data
Volume Serial Number is 0D1D-9EF0

Directory of E:\My IMAGINATION\Dakota

10/08/2017 11:27 AM <DIR> .
10/08/2017 11:27 AM <DIR> ..
04/15/2017 10:39 PM 30,119 Auto Diagnosis Repair Help.htm
04/15/2017 10:39 PM <DIR> Auto Diagnosis Repair Help_files
10/01/2017 04:48 PM <DIR> Buick V6 60
04/05/2017 04:47 PM 82,059 Bump Steer.pdf
10/08/2017 11:27 AM 0 Dir.txt
07/31/2017 07:29 PM 5,232 Driveline.xls
10/01/2017 10:01 PM <DIR> imgs
08/20/2017 07:03 PM 792 Replacement Seats.txt
04/10/2017 09:59 PM 64,555 TRENDSETTER SE - OnlineTires.com.htm
04/10/2017 09:59 PM <DIR> TRENDSETTER SE - OnlineTires.com_files
07/31/2017 07:37 PM 5,282 Upper_Control_Arm_Bushing.doc
08/19/2017 08:42 PM 317 Wheel Exchange.txt
10/07/2017 12:24 AM <DIR> _Air Flow
10/02/2017 06:01 PM <DIR> _Body
09/13/2017 04:35 PM <DIR> _DashBoard
09/26/2017 06:19 PM <DIR> _Electrics
10/01/2017 10:01 PM <DIR> _Engine Compartment
09/13/2017 04:17 PM <DIR> _Software
8 File(s) 188,356 bytes
12 Dir(s) 11,225,194,496 bytes free
For just the main folders, first delete all lines that do NOT have a "<DIR>" in them. Then delete all Dirs that have a "_Files" in the Folder name

10/01/2017 04:48 PM <DIR> Buick V6 60
10/01/2017 10:01 PM <DIR> imgs
10/07/2017 12:24 AM <DIR> _Air Flow
10/02/2017 06:01 PM <DIR> _Body
09/13/2017 04:35 PM <DIR> _DashBoard
09/26/2017 06:19 PM <DIR> _Electrics
10/01/2017 10:01 PM <DIR> _Engine Compartment
09/13/2017 04:17 PM <DIR> _Software
Then delete everything except the folder names

Buick V6 60
imgs
_Air Flow
_Body
_DashBoard
_Electrics
_Engine Compartment
_Software
Now, you're ready to convert those lines to links
<A href="Buick V6 60">Buick V6 60</A><br>
<A href="imgs">Pictures</A><br>
<A href="_Air Flow">Air Flow</A><br>
<A href="_Body">Body And Suspension</A><br>
<A href="_DashBoard">DashBoard and related electronics</A><br>
<A href="">_Electrics</A><br>
<A href="">_Engine Compartment</A><br>
<A href="">_Software</A><br>

anilsharaf
10-10-2017, 05:31 PM
Thanks Sam T
I was busy doing home work on your post and I was led to study about 'Dos Commands' because I did not know much about them. I also did not know about how to make .htm files. These were new subjects to me. Also 'by putting a underscore before file/foder name to bring it on top' proved helpful and now I am using it constantly.
In doing practical I found a thing that makes Index of Files and Folders the procedure is below:
Suppose we have to make an Indes of drive "D"
we copy the address of drive D from Window explorer
open FireFox (offline) and paste the addres of drive D
This lists a 'hyperlinked names' of all files and folders
We copy this to an Excel file and edit (sorting, editing names) as according to our need.
and save it as an Index file.
Now I remember that this trick was posted in Fransis Hays' "Excel In Seconds" tips long before.
Sometimes I may not be clear to express the things as respected Macropod said but this is because my mother tongue is "Hindi" and "English" is a foreign language to me.
Are there differences (of usefulness) between both the techniques as U proposed and I did?
Thanks again