I've had to set up a batch file in which a user logging on to citrix has to run in order to use a certain application. This batch file requires the user to load in a registry component so that the application will run properly (as the app would not run over terminal services otherwise).
Of course the user gets a prompt asking if they are sure they want to modify the registry. The issue is that they must say yes for the program to work. I would therefore like to have the next line of the batch, which is supposed to execute the application, only run the application if the user in fact replied yes to the system prompt asking if they want to modify the registry. It would not matter whether the command executing the app is in the batch file or not: the registry modification must be made for the application to run, but I would prefer to leave the command in the batch file. The second choice to this problem would be to somehow have windows not prompt the user regarding the registry change and just make the change without asking, but I do not like that choice.
Any ideas?
Thank you.
Of course the user gets a prompt asking if they are sure they want to modify the registry. The issue is that they must say yes for the program to work. I would therefore like to have the next line of the batch, which is supposed to execute the application, only run the application if the user in fact replied yes to the system prompt asking if they want to modify the registry. It would not matter whether the command executing the app is in the batch file or not: the registry modification must be made for the application to run, but I would prefer to leave the command in the batch file. The second choice to this problem would be to somehow have windows not prompt the user regarding the registry change and just make the change without asking, but I do not like that choice.
Any ideas?
Thank you.