Shell - Passing a mix of variables & text problem.
Posted on 2006-05-09
This is probably something fairly simple, but i need it quite urgently so i'm going to award 500 points for and quick reply.
As you can see below I have a shell command with a mix of variables and text. The problem is with the last string bit "\Dropbox /T /E /G AUTHENTICATED USER:RC"
as i need the authenticated user bit to be in speech quotation marks too which VB wont accecpt.
Shell ("Xcacls " + path + user + "\dropbox /T /E /G AUTHENTICATED USERS:RC")
I need to VB to accept the following code, or something that will do the same job.
Shell ("Xcacls " + path + user + "\dropbox /T /E /G "AUTEHNTICATED" USERS:RC")
As you can see VB gets confused with what appears to be nested speech quotation marks, however the command will not work without the speech quotation marks around AUTHENTICATED USERS.
I need this ASAP for I would be grateful for some urgent help, hence awarding 500 points.