Windows 10: Need help with XCOPY in Win 10 .bat file

Discus and support Need help with XCOPY in Win 10 .bat file in Windows 10 Software and Apps to solve the problem; Trying to automate one minor function in one of my .bat files and can't work out the "how".Trying to copy one file from a directory on my HDD to... Discussion in 'Windows 10 Software and Apps' started by DaveCorio, Dec 8, 2021.

  1. DaveCorio Win User

    Need help with XCOPY in Win 10 .bat file


    Trying to automate one minor function in one of my .bat files and can't work out the "how".Trying to copy one file from a directory on my HDD to another directory on the same drive. But here's where it gets tricky:The "source" directory contains 15 to 20 files with the same basic name - call it ABCDEEach file is dated, both in the name and in the date last modified - for example ABCDE_2021-12-07_20-00-25.mdb date modified 12/7/2021 3:00 PM The 20-00-25 is the time in UTC and is part of the generated file nameThese files are created several times a day whenever I modify th

    :)
     
    DaveCorio, Dec 8, 2021
    #1
  2. jmt20 Win User

    XCopy not working on Win10

    Hi,

    There is a thread on this topic but it doesn't show a resolution.

    Has something changed where xcopy doesn't work on Win10?

    I am looking to copy files and I can't get even the simpliest .bat file to work. Copying 1 file to another folder on the C directory.

    @EchoOff xcopy C:\files\test.bat C:\files-to\

    Any suggestions are appreciated!

    thanks,

    joan
     
    jmt20, Dec 8, 2021
    #2
  3. Help with a .bat file.

    I have this .bat file that I've been messing around with:


    Need help with XCOPY in Win 10 .bat file [​IMG]


    I got it to open the Windows Update interface:


    Need help with XCOPY in Win 10 .bat file [​IMG]


    However, I need the .bat file to go a step further and auto click the Check for updates button circled in orange.

    Can someone help me to finish editing the .bat file so that when I click the .bat file, the process of manually checking for Windows Updates becomes fully automated?
     
    EyeInTheSky, Dec 8, 2021
    #3
  4. Need help with XCOPY in Win 10 .bat file

    Updating .bat File, Removing Default Apps

    Hi SightUp.

    Don't have a bat file but step 4 in Option 2 will give you complete list and you can mod yours.

    Uninstall Apps in Windows 10


    Ken
     
    Caledon Ken, Dec 8, 2021
    #4
Thema:

Need help with XCOPY in Win 10 .bat file

Loading...
  1. Need help with XCOPY in Win 10 .bat file - Similar Threads - Need help XCOPY

  2. Need help with XCOPY in Win 10 .bat file

    in Windows 10 Network and Sharing
    Need help with XCOPY in Win 10 .bat file: Trying to automate one minor function in one of my .bat files and can't work out the "how".Trying to copy one file from a directory on my HDD to another directory on the same drive. But here's where it gets tricky:The "source" directory contains 15 to 20 files with the same...
  3. Need help with XCOPY in Win 10 .bat file

    in Windows 10 Gaming
    Need help with XCOPY in Win 10 .bat file: Trying to automate one minor function in one of my .bat files and can't work out the "how".Trying to copy one file from a directory on my HDD to another directory on the same drive. But here's where it gets tricky:The "source" directory contains 15 to 20 files with the same...
  4. Bat file

    in Windows 10 Gaming
    Bat file: I have a bat fileI am improving it bit by bit till I have reached But not i have added a warning to it before a commandI now want to make that line font size Bigger than the others How can I do that ??So here is the Batch file content@ECHO OFF echo...
  5. Bat file

    in Windows 10 Ask Insider
    Bat file: Good morning/evening/night, I wanted to create a batch file or an exe that can change options inside the gui of an application (the application is cisco webex) (if you are familliar with webex i want to change the audio or turn it to music mode witha batch file) but i am...
  6. Need help with notepad program (.bat)

    in Windows 10 Ask Insider
    Need help with notepad program (.bat): Ok, so I have a notepad program working and all using the .bat file extension on MY computer, but I want it to work on anybody’s. Here’s the code: @echo off set number=0 :benchmark start C:\Users\myname\Documents\benchmark.txt set /a number=%number%+1 echo Tabs:...
  7. Need some Help with CMD and .bat files

    in Windows 10 Ask Insider
    Need some Help with CMD and .bat files: I have .bat file thats in a folder in my desktop (location). When i open the bat file i need it to run in the folder that's it's located (in the folder thats on my desktop) However, when i run the bat file it runs at the default location. So isn't there anyway I can change...
  8. Windows 10 not letting me make bat file need help

    in Windows 10 Network and Sharing
    Windows 10 not letting me make bat file need help: So as the title suggests Win 10 isn't letting me make a bat file. So I make a test file called start.txt I rename it to start.bat and on the right hand side of the file it still says its a text document I think to myself that its odd and input my code into the file just for...
  9. need help creating a file/folder listing *.bat file

    in Windows 10 Support
    need help creating a file/folder listing *.bat file: pretty much as the subject states, l had one in the past but l cant remember where l put it and forget how it was written. basically l just want a script that lists files and folders in a specific directory without listing the sub folders within that dir (just a bog standard...
  10. Help with a .bat file.

    in Windows 10 Support
    Help with a .bat file.: I have this .bat file that I've been messing around with: [img] I got it to open the Windows Update interface: [img] However, I need the .bat file to go a step further and auto click the Check for updates button circled in orange. Can someone help me to finish...