Convert file <> folder

Windows specific forum
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Convert file <> folder

Post 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
ImageThe happiness is a road...
Not a destination
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Uhmm, what?
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

It is possible to mystify WINDOWS ..[]
Yes.
BERESHEIT
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

What the hell is meant by "mystifying WINDOWS"? Image
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Post 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:
ImageThe happiness is a road...
Not a destination
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post 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?
Windows 7 & PureBasic 4.4
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Post 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)
Last edited by Kwai chang caine on Sun Jan 27, 2008 1:31 pm, edited 1 time in total.
ImageThe happiness is a road...
Not a destination
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post by milan1612 »

OK, if I understand correctly you're trying to start
an application automatically when the user opens a folder?
In the Explorer?
Windows 7 & PureBasic 4.4
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Post 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:
Last edited by Kwai chang caine on Sun Jan 27, 2008 1:40 pm, edited 1 time in total.
ImageThe happiness is a road...
Not a destination
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post 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...
Windows 7 & PureBasic 4.4
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Post 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)
ImageThe happiness is a road...
Not a destination
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post 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:
Windows 7 & PureBasic 4.4
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Post 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:
ImageThe happiness is a road...
Not a destination
Post Reply