Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > General Computer Support > HELP in VS 2005

Reply
Thread Tools

HELP in VS 2005

 
 
dadon123 dadon123 is offline
Junior Member
Join Date: Nov 2006
Posts: 1
 
      11-02-2006
Hi people,

Im trying to copy a file in c# 2.0, but I'm having problem with the filename.

The following is a piece off code i am using

string path = @"C:\Documents and Settings\My\My Documents\";
string path2 = path + @"\hours.doc";

System.IO.File.Copy(path2, path);

When I watch the string path, for some strange reason the string path is ""C:\\Documents and Settings\\My\\My Documents\\"".

I have @ which should prevent this kind of behavior.

Can any one help please?

Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: "Certifications for Visual Studio 2005 and SQL Server 2005 wil Pedro Simoes MCSD 0 11-24-2005 07:52 PM
"Certifications for Visual Studio 2005 and SQL Server 2005 will be available in early 2006" DST MCSD 8 10-28-2005 02:50 AM
EDPS 2005 Early Registration Ends March 16, 2005 b_kapoor@yahoo.com VHDL 0 03-15-2005 09:27 PM
ISC'2005 Industrial Simulation Conference, Berlin June 2005, CFP Philippe Geril VHDL 0 11-19-2004 04:13 PM
New Exams for SQL Server 2005 and Visual Studio 2005 gemeaux | tt Microsoft Certification 1 10-25-2004 06:59 PM



Advertisments