Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Anyone any good with WMI

Thread Tools
 
Search this Thread
 
Old 30 June 2006, 07:07 PM
  #1  
David_Wallis
Scooby Regular
Thread Starter
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Default Anyone any good with WMI

I need a way to create a partition in unallocated space, or even find the unallocated space on a disk..so I can create a drive on the fly in a script.

At the moment im at a loss..

I can bodge it by finding the CDRom Drive (usually the last drive) convert the letter to ASCII code, add one to it, then set it back to a character CHR(x) which would increase the cd-rom drive letter by one IE from D: to E:

I can then use diskpart and a script

DiskPart
Select Disk 0
create partition primary
Assign

But you know when you'd rather it was ellegant?

David
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
33
29 August 2017 07:18 PM
Scott@ScoobySpares
Full Cars Breaking For Spares
7
14 December 2015 08:16 AM
Mattybr5@MB Developments
Full Cars Breaking For Spares
20
22 October 2015 06:12 AM
blackandz
General Technical
0
12 September 2015 07:01 PM



Quick Reply: Anyone any good with WMI



All times are GMT +1. The time now is 09:21 PM.