View Full Version : Folder? (WXP)
bri0015
01-19-2003, 06:07 PM
does anyone know the extension for folders. if there is one.
Mosaic1
01-19-2003, 06:18 PM
Extensions are for Files Types. Not Folders. Entries for the folders context menu can be found in these keys:
HKEY_CLASSES_ROOT\Directory
HKEY_CLASSES_ROOT\Folder
And this one which will place an entry in the menu for all files and folders:
HKEY_CLASSES_ROOT\AllFilesystemObjects
Add a shell subkey to the last one.
bri0015
01-19-2003, 06:23 PM
well, see what i want to do is create a folder, put stuff in it, then convert it to a text file, so no one could get in it, then be able to change it back. Is that possible.
Mosaic1
01-19-2003, 06:32 PM
No it isn't. Folders contain files. They are not files themselves. They are directories. Files are files and neither can be converted to the other.
Are you using the NTFS file system? If so, there are Security measures available to you. Have a look at this link for more information.
<a target="_blank" href=http://www.surasoft.com/tut/xpefs.htm>http://www.surasoft.com/tut/xpefs.htm</a>
bri0015
01-19-2003, 06:41 PM
well, i can convert a .zip into a .txt file and convert it back, all you have to do is make sure you have it so you see the extensions on all your files then just change it to something else
Mosaic1
01-19-2003, 06:58 PM
It is not the same thing. A Zip file is a compressed file. It uses code to compress the various elements you add to it. When the zip "file" is decompressed, all the various files and folders inside it are available.
Now that you mention it, you can create the zip file. Then go to the Toolbar to File>Add password to prevent someone from extracting the files. I would have to check it on another system to see if winzip would open the archive and bypass the security . But it seems like it might just work for you.
mysterywolf
01-20-2003, 01:51 AM
"well, i can convert a .zip into a .txt file and convert it back"
not really....this is merely converting a zip file into a zip file in disguise, using a false name. e.g a text file can contain only text, so renaming a bmp to a txt makes no sense....although in certain cases changing an extension has some purpose ..e.g. msdos.sys to msdos.txt allows easy editing. but its not really a text file, merely a file named to fool a text editor.
but out of interest a folder is in fact a file....though not one you can treat/see as such...only the system can ! its a file containing a list of items to be treated as its contents.
these 'hidden' folder/files are also used for handling long filenames. i.e. what you see as abcdefghijkl.txt is treated by the system as hijkl.txt in folder abcdefg, only its all kept hidden from the user. But... since abcdefghijkm.txt is really hijkm.txt in folder abcdefg , then to avoid mix-up, its thinks of it as abcdefg~1 etc. long folder names are treated in the same way....and why things appear in a dos mode listing as they do. and although this process is a secret kept by the OS it can raise its head when all the nesting this can produce when long foldernames are used on a network causes an error due to exceeding the max chars allowed and a file becoming unreachable!.
the is a utility which allows you to vackup the longfilename info and what this does is to backup the names of the folders used....
for you abcdefghijklmnopqr is really opqr in folder hijklmn number 1 , in folder abcdefg number 1 (~1).
so folders are files just not as we know 'em.
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.