Kusno

Kusno

  • NA
  • 1
  • 0

How to create and write text file into Network Folder (Urgent..Please)

Sep 24 2007 5:48 AM
Dear all .Netters,

How do i create and write a text file that is 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

Answers (1)