[ale] OT: Windows / NTFS link question?
Watson, Keith R.
krwatson at cc.gatech.edu
Tue Jan 9 18:31:10 EST 2007
> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
Greg
> Freemyer
> Sent: Tuesday, January 09, 2007 14:33
> To: Atlanta Linux Enthusiasts
> Subject: [ale] OT: Windows / NTFS link question?
>
> All,
>
> I'm real familiar with how "hard" links work in Linux.
>
> I have a Windows program that if I was in Linux I would handle as:
>
> Process 1 creates docs in spool directory. (Process one can be long
> lived, ie. minutes, and multiple at once.)
>
> Process 2 looks for docs in spool directory, links them to their real
> destination directory, and then unlinks them from the spool directory.
> Due to the way Linux works, Process 1 would simply continue to write
> to the moved file.
>
> I need to have the 2 processes because Process 1 is creating millions
> of files in one directory right now and I don't have source for it so
> that I could make it use subdirectories in the first place. (Life in
> the windows world.)
>
> Does anyone know if NTFS / Win2003 offer a similar function? I know
> about shortcuts, but that won't cut it.
>
> Thanks
> Greg
> --
> Greg Freemyer
> The Norcross Group
> Forensics for the 21st Century
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
Greg,
There are hard links in Windows also. Here are some references.
Fsutil: hardlink (I think this is native to Windows XP)
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs
/en-us/fsutil_hardlink.mspx?mfr=true
http://tinyurl.com/kdy5b
Hard Links
http://msdn2.microsoft.com/en-us/library/ms810604.aspx#ntfs5_topic6
CreateHardLink function
http://msdn2.microsoft.com/en-us/library/aa363860.aspx
Hard Links and Junctions
http://msdn2.microsoft.com/en-us/library/aa365006.aspx
Link Shell Extension
http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html
ln - command line hardlinks
http://schinagl.priv.at/nt/ln/ln.html
There is a tool for scanning for hard links in the Windows Server 2003
Resource Kit Tools. Hlscan.exe: Hard Link Display Tool
I've attached a Perl script that will create hard links.
keith
--
Keith R. Watson Georgia Institute of Technology
Systems Support Specialist IV College of Computing
keith.watson at cc.gatech.edu 801 Atlantic Drive NW
(404) 385-7401 Atlanta, GA 30332-0280
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkf.zip
Type: application/x-zip-compressed
Size: 1803 bytes
Desc: linkf.zip
More information about the Ale
mailing list