Sponsored By
MindStick Cleaner
Advertise with Us
Advertisement
Advertise with Us
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog
Report Abuse Form
Reason:    
   

Home >> .Net >> C# >> How use relative path in C#.
Author Post

aken H


Total Post: 66
Member Since: 9/6/2011
Points: 419
How use relative path in C#.
Posted On: 10/11/2011 2:25:19 AM

Hi all,

 How use relative path in C#.

Such as:

con = new OleDbConnection(@"provider=microsoft.jet.oledb.4.0;data scource=C:\MyProject\Product.mdb");

 

thanks.

Author Post

Rohit Kesharwani


Total Post: 54
Member Since: 8/8/2011
Points: 385
Re: How use relative path in C#.
Posted On: 10/11/2011 3:58:43 AM
Hi,

You can use relative path by using GetFullPath method of the Path class that exist in the System.IO namespace.
Try this:
         Console.WriteLine("The relative path 'file.txt' " + System.IO.Path.GetFullPath("file.txt"));
Author Post

aken H


Total Post: 66
Member Since: 9/6/2011
Points: 419
Re: How use relative path in C#.
Posted On: 10/11/2011 7:29:36 AM

Hi Rohit,

  thanks for your help.

Author Post

aken H


Total Post: 66
Member Since: 9/6/2011
Points: 419
Re: How use relative path in C#.
Posted On: 10/11/2011 8:10:01 AM

Hi Rohit,

You can give me some website address to learn SQL?

thanks in advance.

Author Post

Rohit Kesharwani


Total Post: 54
Member Since: 8/8/2011
Points: 385
Re: How use relative path in C#.
Posted On: 10/12/2011 12:03:04 AM
Post is removed by the Admin.
Author Post

Uttam Misra


Total Post: 113
Member Since: 6/2/2010
Points: 818
Re: How use relative path in C#.
Posted On: 10/12/2011 12:54:49 AM
Aken ...here you go..
http://www.mindstick.com/Beginner/ContentPage.aspx?cdata=SQL+Server

Join mindstick beginners section...
Cheers!
Report Abuse Form
Reason:    
 
Total Online Users: 3358
Advertisement
MindStick DataConverter
Advertise with Us
  
Copyright © 2013MindStick. All Rights Reserved.