Windows 10: Get name of current diskette in A:\ with batch file

Discus and support Get name of current diskette in A:\ with batch file in Windows 10 Network and Sharing to solve the problem; I have a usb floppy drive installed and it is drive A:\ I am trying to make a batch file that will automatically copy the contents of a diskette in the... Discussion in 'Windows 10 Network and Sharing' started by allnamesweretaken:, May 2, 2021.

  1. Get name of current diskette in A:\ with batch file


    I have a usb floppy drive installed and it is drive A:\ I am trying to make a batch file that will automatically copy the contents of a diskette in the drive a to a folder on one of my main drives. Is there a way to get the name of the diskette in the A: drive and use it as a variable in the batch file? so that I can put each copied diskette in its own folder named after the disketteAs a side note, does anybody know the windows 10 event name/id of when a floppy disk is inserted I want to call the batch file from task schedulerthanks in advance:

    :)
     
    allnamesweretaken:, May 2, 2021
    #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 2, 2021
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, May 2, 2021
    #3
  4. Get name of current diskette in A:\ with batch file

    How to Batch Rename files ?

    I have a lot of files I want to give names to. I already found a way to get names into a text I need. So all these names i have in text, I want to give to other files.

    How do i do this in a batch process ?

    Currently trying to learn FastStone Image viewer. Seems to be updated version of Resizer by the same company?
    That has been useful for other batch processes for images . But I've yet to figure the batch naming options .

    A different software I'm considering for this task is called Advanced Renamer .

    Maybe I've become too slow through the years because :
    I've been looking for the right tutorial that I can clearly understand and found none .
    They seem to be out of my grasp .


    Note : I currently use a bat file, that takes the names of other files I have in a folder and puts them into a text file.

    ( I'd prefer a one click Bat process ideally for this specific task ) .

    So I'd be happy with a bat file that can also take those names in my text list
    and apply them to files I want to rename in any given folder with those . If anyone knew how to do that.

    It don't matter the order applied - as long as each file in the folder receives one name from the list.
    The names I pulled are from images in a folder. The names are to be applied to a equal number of files ,
    which is a different extension. so no worry about them having the same name. So just the names .




    - - - Updated - - -

    I found this thread. But unsure how to apply it and its replies into the bat i need ?

    stackoverflow rename-files-after-a-list-of-names




    Update possible reference
    for loop - Creating a batch file to rename TXT files based on content (removing inappropriate syntax) - Stack Overflow

    - - - Updated - - -

    and yet another reference i need help understanding if its useful
    windows - Generate file-folder list.txt file in a directory/subdirectory & rename list.txt to folder/subfolder name using dir & ren command in a batch file - Stack Overflow
     
    OtherWay1982, May 2, 2021
    #4
Thema:

Get name of current diskette in A:\ with batch file

Loading...
  1. Get name of current diskette in A:\ with batch file - Similar Threads - name current diskette

  2. Batch file with admin user name pre populated

    in Windows 10 Gaming
    Batch file with admin user name pre populated: I have a batch file that was wrote in power shell not mine it requires administrator credentials. Currently what happens is when I click on the file I get a message telling me I will need to enter credentials and to press any key. When I do that the Windows Command Processer...
  3. Batch file with admin user name pre populated

    in AntiVirus, Firewalls and System Security
    Batch file with admin user name pre populated: I have a batch file that was wrote in power shell not mine it requires administrator credentials. Currently what happens is when I click on the file I get a message telling me I will need to enter credentials and to press any key. When I do that the Windows Command Processer...
  4. Batch Script Adding a Period . to File Name

    in Windows 10 Gaming
    Batch Script Adding a Period . to File Name: Hi, I am testing a script to find the last file within a folder.It can locate the correct file, but the resulting variable includes a period . within the file name.Here's the script:REM Copy the recent Friday evening's Diff Backup onto the drive G: My Passport device.@echo...
  5. Batch Script Adding a Period . to File Name

    in Windows 10 Software and Apps
    Batch Script Adding a Period . to File Name: Hi, I am testing a script to find the last file within a folder.It can locate the correct file, but the resulting variable includes a period . within the file name.Here's the script:REM Copy the recent Friday evening's Diff Backup onto the drive G: My Passport device.@echo...
  6. Powertoys batch rename files: 'name' to initals

    in Windows 10 Gaming
    Powertoys batch rename files: 'name' to initals: Hi,I have a list of files that contain "Firstname Lastname". Is there a way to batch rename the files to "FL"?For example:"Donkey Kong Rewards Package 2023""Mario Kart Rewards Package 2023"etc.Can these be renamed through power rename to:"DK Rewards Package 2023""MK Rewards...
  7. Powertoys batch rename files: 'name' to initals

    in Windows 10 Software and Apps
    Powertoys batch rename files: 'name' to initals: Hi,I have a list of files that contain "Firstname Lastname". Is there a way to batch rename the files to "FL"?For example:"Donkey Kong Rewards Package 2023""Mario Kart Rewards Package 2023"etc.Can these be renamed through power rename to:"DK Rewards Package 2023""MK Rewards...
  8. Batch shorten file names

    in Windows 10 Gaming
    Batch shorten file names: Hi everyone!I have a bunch of files for work, which all have a name like 'FunTimes-party2020', 'BossMan-party2020', 'GroupPhoto-party2020' just as a example.I need to shorten the names of the files in the example, remove the "party2020", but there are hundreds of files. Is...
  9. Batch shorten file names

    in Windows 10 Software and Apps
    Batch shorten file names: Hi everyone!I have a bunch of files for work, which all have a name like 'FunTimes-party2020', 'BossMan-party2020', 'GroupPhoto-party2020' just as a example.I need to shorten the names of the files in the example, remove the "party2020", but there are hundreds of files. Is...
  10. Batch file to current date and time

    in Windows 10 Customization
    Batch file to current date and time: Dear expert. Can you help me to batch file to change system date and time to current? Best regards, https://answers.microsoft.com/en-us/windows/forum/all/batch-file-to-current-date-and-time/2c75b187-3561-4604-b9b5-218db993a6f6