autoking Posted September 13, 2012 Share Posted September 13, 2012 (edited) Hi. I want to hide a file. It works fine if i do it like this: FileSetAttrib (@UserProfileDir & "test.au3", "+SH") But I don't want to write the actual file name, this is what I want to do, witch doesen't work: FileSetAttrib (@UserProfileDir & @scriptname "+SH") can someone please help me with this litle problem ? Edited September 13, 2012 by autoking Link to comment Share on other sites More sharing options...
Exit Posted September 13, 2012 Share Posted September 13, 2012 (edited) Hi. I want to hide a file. It works fine if i do it like this: FileSetAttrib (@UserProfileDir & "test.au3", "+SH") But I don't want to write the actual file name, this is what I want to do, witch doesen't work: FileSetAttrib (@UserProfileDir & @scriptname "+SH") can someone please help me with this litle problem ? FileSetAttrib (@UserProfileDir & "" & @scriptname "+SH") Edited September 13, 2012 by Exit App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
autoking Posted September 13, 2012 Author Share Posted September 13, 2012 thanks but that gives me a syntax error Link to comment Share on other sites More sharing options...
Exit Posted September 13, 2012 Share Posted September 13, 2012 (edited) FileSetAttrib (@UserProfileDir & "" & @scriptname, "+SH") There was a "," missing in your post. I copied the error. ;-) Edited September 13, 2012 by Exit App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
autoking Posted September 13, 2012 Author Share Posted September 13, 2012 thanks alot 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