Jump to content
Sign in to follow this  
Rammanan

Create log file

Recommended Posts

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

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.

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...