Click here to Skip to main content
15,899,314 members
Home / Discussions / C#
   

C#

 
AnswerRe: datagridtextbox column text changed event problem Pin
Henry Minute26-May-09 12:19
Henry Minute26-May-09 12:19 
GeneralRe: datagridtextbox column text changed event problem Pin
Shuaib wasif khan26-May-09 12:30
Shuaib wasif khan26-May-09 12:30 
AnswerRe: datagridtextbox column text changed event problem Pin
jaypatel51227-May-09 0:32
jaypatel51227-May-09 0:32 
QuestionNeed suggestion on getting column data from excel without using ADO or Excel Interops Pin
DeepToot26-May-09 10:29
DeepToot26-May-09 10:29 
AnswerRe: Need suggestion on getting column data from excel without using ADO or Excel Interops Pin
Dave Kreskowiak26-May-09 16:21
mveDave Kreskowiak26-May-09 16:21 
GeneralRe: Need suggestion on getting column data from excel without using ADO or Excel Interops Pin
DeepToot27-May-09 8:12
DeepToot27-May-09 8:12 
GeneralRe: Need suggestion on getting column data from excel without using ADO or Excel Interops Pin
Dave Kreskowiak27-May-09 12:01
mveDave Kreskowiak27-May-09 12:01 
QuestionTo Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Rajdeep.NET is BACK26-May-09 8:14
Rajdeep.NET is BACK26-May-09 8:14 
Rajdeep.NET (Thats me) wrote:
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 location of the folder, that has to be locked. Like if the folder to be blocked is in this 'C:\\myfolder\\subfolder\\lockfolder' location, 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


Sigh | :sigh: Sigh | :sigh: Sigh | :sigh:
So many replies but all useless and hurtful...... I hope that you guys should had read the question properly before commenting. Some said, "Learn to google", while some said, "learn C#"!!! Someone even said that I was upto some malicious thing. What a DUMB thinking!!!! I wonder, how I could create a virus or any other malware stuff using .NET?! Wont the to be infected system require .NET framework to be installed already....before hand in order to make the .exe malware functioning? Or will my virus show "Invalid Win32 Application" || "The application failed to initialize properly"???!!!! Laugh | :laugh:

Why comment when you are not at all capable for sorting out my problem or suggesting a comprehensive way to solve it (I dont mean that you directly handover a code to me, because I know that you wont be paid for writing codes for me) All sort of British Mumbo Jumbo prevails here, it seems. And I remember, even somebody said that all my postings were flagged RED!

Now, let me directly come to the point. Whats so funny about my question?! Some said that I have to use the StreamWriter method and yes, I am familiar to that ofcourse. I ain't idiot. Actually my way of posting the question was incorrect. Thats it. I am not a Graduate in English as you all are and neither is my mother tongue english.

So here I am once again to explain my problem more comprehensively:

I know that I have to use the StreamWriter method and create a text file, where I'll enter the required execution parametres and then convert it to .bat using the File.Move() method. But thats not the problem at all actually.

I have to get the folder path using the DirectoryInfo[] method. But how will I generate a batch file (txt file renamed as .bat executable) in the location where the folder is saved?

Thats my question.....


Cheers,
Rajdeep.NETMad | :mad:
AnswerRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Ian McCaul26-May-09 8:26
Ian McCaul26-May-09 8:26 
AnswerRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
fly90426-May-09 8:46
fly90426-May-09 8:46 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Rajdeep.NET is BACK26-May-09 20:13
Rajdeep.NET is BACK26-May-09 20:13 
AnswerRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Dave Kreskowiak26-May-09 9:11
mveDave Kreskowiak26-May-09 9:11 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Rajdeep.NET is BACK26-May-09 19:32
Rajdeep.NET is BACK26-May-09 19:32 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Dave Kreskowiak27-May-09 1:11
mveDave Kreskowiak27-May-09 1:11 
AnswerRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
EliottA26-May-09 10:11
EliottA26-May-09 10:11 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Rajdeep.NET is BACK26-May-09 19:42
Rajdeep.NET is BACK26-May-09 19:42 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Colin Angus Mackay26-May-09 21:05
Colin Angus Mackay26-May-09 21:05 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
EliottA27-May-09 2:50
EliottA27-May-09 2:50 
AnswerRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
0x3c026-May-09 10:39
0x3c026-May-09 10:39 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Rajdeep.NET is BACK26-May-09 20:08
Rajdeep.NET is BACK26-May-09 20:08 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Guffa26-May-09 10:40
Guffa26-May-09 10:40 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
EliottA26-May-09 10:45
EliottA26-May-09 10:45 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
fly90426-May-09 10:48
fly90426-May-09 10:48 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Rajdeep.NET is BACK26-May-09 20:21
Rajdeep.NET is BACK26-May-09 20:21 
AnswerRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
DaveyM6926-May-09 10:49
professionalDaveyM6926-May-09 10:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.