المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Complex Question



C# Programming
05-26-2009, 01:51 PM
Hi pals,

I am trying to create a small utility which can block folders from direct access. For this purpose, I have a textbox in my form and a two buttons namely: browse and apply.

Now, whenever the user clicks on browse, the Open file dialog box appears and whatever folder has been selected by the user is displayed in the textbox.

Now, comes the major problem. In order to block the particular folder selected by the user, I have to generate two batch files (files with .bat extension) on the ******** of the folder, that has to be locked. Like if the folder to be blocked is in this 'C:\\myfolder\\subfolder\\lockfolder' ********, where lockfolder is the particular folder which I have to lock, then in that case, I have to generate a batch file in 'C:\\my folder\\subfolder\' that will lock the folder 'lockfolder'.

Any Idea how to do that..... please recommend.

Sorry for my poor english,
Cheers to you,
Rajdeep.NET http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif