txt 파일 타이머파일명으로 생성하기
*
Imports System
Imports System.IO
Imports System.Text

Public Class Form1

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Dim MyDateNow As Date = Date.Now
Dim Time_path As String = Replace(MyDateNow, ":", "_")
Dim path As String = "C:\HY_NW\" & Time_path & ".txt"

Dim fs As FileStream = File.Create(path)
Label1.Text = path
Dim mypath As String = Label1.Text
End Sub
End Class

sss.PNG

 

이 게시물을

댓글'1'
File.Create("C:\my files\2010\SomeFileName.txt").Dispose()

이 댓글을

공유하기

SEARCH

MENU NAVIGATION