473,320 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Link to file

Hi everybody,

I'd like to create a link to a file instead of copying the file to the new
destination.
Is there a possibility to do this ? Is there something like a Link Object in
C# .NET ?

I'll be very greatful for an answer asap :-)

Thanks

Heinz
Jul 21 '05 #1
4 2036
The Windows Filesystem doesn't have linked files.

Are you talking about Visual Studio being able to make a link to a source
code file from another project without copying it into the project? Because
Visual Studio *can* do that.

Just in case, and in the interest of time, if that is what you are looking
for...
In VS.NET, right click the project name that you want to add the linked
file, and select Add Existing Item
In the dialog, find the item on disk.
Instead of clicking the Open button, you will notice that there is a little
"drop-down arrow" on the right hand side of the button itself. Click the
Arrow and select "link to file"

Your project will refer to the source file without copying it to the current
project directory.

HTH,
--- Nick

"HKannen" <HK*****@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
Hi everybody,

I'd like to create a link to a file instead of copying the file to the new
destination.
Is there a possibility to do this ? Is there something like a Link Object in C# .NET ?

I'll be very greatful for an answer asap :-)

Thanks

Heinz

Jul 21 '05 #2
Thanks Nick,

but unfortunately this was not what I was looking for.

I am working on large ( up to 1GB) files in my web service and I wanted to
avoid copying these files. Instaed I wanted to create a link to the file and
work on the link afterwards.

Nevertheless thank you for your answer. :-(

Heinz

"Nick Malik" wrote:
The Windows Filesystem doesn't have linked files.

Are you talking about Visual Studio being able to make a link to a source
code file from another project without copying it into the project? Because
Visual Studio *can* do that.

Just in case, and in the interest of time, if that is what you are looking
for...
In VS.NET, right click the project name that you want to add the linked
file, and select Add Existing Item
In the dialog, find the item on disk.
Instead of clicking the Open button, you will notice that there is a little
"drop-down arrow" on the right hand side of the button itself. Click the
Arrow and select "link to file"

Your project will refer to the source file without copying it to the current
project directory.

HTH,
--- Nick

"HKannen" <HK*****@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
Hi everybody,

I'd like to create a link to a file instead of copying the file to the new
destination.
Is there a possibility to do this ? Is there something like a Link Object

in
C# .NET ?

I'll be very greatful for an answer asap :-)

Thanks

Heinz


Jul 21 '05 #3
> The Windows Filesystem doesn't have linked files.

That isnt true - look up junction points which are similar to hard links in
Unices

--
Sriram Krishnan

http://www.dotnetjunkies.com/weblog/sriram
"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message
news:wgudd.160687$He1.115130@attbi_s01...
Are you talking about Visual Studio being able to make a link to a source
code file from another project without copying it into the project?
Because
Visual Studio *can* do that.

Just in case, and in the interest of time, if that is what you are looking
for...
In VS.NET, right click the project name that you want to add the linked
file, and select Add Existing Item
In the dialog, find the item on disk.
Instead of clicking the Open button, you will notice that there is a
little
"drop-down arrow" on the right hand side of the button itself. Click the
Arrow and select "link to file"

Your project will refer to the source file without copying it to the
current
project directory.

HTH,
--- Nick

"HKannen" <HK*****@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
Hi everybody,

I'd like to create a link to a file instead of copying the file to the
new
destination.
Is there a possibility to do this ? Is there something like a Link Object

in
C# .NET ?

I'll be very greatful for an answer asap :-)

Thanks

Heinz


Jul 21 '05 #4
not the same... not even close.

A linked file in Unix is just that... a file. A junction point in NTFS is a
directory or volume.

A linked file can exist in two different directories. The contents of the
rest of the directory is not affected by the fact that the file is linked.
Not true for a junction point directory, where every file in the directory
exists in two "places".

In Unix, if you delete a linked file from one directory, it still exists in
the other. In NTFS, if you delete a file from a junction point, it's gone.
There was only one "file" in the file system, even though it had two names.

When you create a junction point, it's really a substitution cypher to find
the destination directory or volume given a starting path. Junction points
are useful but not really documented and wildly underused.

In UNIX, you can mount volumes as a directory. Clearly the logic behind
junction points is the same: mount a volume as a sub directory.

However, this is definitely not the same as a linked file.

--- Nick

"Sriram Krishnan" <ks*****@NOSPAMgmx.net> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
The Windows Filesystem doesn't have linked files.

That isnt true - look up junction points which are similar to hard links

in Unices

--
Sriram Krishnan

http://www.dotnetjunkies.com/weblog/sriram
"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message
news:wgudd.160687$He1.115130@attbi_s01...
Are you talking about Visual Studio being able to make a link to a source code file from another project without copying it into the project?
Because
Visual Studio *can* do that.

Just in case, and in the interest of time, if that is what you are looking for...
In VS.NET, right click the project name that you want to add the linked
file, and select Add Existing Item
In the dialog, find the item on disk.
Instead of clicking the Open button, you will notice that there is a
little
"drop-down arrow" on the right hand side of the button itself. Click the Arrow and select "link to file"

Your project will refer to the source file without copying it to the
current
project directory.

HTH,
--- Nick

"HKannen" <HK*****@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
Hi everybody,

I'd like to create a link to a file instead of copying the file to the
new
destination.
Is there a possibility to do this ? Is there something like a Link
Object in
C# .NET ?

I'll be very greatful for an answer asap :-)

Thanks

Heinz



Jul 21 '05 #5

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

Similar topics

1
by: j erickson | last post by:
with the following xsl and xml file, the display of the gif file with the <image/url> tag works. However, the gif file in the <description> tag using the name attribute "src" won't make the correct...
2
by: JenHu | last post by:
hi, I have a datagrid in my asp.net application, I am using vb.net language. I want to have my last column as a link column, link to text file. The link path is "c:\Temp\" & F_File_Name, which...
6
by: Ozz | last post by:
Hi there, I have a link on my web page. When clicked, opens up a pdf file that is stored on my server. Every file is specific to a user's user name and I don't want users to see each other's...
0
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
0
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
1
yabansu
by: yabansu | last post by:
Hi all, I implemented a basic client application. It communicates with server and works properly. Building processes succeed just by giving the following warning: LINK : D:\DOC\Visual Studio...
26
by: Nospam | last post by:
I am trying to open a link in a new template window : <a onclick="windowopen('example.html','example');return false;" href="http://www.example.com" target="_blank"example link</a> such that...
8
by: Bern McCarty | last post by:
We have a large mixed dll that I can never seem to get to link incrementally. Below is the console output. For simplicity I've eliminated some stuff that we normally do when we really link this...
11
by: mosscliffe | last post by:
I am trying to create a link to a file, which I can then use in an HTML page. The system is Linux on a hosted web service, running python 2.3. Other than that I have no knowledge of the system....
0
ADezii
by: ADezii | last post by:
Rather than using CurrentProject.Connection or entering your own Connection information, ADO supports storing Connection information in an external file called a Data Link File (which normally has a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.