liuzhaoyzz Posted May 7, 2019 Share Posted May 7, 2019 (edited) How to get active partition letters and ESP partition in multi-disks without wmic,diskpart?use windows API? Expected to run in multi-disks (with MBR disk partition and GPT disk partition). Thank you. Edited May 9, 2019 by Melba23 Changed SHOUTY font settings Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 7, 2019 Moderators Share Posted May 7, 2019 liuzhaoyzz, Welcome to the AutoIt forums. What have you tried that has not worked? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Nine Posted May 7, 2019 Share Posted May 7, 2019 Take a look at WMI classes - like Win32_LogicalDisk or Win32_DiskDrive or Win32_DiskPartition. Google AutoIt WMI to have examples of the how-to... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted May 7, 2019 Share Posted May 7, 2019 @Nine 3 hours ago, liuzhaoyzz said: without wmic,diskpart Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Nine Posted May 7, 2019 Share Posted May 7, 2019 2 minutes ago, FrancescoDiMuro said: @Nine WMI is not equal to WMIC. I thought he meant without external program. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
water Posted May 7, 2019 Share Posted May 7, 2019 If WMI is OK, then please check SciptOmatic on the download section of this forum. It generates the AutoIt code to access WMI for you. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
liuzhaoyzz Posted May 8, 2019 Author Share Posted May 8, 2019 (edited) I don't want to realize by wmic,for wmic or diskpart maybe not available in PE .And I don't want to read the registry also . WMI has too much restrict. Win32_DiskPartition class,can see BootPartition,it seems it differs from active partition ?I don't know. https://docs.microsoft.com/zh-cn/windows/desktop/CIMWin32Prov/win32-diskpartition I prefer to read MBR to get it .Or use windows API or au3 dllcall directly . Edited May 9, 2019 by liuzhaoyzz Link to comment Share on other sites More sharing options...
Nine Posted May 8, 2019 Share Posted May 8, 2019 27 minutes ago, liuzhaoyzz said: WMI has too much restrict. Which are ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
liuzhaoyzz Posted May 8, 2019 Author Share Posted May 8, 2019 In PE or some reduced windows,WMI Component packages maybe reduced. I want to use more Infrastructure function. Link to comment Share on other sites More sharing options...
RTFC Posted May 8, 2019 Share Posted May 8, 2019 BuildPartitionTable (link in my sig in spoiler) may be helpful (not sure about your requirements). My Contributions and Wrappers Spoiler BitMaskSudokuSolver BuildPartitionTable CodeCrypter CodeScanner DigitalDisplay Eigen4AutoIt FAT Suite HighMem MetaCodeFileLibrary OSgrid Pool RdRand SecondDesktop SimulatedAnnealing Xbase I/O Link to comment Share on other sites More sharing options...
liuzhaoyzz Posted May 9, 2019 Author Share Posted May 9, 2019 (edited) I didn't find BuildPartitionTable,what does it mean link in my sig in spoiler? Could you post a hyperlink? My requirements is like below,dsptw.rar. dsptw has some bugs,the author has not updated it for many years. dsptw.rar Edited May 9, 2019 by Melba23 Changed SHOUTY font settings Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted May 9, 2019 Share Posted May 9, 2019 @liuzhaoyzz Please write your post with the default font; you don't need to write with this font. By the way, @RTFC was meaning to look at this. Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
liuzhaoyzz Posted May 9, 2019 Author Share Posted May 9, 2019 The default font is too small,it's hard to see.So I select H2 or H3. Thank you. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 9, 2019 Developers Share Posted May 9, 2019 2 hours ago, liuzhaoyzz said: The default font is too small,it's hard to see.So I select H2 or H3. Please don't, simply enlarge your browser zoom level in stead of "shouting at us". Jos FrancescoDiMuro 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
KaFu Posted May 9, 2019 Share Posted May 9, 2019 OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now