473,555 Members | 2,290 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NTFS reparse points

I want to create a reparse point on NTFS (any).

Here
(http://msdn.microsoft.com/library/de...rse_points.asp)
I read: "reparse points are used to implement NTFS file system links".
Here
(http://msdn.microsoft.com/library/de..._junctions.asp)
I read: "Soft links are implemented through reparse points".

However I can't see FILE_ATTRIBUTE_ REPARSE_POINT turned on in any file /
directory shortcuts I create. In fact the only attribute set in
shortcuts created using Windows Explorer is FILE_ATTRIBUTE_ ARCHIVE. (I
am using GetFileAttribut es() to examine this.)

The questions are:

(1) Why is that so?
(2) Does anybody have any idea (sample code?) on how to create a reparse
point (the simpler, the better) using Python?

I am using Windows 2000 Professional, Python 2.4 and Mark Hammond's
Python for Windows Extensions build 204.

Thank you.

+-------------------------------------------------------+
| When replying, please replace "my_initial s" in the |
| From: address field with my initials - that is, "SF". |
+-------------------------------------------------------+

--
http://www.nglogic.com
Enter through the narrow gate! (Mt 7:13-14)
Nov 3 '05 #1
4 2881
Stanislaw Findeisen wrote:
(2) Does anybody have any idea (sample code?) on how to create a reparse
point (the simpler, the better) using Python?


The only sample code I've seen for creating reparse points is in c or c++
and its quite a messy operation. See
http://www.sysinternals.com/Utilities/Junction.html for some sample code.

The easy way to do it from Python is just to make sure you have a program
such as junction on your system then use os.system('junc tion "%s" "%s"' %
(directory, target))

Be careful if you start creating junctions: Windows explorer doesn't
understand them: if you try to delete a folder which is actually a junction
it first deletes all the files inside the folder so the original folder
ends up empty as well.
Nov 3 '05 #2
Stanislaw Findeisen wrote:
I want to create a reparse point on NTFS (any).

Here
(http://msdn.microsoft.com/library/de...rse_points.asp)
I read: "reparse points are used to implement NTFS file system links".
Here
(http://msdn.microsoft.com/library/de..._junctions.asp)
I read: "Soft links are implemented through reparse points".

However I can't see FILE_ATTRIBUTE_ REPARSE_POINT turned on in any file /
directory shortcuts I create. In fact the only attribute set in
shortcuts created using Windows Explorer is FILE_ATTRIBUTE_ ARCHIVE. (I
am using GetFileAttribut es() to examine this.)

The questions are:

(1) Why is that so?


Because shortcuts aren't reparse points. They're just small files that
contain some information about the file or directory they point to and
how to open it.

--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton

Roel Schroeven
Nov 3 '05 #3
In article <dk**********@a chot.icm.edu.pl >,
Stanislaw Findeisen <my*********@ng logic.com> wrote:
...
However I can't see FILE_ATTRIBUTE_ REPARSE_POINT turned on in any file /
directory shortcuts I create. In fact the only attribute set in
shortcuts created using Windows Explorer is FILE_ATTRIBUTE_ ARCHIVE. (I
am using GetFileAttribut es() to examine this.)

...

Shortcuts are files with a .lnk extention. Reparse points are NTFS
directory data.
_______________ _______________ _______________ _______________ ____________
TonyN.:' *firstname*nlsn ews@georgea*las tname*.com
' <http://www.georgeanels on.com/>
Nov 3 '05 #4
You should be able to use win32file.Devic eIoControl with
winioctlcon.FSC TL_SET_REPARSE_ POINT to do this.
(winioctlcon was added in build 205)
The hard part is going to be constructing the
REPARSE_GUID_DA TA_BUFFER struct to pass in
as the buffer.

hth
Roger

"Stanislaw Findeisen" <my*********@ng logic.com> wrote in message news:dk******** **@achot.icm.ed u.pl...
I want to create a reparse point on NTFS (any).

Here (http://msdn.microsoft.com/library/de...rse_points.asp) I read: "reparse points
are used to implement NTFS file system links". Here
(http://msdn.microsoft.com/library/de..._junctions.asp) I read: "Soft links
are implemented through reparse points".

However I can't see FILE_ATTRIBUTE_ REPARSE_POINT turned on in any file / directory shortcuts I create. In fact the only
attribute set in shortcuts created using Windows Explorer is FILE_ATTRIBUTE_ ARCHIVE. (I am using GetFileAttribut es() to
examine this.)

The questions are:

(1) Why is that so?
(2) Does anybody have any idea (sample code?) on how to create a reparse point (the simpler, the better) using Python?

I am using Windows 2000 Professional, Python 2.4 and Mark Hammond's Python for Windows Extensions build 204.

Thank you.

+-------------------------------------------------------+
| When replying, please replace "my_initial s" in the |
| From: address field with my initials - that is, "SF". |
+-------------------------------------------------------+

--
http://www.nglogic.com
Enter through the narrow gate! (Mt 7:13-14)


----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 5 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8007
by: BingoHandJob | last post by:
Hello group! I'm having a problem and I hope some of you may be able to point me in the right direction. I inherited a web site using php, running on Windows 2000 & IIS. The site was developed by a consulting firm about a year before I came on board, the consultant has since gone out of business. Overall, I've never had a problem with...
2
1794
by: travelling_nerd | last post by:
Folks: I have some zip files I'd like to serve to authenticated users on my site, but would like to prevent unauthorized users from using an absolute path to get to these zip files. For example http://blah.com/file.zip should not be accessible directly without authenticating. However, my current authenticaion goes to an LDAP server and I'd...
3
453
by: Pål Andreassen | last post by:
Running Windows 2003 Server Framework 1.1 A site is configured to use integrated security (in IIS 6) Windows autentication and user impersonation in web.config <identity impersonate="true" /> <authentication mode="Windows" /> I've got a ASPX page that lists folders and files from a predefined location on the server. These folders and...
0
1464
by: Chris Stocker | last post by:
The problem that we see is that we can not create a reparse point on the file system. The operating system returns error 282 which means that the FS doesn't support extended attributes, which it should I believe if it is NTFS. There may be a way to turn off extended attributes on NTFS, but I am not aware of how. The call that we make is...
2
3212
by: Jim Richards | last post by:
I have been told by a local PC club technician that 98SE cannot read NTFS drives in a network. Is this true? TIA, Jim.
3
1719
by: John Sidney-Woollett | last post by:
Is it possible to (automatically) force the reparse of a stored PL/pgSQL function following the deletion and recreation of an object that was referenced within the function (for example a table or another function)? The need to re-create (create or replace ...) the function is a pain as you have to follow a potential chain of other objects...
3
6361
by: Mathias Erlandsson | last post by:
Hi Does anybody know how to create and show a reparse point in c#? I'm able to determine if a folder is a reparse point or not by looking at the file attributes, but how do I get the reparse info /Mathias
3
406
by: Ray Cassick \(Home\) | last post by:
I am starting to think there is some kind of conspiracy :) but everywhere I try to locate some (working) code showing how to change NTFS partitions on a network share I end up at a dead end. I found tons of references to a tech note (below) but MS seems to have 'lost' it :) Any ideas? http://support.Microsoft.com/?id=818362 --
4
4678
by: Wildemar Wildenburger | last post by:
Hi :) I'm thinking of letting my program create hardlinks (or symlinks). I know python allows doing this for ext, reiser and the like, but apparently not for ntfs systems. Is there any package out there that lets me create links in a platform independent way? bye wildemar
0
7547
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7588
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5452
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5171
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1159
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
865
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.