fopetesl Posted August 17, 2017 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.
Moderators JLogan3o13 Posted August 17, 2017 Moderators 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!
fopetesl Posted August 19, 2017 Author 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.
Trong Posted August 19, 2017 Posted August 19, 2017 Related FileSetAttrib($hidFolder, "+SH", 0) Regards,
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