Anyone any good with WMI
#1
Scooby Regular
Thread Starter
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
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
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
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