1. chirag2100chirag's Avatar
    hi,i am learning windows bash script like said in some tutorial books i tried to find a file using assoc | find
    like assoc | find "string.bat" >C:\Users\chirag
    but i got that access denied,but i am using local administrative account with full privilege of administrative and i am using administrative cmd instead of common cmd.please tell me whey i am getting access denied here is my code:
    """ C:\>assoc | find "string.bat" > C:\Users\chirag
    Access is denied.""""
    12-23-2017 11:56 AM
  2. TechFreak1's Avatar
    hi,i am learning windows bash script like said in some tutorial books i tried to find a file using assoc | find
    like assoc | find "string.bat" >C:\Users\chirag
    but i got that access denied,but i am using local administrative account with full privilege of administrative and i am using administrative cmd instead of common cmd.please tell me whey i am getting access denied here is my code:
    """ C:\>assoc | find "string.bat" > C:\Users\chirag
    Access is denied.""""
    Even if you have full admin priveleges on your user, you still need to run CMD with elevated priveleges.

    Hold shift + ctrl and then open CMD via left click, this will cause a user access control prompt to appear and on the user access control prompt left click "Yes".

    As "C:\Users\chirag" indicates you are actually running CMD without admin rights.

    "C:\WINDOWS\system32>" indicates you are running CMD with admin rights.
    Laura Knotek and a5cent like this.
    12-23-2017 03:08 PM
  3. chirag2100chirag's Avatar
    first i will thank you,thank you for your support.
    i did exactly what you said i opened cmd as administrator everything happened like you said like control prompt appeared and i hit yes then i tried my command but same thing happened.i tried powershell as administrator but in their same thing happenedscreenshot-1-.png
    please help me.any help will be great full.i am new to programming as first i choose windows bash to learn.i think it will be good to know the environment one is using so i choose windows.
    12-25-2017 11:34 AM
  4. TechFreak1's Avatar
    first i will thank you,thank you for your support.
    i did exactly what you said i opened cmd as administrator everything happened like you said like control prompt appeared and i hit yes then i tried my command but same thing happened.i tried powershell as administrator but in their same thing happenedClick image for larger version. 

Name:	Screenshot (1).png 
Views:	3 
Size:	70.5 KB 
ID:	138439
    please help me.any help will be great full.i am new to programming as first i choose windows bash to learn.i think it will be good to know the environment one is using so i choose windows.
    For a valid list of CMD commands, type help in the command prompt.

    Since you are new to programming I recommend you look at Bob Tabor's tutorials, the links are as follows and download visual studio express (now called visual studio community 2017):

    www.visualstudio.com/vs/visual-studio-express/


    channel9.msdn.com/Series/C-Sharp-Fundamentals-Development-for-Absolute-Beginners

    channel9.msdn.com/Niners/Bob_Tabor


    Laura Knotek likes this.
    12-26-2017 01:33 PM
  5. cheaorale's Avatar
    For a valid list of CMD commands, type help in the command prompt.

    Since you are new to programming I recommend you look at Bob Tabor's tutorials, the links are as follows and download visual studio express (now called visual studio community 2017):

    www.visualstudio.com/vs/visual-studio-express/


    channel9.msdn.com/Series/C-Sharp-Fundamentals-Development-for-Absolute-Beginners

    channel9.msdn.com/Niners/Bob_Tabor


    You still didn't answer him properly.
    10-14-2019 11:46 PM
  6. cheaorale's Avatar
    Still didn't answer at all.
    10-14-2019 11:47 PM
  7. Laura Knotek's Avatar
    Still didn't answer at all.
    Do you have the answer? If so, then please share it.
    TechFreak1 likes this.
    10-15-2019 12:35 AM
  8. TechFreak1's Avatar
    You still didn't answer him properly.
    A) The post is extremely old.

    B) The OP themselves stated they are new to programming therefore I provided links to get them started with the fundamentals.
    Laura Knotek likes this.
    10-15-2019 06:00 AM
  9. Ryujingt3's Avatar
    You still didn't answer him properly.
    @TechFreak1 was right to point out the programming fundamentals. If @chirag2100chirag wants to learn programming then Bash script isn't how to start. Programming is like learning a language, do you remember how you learnt how to read, write and speak? By learning the basics first and programming is so vast that you need to understand the core concepts first and then once you have those you can branch out to other languages.

    To answer the OP, or at least try, what happens if you run the Find command in a different location, e.g. use it to find a bat file in your Downloads folder and not Users. Please try that and also try learning more about the fundamentals of programming. It'll help you in the long term.
    Last edited by Ryujingt3; 10-17-2019 at 10:19 AM.
    TechFreak1 likes this.
    10-17-2019 10:04 AM

Similar Threads

  1. Error in Attaching files
    By sarthakmitter in forum Windows 10 Mobile
    Replies: 0
    Last Post: 12-22-2017, 03:27 PM
  2. Replies: 3
    Last Post: 12-22-2017, 02:08 PM
  3. Today's the last day to use Amazon's two-day shipping in time for Christmas
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 12-22-2017, 09:30 AM
  4. Chime in: Share your pick for the best laptop of 2017
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 12-22-2017, 09:10 AM
  5. How to stream audio over Bluetooth in Windows 10
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 12-22-2017, 08:10 AM
LINK TO POST COPIED TO CLIPBOARD