954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Create and write a text file that saved in network folder

Dear all .Netters,

How do i create and write a text file that saved in network folder ?
The folder path is saved in table "K:\GA_PAYMENT\OPE".
When running from VS2005, it could work well. But after i copied sources code to the server, ASP.Net could not find the folder name.

Dim FileName As String = Folder & "\GA-" & Format(Now, "yyMMddHHmmss") & ".txt"
Dim FP As StreamWriter
If Not File.Exists(FileName) Then
FP = File.CreateText(FileName)
End If

Thanks and Regards,

Kusno

Kusno
Junior Poster
191 posts since Aug 2007
Reputation Points: 11
Solved Threads: 17
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You