Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak

To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak

Scheduled Pinned Locked Moved C#
csharpquestiondotnetalgorithmstools
33 Posts 13 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Guffa

    What's your problem? I try to be helpful, and what do I get for that? You call it useless and hurtful. I can understand if you don't find the advice very helpful if it's not exactly what you are looking for, but it's certainly not useless. If you find it hurtful, then it's certainly not my fault, and something that you have to work on yourself. If you can't even read well meaning advice without being hurt, you should definitely not be asking questions in a forum, but rather seek professional help.

    Despite everything, the person most likely to be fooling you next is yourself.

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #8

    Haven't you noticed a pattern yet? He writes these sob story posts after he receives answers he doesn't like! This is the second time. When does it get old? He posts absolute beginner-level posts, gets told to learn before he posts a few times, then he writes a sob story on how he's just trying to learn and English isn't his first language etc etc. All to start over the cycle of hand-holding for another 10 posts before he throws out another thread like the OP.

    Check out the CodeProject forum Guidelines[^]

    F 1 Reply Last reply
    0
    • L Lost User

      Haven't you noticed a pattern yet? He writes these sob story posts after he receives answers he doesn't like! This is the second time. When does it get old? He posts absolute beginner-level posts, gets told to learn before he posts a few times, then he writes a sob story on how he's just trying to learn and English isn't his first language etc etc. All to start over the cycle of hand-holding for another 10 posts before he throws out another thread like the OP.

      Check out the CodeProject forum Guidelines[^]

      F Offline
      F Offline
      fly904
      wrote on last edited by
      #9

      Maybe the problem is that there is no documentation on MSDN for Rajdeep.NET, I certainly haven't seen any.

      My failometer has shot off the end of the scale! I seem to have misplaced my ban button.. no wait... found it!

      1 Reply Last reply
      0
      • L Lost User

        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: 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: 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

        D Offline
        D Offline
        DaveyM69
        wrote on last edited by
        #10

        Answer the question I asked before with a justifiable answer (that doesn't include reasons why a 'malicious' app in .net could be unsucessful) an I'll help you all I can, whenever I can, just like everyone else on CodeProject. Until then, I'm not prepared to help you any further I'm afraid as the things you've been asking are suspicious - even more so when combined.

        Dave
        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
        Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
        Why are you using VB6? Do you hate yourself? (Christian Graus)

        L 1 Reply Last reply
        0
        • L Lost User

          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: 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: 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

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #11

          Normally I don't offer advice to people, but I think you need some help with your people skills here. Over a period of time, you've managed to arouse the suspicions of the regulars in the forum, and you've posted questions that show a lack of understanding about .NET, hence the reason that you have been advised to purchase books on C#. You may want to stop using this identity, create a new user and use that to post in future. Before you do this though, stop and think about why people have been talking like this to you. These guys are good guys, and they give a lot of advice in the forums. It may be time for you to face the fact that the problem isn't them, but you. Yes, English isn't your first language but it's the same for a lot of the others who post here, many of whom successfully get answers to their problems.

          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

          As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

          My blog | My articles | MoXAML PowerToys | Onyx

          L 1 Reply Last reply
          0
          • L Lost User

            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: 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: 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

            H Offline
            H Offline
            Henry Minute
            wrote on last edited by
            #12

            In the reply I gave to the post that you refer to, I gave you a phrase to google for. The first page of the results for that search all showed how to achieve what you were trying to do. Please explain to me how that is either useless or hurtful. You are a spoiled, lazy deceitful little brat, aren't you? Just in case you were wondering, that last bit was meant to be hurtful.

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            L 2 Replies Last reply
            0
            • H Henry Minute

              In the reply I gave to the post that you refer to, I gave you a phrase to google for. The first page of the results for that search all showed how to achieve what you were trying to do. Please explain to me how that is either useless or hurtful. You are a spoiled, lazy deceitful little brat, aren't you? Just in case you were wondering, that last bit was meant to be hurtful.

              Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #13

              Ola uno como yo person,                   Gracias por las todas de su dame^.   Que estoy las todas que yo has darte.   Si, por que soy esta^ muy perozoso amigo de usted.   Gracias para las todos que usted tenga bonitos.                                     Troy

              1 Reply Last reply
              0
              • H Henry Minute

                In the reply I gave to the post that you refer to, I gave you a phrase to google for. The first page of the results for that search all showed how to achieve what you were trying to do. Please explain to me how that is either useless or hurtful. You are a spoiled, lazy deceitful little brat, aren't you? Just in case you were wondering, that last bit was meant to be hurtful.

                Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #14

                :laugh: Ola uno como yo person,                   Gracias por las todas de su dame^.   Que estoy las todas que yo has darte.   Si, por que soy esta^ muy perozoso amigo de usted.   Gracias para las todos que usted tenga bonitos.                                     Troy :zzz:   :rolleyes:   :rolleyes:   :omg:   :wtf: :confused::~

                L 1 Reply Last reply
                0
                • L Lost User

                  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: 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: 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

                  M Offline
                  M Offline
                  Mycroft Holmes
                  wrote on last edited by
                  #15

                  I'd seriously think about taking Pete's advice, your list includes some of the most helpful and knowledgable people on the forum. Oh and the most persistent, I gave up on you weeks ago. You need to step back, evaluate your position and make some adjustments to your attitude, it stinks. I think you will find a great lack of sympathy on this site from here on!

                  Never underestimate the power of human stupidity RAH

                  L 1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    First, if you can't figure out how to write to a text file in the folder path THAT YOU ALREADY HAVE, then you really do need to pick up a beginners book on C# and work through it. This is not meant to be hurtful in any sense of the word. It really does show your lack of knowledge on how to do something so trivial and that you really do need to learn the basics. On top of that, I can't think of a single, good, supportable solution to block and unblock folders using batch files and because of that, I have to question your knowledge of Windows Security and NTFS.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007, 2008

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #16

                    Dave Kreskowiak wrote:

                    On top of that, I can't think of a single, good, supportable solution to block and unblock folders using batch files and because of that, I have to question your knowledge of Windows Security and NTFS.

                    Hi Dave, Ofcourse theres a brilliant and supported solution to block folders using batch files!!! Here's how: There are plenty of software which lock your folders, some are free, other costs a lot of money. Why you’ll waste time and money when you could do it with your notepad. * Consider you want to lock a folder named PICS in your D:\, whose path is D:\PICS * Now open the Notepad and type the following ren pics pics.{21EC2020-3AEA-1069-A2DD-08002B30309D} * Where pics is your folder name. Save the text file as loc.bat in the same drive. * Open another new notepad text file and type the following ren pics.{21EC2020-3AEA-1069-A2DD-08002B30309D} pics * Save the text file as key.bat in the same drive. Usage: * To lock the pics folder, simply click the loc.bat and it will transform into control panel icon which is inaccessible. * To unlock the folder click the key.bat file. Thus the folder will be unlocked and the contents are accessible. That’s all. Is that clear o you now! Cheers, Rajdeep.NET :zzz:

                    D 1 Reply Last reply
                    0
                    • L Lost User

                      You still haven't explained your projects general purpose. Many of your threads constitute potential malware or other type of malicious bits and pieces, and people put pieces of a puzzle together. Furthermore, you've shown no effort to learn the language or at least the basics before you begin posting, most of the stuff you ask is covered in the MSDN documentation as extremely basic tasks, so it's apparent you haven't began searching the most common place for answers, nevermind extensive (or some would consider basic) searching of crawling through google. I still ask, what is the general purpose of your application, what does it do and why is it doing it? Why are you hiding console applications, copying applications and locking folders. What is the purpose?

                      Check out the CodeProject forum Guidelines[^]

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #17

                      Hi Eliotta, For your kind information, I am upto no malicious stuff. Rather, I am focusing all my attention towards the security angle, imlementing .NET. I need to block folders for security purposes and not for heuristic ones. If it would had been for me, then I would have never consulted you guys, since I am doing it by using a simple batch trick which I already posted as a reply to Dave Kreskowiak.... But this is for users, not just for me or you. Yeah I agree that replicating files and hiding console applications sounds malicious but I am just trying to test my software. Its almost done but, the only problem I am facing is in the question. I need to hide my console application, because it will take a lot of time to process and so I only wanted to avoid the console window for the users. Thats all.... Otherwise, I am not going for anything like the dotnut or the sharpie virus because I am just 16 now. And I am trying to focus entirely on development else huer. Cheers, Rajdeep.NET :(

                      C L 2 Replies Last reply
                      0
                      • D DaveyM69

                        Answer the question I asked before with a justifiable answer (that doesn't include reasons why a 'malicious' app in .net could be unsucessful) an I'll help you all I can, whenever I can, just like everyone else on CodeProject. Until then, I'm not prepared to help you any further I'm afraid as the things you've been asking are suspicious - even more so when combined.

                        Dave
                        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
                        Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
                        Why are you using VB6? Do you hate yourself? (Christian Graus)

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #18

                        There are plenty of software which lock your folders, some are free, other costs a lot of money. Why you’ll waste time and money when you could do it with your notepad. * Consider you want to lock a folder named PICS in your D:\, whose path is D:\PICS * Now open the Notepad and type the following ren pics pics.{21EC2020-3AEA-1069-A2DD-08002B30309D} * Where pics is your folder name. Save the text file as loc.bat in the same drive. * Open another new notepad text file and type the following ren pics.{21EC2020-3AEA-1069-A2DD-08002B30309D} pics * Save the text file as key.bat in the same drive. Usage: * To lock the pics folder, simply click the loc.bat and it will transform into control panel icon which is inaccessible. * To unlock the folder click the key.bat file. Thus the folder will be unlocked and the contents are accessible. Thats is what I want to do using C#.NET and nothing malicious in it, I guess. I swear I am upto no malicious thing. I cant make things to be understand properly because I am poor in english and that turns to be malicious, I dont know why!? Rajdeep.NET :sigh:

                        C 1 Reply Last reply
                        0
                        • L Lost User

                          :laugh: Ola uno como yo person,                   Gracias por las todas de su dame^.   Que estoy las todas que yo has darte.   Si, por que soy esta^ muy perozoso amigo de usted.   Gracias para las todos que usted tenga bonitos.                                     Troy :zzz:   :rolleyes:   :rolleyes:   :omg:   :wtf: :confused::~

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #19

                          Is that a solution???!!! If yes, then please translate..... Is it in french, german, russian or CheckoSlovakian? :^)

                          1 Reply Last reply
                          0
                          • M Mycroft Holmes

                            I'd seriously think about taking Pete's advice, your list includes some of the most helpful and knowledgable people on the forum. Oh and the most persistent, I gave up on you weeks ago. You need to step back, evaluate your position and make some adjustments to your attitude, it stinks. I think you will find a great lack of sympathy on this site from here on!

                            Never underestimate the power of human stupidity RAH

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #20

                            Sorry! :(

                            1 Reply Last reply
                            0
                            • P Pete OHanlon

                              Normally I don't offer advice to people, but I think you need some help with your people skills here. Over a period of time, you've managed to arouse the suspicions of the regulars in the forum, and you've posted questions that show a lack of understanding about .NET, hence the reason that you have been advised to purchase books on C#. You may want to stop using this identity, create a new user and use that to post in future. Before you do this though, stop and think about why people have been talking like this to you. These guys are good guys, and they give a lot of advice in the forums. It may be time for you to face the fact that the problem isn't them, but you. Yes, English isn't your first language but it's the same for a lot of the others who post here, many of whom successfully get answers to their problems.

                              "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                              As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                              My blog | My articles | MoXAML PowerToys | Onyx

                              L Offline
                              L Offline
                              Lost User
                              wrote on last edited by
                              #21

                              Thanks for the advice, PS: Advice is the only thing that can be given to anyone free of cost!

                              R 1 Reply Last reply
                              0
                              • 0 0x3c0

                                My answer was not intended to be hurtful; if you took it that way then I apologise. I didn't realise that posting the name of a class would be offensive. However, you received the answer to the precise question you asked, which was (in my eyes): how do I save a .bat file to a given location? Anyway, to the point at hand:

                                Rajdeep.NET wrote:

                                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

                                Just to point out, the path of the file you pass to the StreamWriter constructor doesn't have have to be a text file. You could create "FilePath.bat" in situ, which would eliminate the need for File.Move This also goes a long way towards answering your full question. If you have the folder path from a DirectoryInfo instantiation, then passing this path to the StreamWriter(string) constructor will create the file in the given location. If you want the parent directory, then Path.GetDirectoryName can be used Incidentally, the phrase "location where the folder is saved" isn't strictly accurate. For the sake of learning, you could have typed "the folder's parent directory"

                                L Offline
                                L Offline
                                Lost User
                                wrote on last edited by
                                #22

                                Thank you, that was useful and eyeopening. :)

                                1 Reply Last reply
                                0
                                • F fly904

                                  Your question is idiotic and lacks common sense.

                                  Rajdeep.NET wrote:

                                  I have to get the folder path using the DirectoryInfo[] method.

                                  So you have the folder path.

                                  Rajdeep.NET wrote:

                                  But how will I generate a batch file (txt file renamed as .bat executable) in the location where the folder is saved?

                                  You have the folder path and the new name of the file you are creating. And you're still asking how to save it in the folder! Hang on a second while I search for something on Google[^].... WOW! What a surprise! The first link tells me exactly how to do it!

                                  My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #23

                                  I apologise...

                                  1 Reply Last reply
                                  0
                                  • G Guffa

                                    What's your problem? I try to be helpful, and what do I get for that? You call it useless and hurtful. I can understand if you don't find the advice very helpful if it's not exactly what you are looking for, but it's certainly not useless. If you find it hurtful, then it's certainly not my fault, and something that you have to work on yourself. If you can't even read well meaning advice without being hurt, you should definitely not be asking questions in a forum, but rather seek professional help.

                                    Despite everything, the person most likely to be fooling you next is yourself.

                                    L Offline
                                    L Offline
                                    Lost User
                                    wrote on last edited by
                                    #24

                                    Sorry... From now on, I'll try to help myself out, rather wandering around the forum. Because, I dont want that others be harrased just for my stupid posts. I really apologize....:~

                                    1 Reply Last reply
                                    0
                                    • L Lost User

                                      Hi Eliotta, For your kind information, I am upto no malicious stuff. Rather, I am focusing all my attention towards the security angle, imlementing .NET. I need to block folders for security purposes and not for heuristic ones. If it would had been for me, then I would have never consulted you guys, since I am doing it by using a simple batch trick which I already posted as a reply to Dave Kreskowiak.... But this is for users, not just for me or you. Yeah I agree that replicating files and hiding console applications sounds malicious but I am just trying to test my software. Its almost done but, the only problem I am facing is in the question. I need to hide my console application, because it will take a lot of time to process and so I only wanted to avoid the console window for the users. Thats all.... Otherwise, I am not going for anything like the dotnut or the sharpie virus because I am just 16 now. And I am trying to focus entirely on development else huer. Cheers, Rajdeep.NET :(

                                      C Offline
                                      C Offline
                                      Colin Angus Mackay
                                      wrote on last edited by
                                      #25

                                      Rajdeep.NET wrote:

                                      I need to hide my console application, because it will take a lot of time to process and so I only wanted to avoid the console window for the users. Thats all....

                                      Change the project properties for the exe to a Windows application. Then it won't show a console, and since your application doesn't show any windows (I hope) then it will just run in the background.

                                      Man who stand on hill with mouth open wait long time for roast duck to drop in

                                      1 Reply Last reply
                                      0
                                      • L Lost User

                                        There are plenty of software which lock your folders, some are free, other costs a lot of money. Why you’ll waste time and money when you could do it with your notepad. * Consider you want to lock a folder named PICS in your D:\, whose path is D:\PICS * Now open the Notepad and type the following ren pics pics.{21EC2020-3AEA-1069-A2DD-08002B30309D} * Where pics is your folder name. Save the text file as loc.bat in the same drive. * Open another new notepad text file and type the following ren pics.{21EC2020-3AEA-1069-A2DD-08002B30309D} pics * Save the text file as key.bat in the same drive. Usage: * To lock the pics folder, simply click the loc.bat and it will transform into control panel icon which is inaccessible. * To unlock the folder click the key.bat file. Thus the folder will be unlocked and the contents are accessible. Thats is what I want to do using C#.NET and nothing malicious in it, I guess. I swear I am upto no malicious thing. I cant make things to be understand properly because I am poor in english and that turns to be malicious, I dont know why!? Rajdeep.NET :sigh:

                                        C Offline
                                        C Offline
                                        Colin Angus Mackay
                                        wrote on last edited by
                                        #26

                                        Rajdeep.NET wrote:

                                        it will transform into control panel icon which is inaccessible

                                        It hasn't really locked it. It has just made the file unusable in Window Explorer - You can still access the file via other routes.

                                        Man who stand on hill with mouth open wait long time for roast duck to drop in

                                        L 1 Reply Last reply
                                        0
                                        • C Colin Angus Mackay

                                          Rajdeep.NET wrote:

                                          it will transform into control panel icon which is inaccessible

                                          It hasn't really locked it. It has just made the file unusable in Window Explorer - You can still access the file via other routes.

                                          Man who stand on hill with mouth open wait long time for roast duck to drop in

                                          L Offline
                                          L Offline
                                          Lost User
                                          wrote on last edited by
                                          #27

                                          Hi Colin, Can you suggest me any such route via which I can access the folder? I thought that it was blocked while it transformed into the control panel icon and if tried to access it, it would navigate to the Control panel.

                                          D 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups