Sign in to follow this  
Followers 0
autoking

FileSetAttrib - Problem

5 posts in this topic

#1 ·  Posted (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 by autoking

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Exit

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites

thanks :) but that gives me a syntax error

Share this post


Link to post
Share on other sites

thanks alot :)

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  
Followers 0