Rammanan Posted June 29, 2018 Posted June 29, 2018 (edited) Hi all, I cannot create a log file using bellow script. can any one help me one this. #include <File.au3> Local $PcName = @ComputerName Local $a = FileGetTime("C:\test\test.exe") $atd = $a[2] & "/" & $a[1] & "/" & $a[0] MsgBox(32,'',$atd) ;Local $Fname = ($PcName & "_" & $atd) ;MsgBox(32,'',$Fname) Local $filecreate = FileOpen("C:\New folder\LOG\" & $atd & $PcName & ".log" , 1) Edited June 29, 2018 by Rammanan
Subz Posted June 29, 2018 Posted June 29, 2018 (edited) Windows doesn't allow you to create files with / or \ in the name. Edited June 29, 2018 by Subz
Subz Posted June 29, 2018 Posted June 29, 2018 Weird question. No Windows doesn't allow you to create files or folders with forward or back slashes? You would have to change the slash to something like a dash "-" or some other separator. FrancescoDiMuro 1
Rammanan Posted June 29, 2018 Author Posted June 29, 2018 hi @Subz Thanks so much for fast respon i solve the problem
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now