Jump to content

Run @Comspec with paramaters in perentheses


Recommended Posts

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 by fopetesl
bad composition

The most powerful number in the Universe.  Zero.

Link to comment
Share on other sites

  • Moderators

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

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
 Share

×
×
  • Create New...