Jump to content

th3l0b3

Active Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by th3l0b3

  1. I was working on this a bit yesterday and this morning. I came up with a way of finding all "removable drives" and collected drive letters.

    List drives:

    @ECHO OFF
    
    for %%1 in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do ( 
         fsutil fsinfo drivetype %%1: |FIND /V "Directory")
    
    

    I could use Listdrives.bat | Findstr "Removable" > test.txt and it would display the removable drives with an output.

    Remove the extra information in the txt file with another batch file:

    @Echo OFF
    
    (For /F "Usebackq Tokens=*" %%# in ("test.txt") Do (
        Echo "%%#" | FIND /I " - Removable Drive" 1>NUL && (
            Set "Line=%%#"
            Call Set "Line=%%Line:~0,-18%%"
            Call Echo %%Line%%
        ) || (
            Echo %%#
        )
    ))>"MyNewFile.txt"
    
    Pause&Exit
    

    From here you can have each drive as its own variable with

    < MyNewFile.txt (
    set /p line1=
    set /p line2=
    set /p line3=
    )
    

    Your way looks much cleaner hahaha.

  2. I am having an issue with my Ducky as well at the moment, not that it won't read/write...it just won't actually be recognized as plugged in anylonger. The light is a solid Yellow, not sure if this is also a SD issue of not "ejecting" every time i was using it, and quickly pullng it out. I did flash firmware on it again to see if that would help, but it did not.

    Nobody here has a Micro SD adapter either...maybe i get an answer on here before i go home and use the adapters i have there.

    EDIT:

    Nevermind, i got my issue resolved. reflashed firmware again, got the HID error, but installed driver pointing to \WINDOWS\INF and all is well again.

    Cheers

×
×
  • Create New...