473,387 Members | 1,290 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,387 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 2042
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.