fopetesl Posted August 17, 2017 Share Posted August 17, 2017 (edited) I need to be able to issue a command line which has a folder in parentheses as attrib +s +h "absolute folder to hide" I've read through many posts here but nothing quite hacks how to use a variable as the folder in parentheses. I've tried Local $dosattrib = "attrib +s +h " & ""$hidFolder"" ; $hidFolder built up from decrypted encrypted C:\Hidden Folder which I do not want visible when compiled version is reverse engineered which errors with excess parentheses but in single "" it doesn't work. There seems to be a relatively complicated method to make it work but surely there's a simple way? Edited August 17, 2017 by fopetesl bad composition The most powerful number in the Universe. Zero. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 17, 2017 Moderators Share Posted August 17, 2017 I am assuming you mean quotes, not parentheses. Try this: Local $dosattrib = 'attrib +s +h "' & $hidFolder & '"' "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
fopetesl Posted August 19, 2017 Author Share Posted August 19, 2017 Thanks, jL. I clearly do not recognise the difference between ".." and '..' I'd assumed, up to now, they both achieved the same function. Something new every day... I could live forever The most powerful number in the Universe. Zero. Link to comment Share on other sites More sharing options...
Trong Posted August 19, 2017 Share Posted August 19, 2017 Related FileSetAttrib($hidFolder, "+SH", 0) Regards, 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