Exmix Posted July 24, 2017 Share Posted July 24, 2017 (edited) So, i'm trying to run a file from the Ducky on WIndows 10, when I get to the part of: STRING for /f "tokens=3 delims= " %A in ('echo list volume ^| diskpart ^| findstr "DUCKY"') do (set DUCKYdrive=%A:) It opens the cmd prompt, as it is supposed to, it inputs the string, opens another cmd prompt with DISKPART, but that's all. It just hangs there. When I close the DISKPART cmd, it goes to the other cmd and says it can't find the file/file location. This does work with no issues on Windows 7, so Im thinking WIndows 10 just takes a different command that I am unaware of. Edited July 24, 2017 by Exmix Quote Link to comment Share on other sites More sharing options...
ThoughtfulDev Posted July 26, 2017 Share Posted July 26, 2017 I use this one to find a drive labeled ducky(works in win 10/8/7) for /f %d in ('wmic volume get driveletter^, label^|findstr "DUCKY"') do @set duck=%d %duck% contains your ducky drive letter. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.