How to create a folder based on user input?
Posted: 07 Feb 2011 15:45
I need to write a script that creates folders based on what a user wants. For instance, I want them to be able to execute the batch file, and be prompted to enter the name of the folder to be created. Once a name is entered, the user hits ok and the folder structure is created.
Also, if possible, I needed the script to add/modify NTFS permissions for the folders it creates. Some of the permissions will be permissions that have nothing to do with the user that is executing the script. The user will also be a normal user with standard user privileges. Is there a way to have the script add permissions that have nothing to do with the user? I'm guessing that the script would have to run under a user account that has the necessary privileges. The only way I was able to think of how to do this was with a scheduled task, where the credentials are stored within the job with the user having no access to the actual credentials.
Any ideas?
Also, if possible, I needed the script to add/modify NTFS permissions for the folders it creates. Some of the permissions will be permissions that have nothing to do with the user that is executing the script. The user will also be a normal user with standard user privileges. Is there a way to have the script add permissions that have nothing to do with the user? I'm guessing that the script would have to run under a user account that has the necessary privileges. The only way I was able to think of how to do this was with a scheduled task, where the credentials are stored within the job with the user having no access to the actual credentials.
Any ideas?