bertotto Posted May 19, 2006 Share Posted May 19, 2006 HELLO IS IT POSSIBLE TO GET @COMPUTERNAME VALUE IN THE NAME OF A FILE using _FileCreate? example : if the @computername value is 5p0105, create a file c:\windows\5p0105.txt regards thanks for your help and advises Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 19, 2006 Moderators Share Posted May 19, 2006 (edited) HELLO IS IT POSSIBLE TO GET @COMPUTERNAME VALUE IN THE NAME OF A FILE using _FileCreate? example : if the @computername value is 5p0105, create a file c:\windows\5p0105.txt regards thanks for your help and advises$FOpen = FileOpen(@WindowsDir & '\' & @ComputerName & '.txt', 10) FileClose($FOpen) Edit: After looking at mine, I had 8 to create the directory, but you need 1 or 2 as Jdeb shows below to write (to create it). Edited May 19, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 19, 2006 Developers Share Posted May 19, 2006 HELLO IS IT POSSIBLE TO GET @COMPUTERNAME VALUE IN THE NAME OF A FILE using _FileCreate? example : if the @computername value is 5p0105, create a file c:\windows\5p0105.txt regards thanks for your help and advisesYes.... did you try it ? FileWriteLine(@Computername & ".txt", " text.......") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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