User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 456,516 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,817 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 3567 | Replies: 7
Reply
Join Date: Sep 2007
Posts: 29
Reputation: manjusaharan is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
manjusaharan manjusaharan is offline Offline
Light Poster

how to access file from any drive at remote computer

  #1  
Oct 1st, 2007
Hi All,
I m trying to access a file residing at c: drive from a remote computer by using RDC.
bt it is showing exception if i m using FileInfo() method for opening it.
help me in solving this problem.
Thanx in advance.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2007
Posts: 29
Reputation: manjusaharan is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
manjusaharan manjusaharan is offline Offline
Light Poster

Help Re: how to access file from any drive at remote computer

  #2  
Oct 1st, 2007
Originally Posted by manjusaharan View Post
Hi All,
I m trying to access a file residing at c: drive from a remote computer by using RDC t access that computer.I m using c#.
bt it is showing exception if i m using FileInfo() method for opening it.
help me in solving this problem.
Thanx in advance.
I m trying to access a file residing at c: drive from a remote computer by using RDC t access that computer.I m using c#.
bt it is showing exception if i m using FileInfo() method for opening it.
help me in solving this problem.
Thanx in advance
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 763
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 59
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: how to access file from any drive at remote computer

  #3  
Oct 1st, 2007
What's the exception please copy it here
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Join Date: Sep 2007
Posts: 29
Reputation: manjusaharan is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
manjusaharan manjusaharan is offline Offline
Light Poster

Re: how to access file from any drive at remote computer

  #4  
Oct 3rd, 2007
System.NotSupprotedException:Given Path format is not supported.
System.Security.Util.StringExpressionSet.CanonicalizePath(String Path,Boolean NeedFullPath)
at
System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str ,Boolean NeedFullPath)
at
System.Security.Permissions.FileIOPermission.AddPathList(FileIOPErmissionAccess access,AccessControlAccess controls,String[] pathlistorig,Boolean checkforduopilcates,Bolean NeedFullPath,Boolean CopyPathList)
at
System.Security.Permissions.FileIOPermission.ctor(FileIOPErmissionAccess access,String[] pathlistorig,Boolean checkforduopilcates,Bolean NeedFullPath)
at
System.IO.FileInfo..ctor(String FileName)
at myfile.maxim()
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 763
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 59
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: how to access file from any drive at remote computer

  #5  
Oct 3rd, 2007
can you please give me the path you access
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Join Date: Sep 2007
Posts: 29
Reputation: manjusaharan is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
manjusaharan manjusaharan is offline Offline
Light Poster

Re: how to access file from any drive at remote computer

  #6  
Oct 3rd, 2007
in fact i got answer .
i made a silly mistake.
i didnt shared the folder that i want to access.
otherwise everything is right.
thanx for spending ur precious time in solving my problem
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 763
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 59
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: how to access file from any drive at remote computer

  #7  
Oct 3rd, 2007
you're welcome, I got that but I was about to say did u share the folder?
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Join Date: Jun 2008
Posts: 1
Reputation: suresh_p is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
suresh_p suresh_p is offline Offline
Newbie Poster

Re: how to access file from any drive at remote computer

  #8  
Aug 4th, 2008
Originally Posted by manjusaharan View Post
in fact i got answer .
i made a silly mistake.
i didnt shared the folder that i want to access.
otherwise everything is right.
thanx for spending ur precious time in solving my problem
Hi
Can u send me the code for that one
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C# Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C# Forum

All times are GMT -4. The time now is 4:01 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC