liuzhaoyzz Posted May 7, 2019 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
Moderators Melba23 Posted May 7, 2019 Moderators 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
Nine Posted May 7, 2019 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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
FrancescoDiMuro Posted May 7, 2019 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
Nine Posted May 7, 2019 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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
water Posted May 7, 2019 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
liuzhaoyzz Posted May 8, 2019 Author 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
Nine Posted May 8, 2019 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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
liuzhaoyzz Posted May 8, 2019 Author Posted May 8, 2019 In PE or some reduced windows,WMI Component packages maybe reduced. I want to use more Infrastructure function.
RTFC Posted May 8, 2019 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
liuzhaoyzz Posted May 9, 2019 Author 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
FrancescoDiMuro Posted May 9, 2019 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
liuzhaoyzz Posted May 9, 2019 Author Posted May 9, 2019 The default font is too small,it's hard to see.So I select H2 or H3. Thank you.
Developers Jos Posted May 9, 2019 Developers 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.
KaFu Posted May 9, 2019 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 (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
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