1
Answer

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

Kusno

Kusno

17y
3k
1
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)