Windows 10: Batch file question

Discus and support Batch file question in Windows 10 Software and Apps to solve the problem; 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... Discussion in 'Windows 10 Software and Apps' started by Ordnance1, Sep 12, 2022.

  1. Ordnance1 Win User

    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 changes to the front end. The master file lives in a shared OneDrive folder. The issue I have is that of my users 1 has his OneDrive on his D drive while others have it on their C drive. What I would like is for the batch file to see if D:\OneDrive\Eagles_GrandReceiver exists. If it does run the code that was in file 1 and if n

    :)
     
    Ordnance1, Sep 12, 2022
    #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, Sep 13, 2022
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Sep 13, 2022
    #3
  4. Steevo Win User

    Batch file question

    Batch file to ping network

    No, batch files are extremely easy.

    A "If" requires three extra steps.

    Code is not how much you can put in, but how lite can you make it and still perform the functions.

    So

    @ echo off


    ping 1.4.1.4 >a.txt

    findstr /m "Request timed out" a.txt
    if %errorlevel%%==0 (
    echo Save our nets!!!
    )

    pause
     
    Steevo, Sep 13, 2022
    #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: 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:\...
  4. 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...
  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...