Page 1 of 3 123 LastLast

  1. Joined : Mar 2016
    Posts : 45
    win 10
       4 Weeks Ago #1

    problem saving .bat file


    In Win 10, want to save .bat file in a Program directory. Downloaded a program in a zip file and unzipped it to a Program Files (x86) folder. This folder has other .bat files but one was missing. Now have it but cannot save it in the folder.
    I am the owner of the folder.
      My System SpecsSystem Spec


  2. Joined : Jan 2015
    UK, Midlands
    Posts : 6,238
    Win 10 Pro (1607)
       4 Weeks Ago #2

    Hi, I don't know why you can't access it- you haven't quoted the message I guess you've seen.

    One way you can certainly do this is to SHIFT click restart and navigate to a command prompt, and (cautiously, making sure you are doing what you intend) copy your file into that folder.

    As Windows isn't running, permissions problems won't apply.

    If not familiar with the command prompt, get a copy of Kyhi's boot DVD /flash drive from the top of the Software and Apps section here, boot from that to what looks like Windows, and thus copy your file.
      My System SpecsSystem Spec


  3. Joined : Oct 2015
    Posts : 1,278
    Windows 10 Pro X64
       4 Weeks Ago #3

    Hi,

    I am the owner of the folder.
    Maybe but do you have "Write" permissions ?

    Cheers,
      My System SpecsSystem Spec


  4. Joined : Apr 2015
    Posts : 43
    Windows 10
       4 Weeks Ago #4

    Yea. is a security / permissions thing.

    I know it's a pain but save the .bat file to Desktop then drag and drop to Program Files. Then you'll be prompted for admin permission. Click yes.
      My System SpecsSystem Spec


  5. Joined : May 2015
    Central IL
    Posts : 2,959
    EL Capitan
       4 Weeks Ago #5

    ComputerGeek said: View Post
    Yea. is a security / permissions thing.

    I know it's a pain but save the .bat file to Desktop then drag and drop to Program Files. Then you'll be prompted for admin permission. Click yes.
    There is no security/permissions bug. We no longer use batch files with Windows. You use a script to run what you ned if it is for anything in particular.

    Batch files were needed during DOS days. They will no longer work in how people think that they would when it comes to the newer Windows.
      My System SpecsSystem Spec


  6. Joined : Oct 2015
    Posts : 1,278
    Windows 10 Pro X64
       4 Weeks Ago #6

    Hi,

    We no longer use batch files with Windows
    Who are "we" ?
    .bat is just a file extension that stems from the DOS era but you can still use it in W10 if the command lines are properly written for the W10 command line interpreter.

    Cheers,
      My System SpecsSystem Spec


  7. Joined : Mar 2016
    Posts : 45
    win 10
       4 Weeks Ago #7

    dalchina said: View Post
    Hi, I don't know why you can't access it- you haven't quoted the message I guess you've seen.

    One way you can certainly do this is to SHIFT click restart and navigate to a command prompt, and (cautiously, making sure you are doing what you intend) copy your file into that folder.

    As Windows isn't running, permissions problems won't apply.

    If not familiar with the command prompt, get a copy of Kyhi's boot DVD /flash drive from the top of the Software and Apps section here, boot from that to what looks like Windows, and thus copy your file.
    After the folder was renamed the ownership changed. After fixing was able to save. Thank you.
      My System SpecsSystem Spec


  8. Joined : Aug 2014
    Forever West
    Posts : 2,380
    Win10 Home and Pro, Win7 Home, Linux Mint
       4 Weeks Ago #8

    I still use a few .bat/batch files to accomplish something in Win10 so they are not actually dead. One example is for flushing the DNS and the other is for removing OneDrive, both on my Desktop and don't need to open Command Prompt first, just double-click. The biggest difference I see between Win10 Command Prompt and older versions is some of the DOS-type commands are either missing or not functional. A lot of the commands here still work even though the page mentions WinXP:
    Command-line reference A-Z
      My System SpecsSystem Spec


  9. Joined : May 2015
    Central IL
    Posts : 2,959
    EL Capitan
       4 Weeks Ago #9

    fdegrove said: View Post
    Hi,
    Who are "we" ?
    .bat is just a file extension that stems from the DOS era but you can still use it in W10 if the command lines are properly written for the W10 command line interpreter.
    That would be everyone that works with Windows to have it perform certain functions. A Script is a lot safer than a batch file. Also Scripts allow you to do a lot more than a batch file. There is no Command Line Interpreter any more. Powershell is taking its place, Command is going away because it is also outdated and a holdover from the old days.

    Those that still want to use batch files are holdovers from the DOS days. Again no one uses them anymore since it is a outdated method. Break Your Batch Habit and Move to PowerShell | PowerShell content from Windows IT Pro
      My System SpecsSystem Spec


  10. Joined : Nov 2013
    Central Florida
    Posts : 323
    Win 7 Pro/32, Win 10 Pro/64/32
       4 Weeks Ago #10

    Bull Bro!

    Buried deep within Windows, is DOS. That simply means "Disk Operating System".
    Windows won't work, without one.
    It's been right there since the first version of Windows hit the market.

    Regardless of the version of Windows, they all will run Batch Files. I have several that I use every day,
    to do disk cleanup, backup data files, and perform other repetitive jobs.

    When I set up a new version of Windows, I use many batch files to install things into Windows and
    tweak it and tune it for maximum efficiency. Batch files are just a list of DOS commands and require
    very little knowledge or training. On the other hand learning the Scripting language is beyond the
    capability or interest of most users.
    I've been a PC tech since 1980 and I still don't know how to write 'Scripts'. And at 73 I'm probably
    too old to learn it now.

    I write batch files in Wordpad, then save them with the extension set to .bat and the file type set to "All Files".
    If a batch file gets saved with the .txt extension, that can be renamed to .bat easily.

    Cheers Mates,
    TechnoMage
      My System SpecsSystem Spec


 
Page 1 of 3 123 LastLast


Similar Threads
Thread Forum
Try saving a copy instead.This file is locked by another app right now
This has been going on for as long as I've had Windows 10 and I continue to be unable to find a solution. For a while, I was finding other people on various forums with the same problem - some of them were talking about a COM surrogate error - but...
General Support
Lost bookmarks when saving as HTM file
I'm new here & have a problem. I’m using Windows 10 & IE browser & want to save my bookmarks for install on new larger hard drive. When saving most bookmarks in folders will save, but other folders will be empty or gone totally. I’m using the...
Browsers and Email
Capture an image by saving it in a file esd
Hi Using Windows 10 ADK v1511, how do I capture an image directly by saving it in an esd file? Also, how do I add an image volume, to an esd file? Thanks Bye
Installation and Setup
Saving an MS Execl csv to a txt file
Ok I am a bit stuck here as I need to save a very large csv file to a txt file that has a certain format for it to be used in another application as an import file, I will attach the sample csv files here My sheet will look like this 46311 ...
Software and Apps
Saving the esd file
Hi When Windows 10 downloads a new build from Windows Update, how can I save the esd file to create an installation DVD running on each computer? Thanks Bye
Installation and Setup
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 11:38.
Find Us
Twitter Facebook Google+



Windows 10 Forums