Windows 10: Batch file question

Discus and support Batch file question in Windows 10 Gaming to solve the problem; Sorry was not sure where to post this.I have this batch file that makes a copy a master file naming it Copy_Registration.accdb. I am wondering if there... Discussion in 'Windows 10 Gaming' started by Ordnance1, May 31, 2024.

  1. Ordnance1 Win User

    Batch file question


    Sorry was not sure where to post this.I have this batch file that makes a copy a master file naming it Copy_Registration.accdb. I am wondering if there is a way to delete the current version of Copy_Registration.accdb before making the copy of the master file?@echo on cd C:\ if not exist "C:\FERegistration" mkdir "C:\FERegistration" copy /V /Y "C:\Users\"%USERNAME%"\OneDrive\Washington State FOE Convention Registration\Distribution\Master File\Registration.accdb" "C:\FERegistration\Copy_Registration.accdb" Start C:\FERegistration\Copy_Registration.accdb" EXIT /b

    :)
     
    Ordnance1, May 31, 2024
    #1
  2. oily_17 Win User

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, May 31, 2024
    #2
  3. LesFerch Win User
    Batch file question

    For help with batch files, I recommend asking your question at elevenforum.com. There are lots of batch file enthusiasts there that will be happy to help out.
     
    LesFerch, May 31, 2024
    #3
  4. Batch file question

    Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, May 31, 2024
    #4
Thema:

Batch file question

Loading...
  1. Batch file question - Similar Threads - Batch file question

  2. Batch file question

    in Windows 10 Software and Apps
    Batch file question: Sorry was not sure where to post this.I have this batch file that makes a copy a master file naming it Copy_Registration.accdb. I am wondering if there is a way to delete the current version of Copy_Registration.accdb before making the copy of the master file?@echo on cd C:\...
  3. Batch file question

    in Windows 10 Gaming
    Batch file question: I have a MS Access database which uses SQL Server as a backend. I want multiple people to use the database so for ease of distribution I created batch files the go out to a folder and copy the file to a temp folder. That way they always have the latest version if I make...
  4. Batch file question

    in Windows 10 Software and Apps
    Batch file question: I have a MS Access database which uses SQL Server as a backend. I want multiple people to use the database so for ease of distribution I created batch files the go out to a folder and copy the file to a temp folder. That way they always have the latest version if I make...
  5. Batch Files

    in Windows 10 Gaming
    Batch Files: How do i make it that my batch file puts itself in to startup https://answers.microsoft.com/en-us/windows/forum/all/batch-files/6156404d-20d4-4f58-bee5-14629dbf7b10
  6. Batch Files

    in Windows 10 Software and Apps
    Batch Files: How do i make it that my batch file puts itself in to startup https://answers.microsoft.com/en-us/windows/forum/all/batch-files/6156404d-20d4-4f58-bee5-14629dbf7b10
  7. Create batch files with Batch?

    in Windows 10 Software and Apps
    Create batch files with Batch?: How to create Batch and VBS files with Batch? So I write a batch file which I then convert to exe that creates new folders in a certain directory and then creates batch and VBS files with a certain content and saves them in the created folder. So it's similar to a program...
  8. Batch File

    in Windows 10 Support
    Batch File: I need a batch file to create a folder with sub folders. The sub folders will be named the current date, they will go in a folder on c drive. For example we can call the folder test and it would be in documents on c drive. Every time we run the batch file it would create a...
  9. [Question] Delete files with denied access with batch scripts

    in Windows 10 Support
    [Question] Delete files with denied access with batch scripts: Ciao, dopo anni ho iniziato a lavorare con script batch di nuovo, ma non riesco a eliminare un file nella directory principale "C", (usando W10 ultima release), questo è lo script che mi d "accesso negato". [code] @echo off cls del "C: \ SYSTAG.BIN" / A / F / Q / S...
  10. Batch script question

    in Windows 10 Support
    Batch script question: Hello, I want make a batch script to delete a spefic folder on the C disk, but how can I get only that spefic folder? I got this: Code: FOR /D %%p IN ("C:\USERS\%USERNAME%\Downloads\*.*") DO rmdir "%%p" /s /q cd C:\USERS\%USERNAME%\Downloads\ del *.* /q /s timeout /t 5...