User Profile
Collapse
-
To read the current path of a file using C#
How can i read the current path of a file? I want to run an exe file in differnt folders to read the elements. For this how can i read the current path of the xml file ung C#. -
file.copy(sourc e.target)
server shhould be
string source="\\\\ser ver\\folde\\"; -
-
-
To search a file and to copy it from server
I want to search a file from server and want to copy it to the local disk.
how it is done? This is working if the file is in my hard disk itself.But not when it comes to server. If i map the server i can search.like y:\\serverfolde \\folder am tring to make an exe. different people will map to different drive. so i cant give like that.should give like @\\server\\serv erfolde\\folder \\ but it is not working.
My code is
searchfolder="y :\\Template\\el se";... -
To search a file and copy it to server
I want to search a file from server and want to copy it to the local disk.
how it is done? This is working if the file is in my hard disk itself.But not when it comes to server. If i map the server i can search.like y:\\serverfolde \\folder am tring to make an exe. different people will map to different drive. so i cant give like that.should give like @\\server\\serv erfolde\\folder \\ but it is not working.
My code is<code>
... -
To read an Xml file......
Am trying to read an xml file using vb.net but i'm getting following error.
Select XML file
Exception: {0}System.Xml.X mlException: This is an unexpected token. The expected token is 'QUOTE'. Line 1, position 11. at System.Xml.XmlS canner.ScanToke n(Int32 expected) at System.Xml.XmlT extReader.SetLi teralValues(Xml AttributeTokenI nfo fld) at System.Xml.XmlT extReader.SetAt tributeValues() at System.Xml.XmlT extReader.Parse Element() at System.Xml.XmlT extReader.Read( )...
No activity results to display
Show More
Leave a comment: