Jump to content
Rammanan

Create log file

Recommended Posts

Rammanan
Posted (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 by Rammanan

Share this post


Link to post
Share on other sites
Subz
Posted (edited)

Windows doesn't allow you to create files with / or \ in the name.

Edited by Subz

Share this post


Link to post
Share on other sites
Rammanan

Hi @Subz

Have any solution for this. 

Share this post


Link to post
Share on other sites
Subz

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.

  • Haha 1

Share this post


Link to post
Share on other sites
Rammanan

hi @Subz

Thanks so much for fast respon i solve the problem

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×