Rammanan Posted June 29, 2018 Share 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 Link to comment Share on other sites More sharing options...
Subz Posted June 29, 2018 Share Posted June 29, 2018 (edited) Windows doesn't allow you to create files with / or \ in the name. Edited June 29, 2018 by Subz Link to comment Share on other sites More sharing options...
Rammanan Posted June 29, 2018 Author Share Posted June 29, 2018 Hi @Subz Have any solution for this. Link to comment Share on other sites More sharing options...
Subz Posted June 29, 2018 Share 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 Link to comment Share on other sites More sharing options...
Rammanan Posted June 29, 2018 Author Share Posted June 29, 2018 hi @Subz Thanks so much for fast respon i solve the problem Link to comment Share on other sites More sharing options...
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