I want to create a file in the %temp% temporary directory of Windows, but the following two are invalid.
Where is the mistake?
Thanks.
Code: Select all
File := FileOpen("%A_Temp%\1.txt", "w")
File.Write("d")
File.Close()
return
Code: Select all
File := FileOpen("%Temp%\1.txt", "w")
File.Write("d")
File.Close()
return
But in this script, both of them are valid. Why?
Code: Select all
Gui, Add, Picture,, %A_Temp%\1.jpg
Gui, Add, Picture,, %Temp%\1.jpg
Gui, Show
return