Page 1 of 1

Convert file <> folder

Posted: Sun Jan 27, 2008 1:01 am
by Kwai chang caine
Hello at all

Is it possible to convert a file to folder or a folder to a file.
It is possible to mystify WINDOWS by changing its FAT ?

Thanks for your answer

Posted: Sun Jan 27, 2008 1:39 am
by Fluid Byte
Uhmm, what?

Posted: Sun Jan 27, 2008 1:43 am
by netmaestro
It is possible to mystify WINDOWS ..[]
Yes.

Posted: Sun Jan 27, 2008 3:43 am
by Fluid Byte
What the hell is meant by "mystifying WINDOWS"? Image

Posted: Sun Jan 27, 2008 10:47 am
by Kwai chang caine
Yes
Thats a good news :D
But you are funny :lol:
Obviously, you are so strong, that all your answers at a beginner question start by "YES"
But, that is more interesting, is the explication after the "YES".
And i search everywhere in the POST, and there is nothing after the "YES" in your answer.

Can you make that in PureBasic ??
With API ?
Is it in ASM ???

Anyway, for the tree solutions, I am too bad to respond :oops:
What the hell is meant by "mystifying WINDOWS"?
Make believe WINDOWS a file is a directory or vice versa :)
I believe, it must modify the first caracter of the name of element or something like that.
A ? is delete, but DOBRO in french forum said me, 0 or 1 somewhere said at WINDOWS is a folder or a file.
I don't know more :roll:

Posted: Sun Jan 27, 2008 12:42 pm
by milan1612
@Kwaï chang caïne
Do you mean you want to change the NTFS/FAT partition tables?

I don't think it's possible 'cause a file has an entry in the table containing
its size, address to the data on the HD and some other flags, whereas a folder
is just a special entry in the partition table.

By the way, what do you intent to do?

Posted: Sun Jan 27, 2008 1:15 pm
by Kwai chang caine
Do you mean you want to change the NTFS/FAT partition tables?
I don't know :roll:
I want just convert a folder in file. :roll:

I want :
1/ Create a folder
2/ Modify something that i don't know what ??
3/ And windows believe is a file :D
For windows believes it is a large file and store it in the middle of files :lol:
4/ I modify again something that i don't know what ??
5/ And my file is again a folder.

Like a winzip for example, but i don't want compression, i want the access is more quicky possible :D
By the way, what do you intent to do?
I search a solution for run a application when the user is open a folder.
I already ask this question, but i don't have any answer :cry:
http://www.purebasic.fr/english/viewtopic.php?t=30765

Then, when i don't have solution, i search another method, for example :
Hide a directory in converting file

I must tell to you, i'm not administrator, and it is sometimes on a server :?

It's why i search a solution "simple" (if i can say), that works everywhere.

My ideas :

1/ Create a boot in a folder, like a boot floppy.
To force windows to run my program for each open folder

or

2/ Convert folder in file for hide it

In summary :

Launch an application contained in the directory for each open this folder, like a boot sequence floppy, or hard drive (Autoexec.bat)

And if is not possible

Convert this foder to file, with no compression

I prefer the first solution, but i think is more strong to do :cry:

I know is it there strong, it's the reason i ask you this question 8)
Thanks for your interest 8)

Posted: Sun Jan 27, 2008 1:30 pm
by milan1612
OK, if I understand correctly you're trying to start
an application automatically when the user opens a folder?
In the Explorer?

Posted: Sun Jan 27, 2008 1:33 pm
by Kwai chang caine
Yeeeeessss !!!!
I'm happy, we speak so badly the english, me and google translate :D

You understand me, yahoooo!!!

This is a first problem fixed :lol:

The hardest rest has done, i believe :lol:
an application automatically when the user opens a folder?
In the Explorer?
But the more strong to do, i believe, is i do not want create an application that monitors the "Explorer".
I wish that opening the application alone when the windows directory launches , aie aie aie !!!! :lol:
It's obviously impossible ? :cry:

Posted: Sun Jan 27, 2008 1:40 pm
by milan1612
OK :lol:
One possible solution could be to hook the explorer and subclass
the Listview control to determine when the user doubleclicks on an item.
Then you'd have to check wether it is a file or a folder and accordingly run
your application.
Whoohoo, not easy... :?

EDIT:
Kwaï chang caïne wrote: But the more strong to do, i believe, is i do not want create an application that monitors the "Explorer".
I wish that opening the application alone when the windows directory launches , aie aie aie !!!! :lol:
It's obviously impossible ? :cry:
It is possible, but thats beyond my skills...

Posted: Sun Jan 27, 2008 1:47 pm
by Kwai chang caine
Whoohoo, not easy...
Yes it is :oops:

But, imagine the good option, for all programmers, if they could protect all their folders 8)
The user clic the folder, the folder launch itself an application into him.
The application look the name of session.

1/ If is not the good name of session, "Couikkk !!" :lol: the program close the folder with the handle. :shock:
2/ If is the good session, he ask a password, and if is good, open the folder :D

It was a super protection for all folder with access restricted.

I know, it's a strong chalenge, :oops:
Thats because, i ask this, at the strongs, gods, heros programmers 8)

Posted: Sun Jan 27, 2008 1:59 pm
by milan1612
Kwaï chang caïne wrote:It was a super protection for all folder with access restricted.
There are always ways to bypass such a system...
Kwaï chang caïne wrote:I know, it's a strong chalenge, :oops:
Thats because, i ask this, at the strongs, gods, heros programmers 8)
Yep, but that's definetly not me :lol:

Posted: Sun Jan 27, 2008 2:16 pm
by Kwai chang caine
There are always ways to bypass such a system...
Yes i know :roll:
All is bypass, when i see what all can do with the C, ASM, Pure etc ... :shock:
Nothing resist to the GOP (Gods Of Programmation :D )

But, like a serial key, she stop a good party of users.
And it's all right, like that :wink:
Yep, but that's definetly not me
Never mind, You have talk to me of my problem and i thank you for that :wink:
It's better than the first POST :lol:

You said, it is strong, but not impossible, i remain hopeful :D
Perhaps a GOD ears my voice :D

The nice frog :wink: (Yes)
Sparkie
Trond
Srod or other

I will monitor the POST, and post pending, I crying all the tears from my corp :lol: