15,886,518 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by iismoove (Top 25 by date)
iismoove
10-Apr-13 20:25pm
View
Ok, I figured it out and I just wanted to let you know how I did it and get your input. I posted my solution to it.
1. I found out DISKPART puts the drives on the machine in the following order: dvd/cd-rom, local disks, then removable drives.
2. I got the total number of drives on the machine(which matches DISKPART), and split them between the 3 types.
3. I took the total drives and subtracted out the dvd/cd-rom drives and added 1 to get the first local disk “Volume” number.
4. I looped through “DelExistingPartitions” function as many times as there are local disks, adding 1 to the “Volume” number each time.
iismoove
4-Apr-13 10:23am
View
I'll figure it out eventually, but for now, I will just use the string manipulation until I find a better solution. I will take a look and try your second solution and let you know.
iismoove
4-Apr-13 10:06am
View
Are you always on here? LOL. It seems like no matter when I post, you post right back.
iismoove
4-Apr-13 10:04am
View
I see what you are saying. It was my fault. I should have explained what I was trying to do. At the time I asked the question, I didn't think it was relevant to explain what I was trying to accomplish other than trying to find the volume number (or whatever it is). I will try to keep that in mind for future, and explain in a little more detail about the scope first, then my issue.
The only reason I use the terms “Volume” and “0” and such, is because I just want to try and explain where the number is in my DISKPART snippet that I am looking for. It’s for reference ONLY. DISKPART numbers each Disk/Partition on your machine. I want to know how DISKPART gets those numbers. Because I want to make those numbers a variable to run DISKPART in a program to delete those Disks/Partitions.
Now with your compare, you are right, the order does not matter. But, how do then find out which disk/partition/volume matches?
iismoove
4-Apr-13 9:51am
View
I will give it a try and let you know. It may not be until later today, but I will give it a whirl.
iismoove
4-Apr-13 0:03am
View
Ok. I'll try to figure it out on my own, but thanks for your help.
I know that not all OS's are on C:\.( Which is why I wasn’t just looking for the Drive Letters, because letters have no bearing on whether it’s a system volume, DVD Drive, or Removable media, etc...)
I don't think the question is that misleading. I wanted to know how to get the number under the "Volume ###" label in my DISKPART printout, which is “Volume 0” and “Volume 1”, which would make the numbers I was looking for “0” and “1” and how else besides DISKPART these volume numbers could be found. Because I figured, which I guess is wrong, was that DISKPART had to get those numbers from somewhere in the system configuration. I guess DISKPART is just making those numbers up for its own use. To use DISKPART, you have to use those numbers in order to select the volume you want to delete, format, or resize. I thought maybe someone else had used it and would be able to help. Have you ever used DISKPART?
By "System Reserve" I meant the 100MB partition that Windows 7 uses to boot and store restore settings, which usually doesn't have name, but is still a volume. In the disk manager it calls it “System Reserved”.
iismoove
3-Apr-13 20:36pm
View
Yea, I dont think its going to happen that way. So here is my intent with this project: I want to create a app that starts upon WinPE 4.0 booting. It basically will have 2 buttons and and a textbox. Each button will be for deploying either a laptop or desktop Windows 7 image, and the textbox will be for redirecting the output of diskpart. Do you know another way that I could identify which volumes are the local drive volumes(system reserve and windows) and delete them?
iismoove
3-Apr-13 14:12pm
View
Great, whatever you can help with would be greatly appreciated, because I just know where else to look. I have taken a look at Espen's application. I will definitely use in the future. Thank you.
iismoove
3-Apr-13 14:00pm
View
I don't know. I thought it was the "logical volume ID". In Disk Management, if you go to the properties of the partition, it is listed as "location", but I cannot find anything else on it, other than diskpart using it and it being in Disk Management. Also, I just want the "0" or "1", without the "Volume"
iismoove
3-Apr-13 13:44pm
View
I just want to get that number after where it says "Volume" in my top Diskpart printout. ex. 0, 1.
iismoove
3-Apr-13 13:01pm
View
I updated my question with a little more details.
iismoove
3-Apr-13 10:19am
View
The DeviceID in Win32_Volume does not give the volume numbers that is used in diskpart. It gives more of a long GUID like number. I have looked through so many of the WMI classes and cannot seem to find it. Any ideas?
iismoove
3-Apr-13 0:12am
View
Great! I will try it out. Thanks!
iismoove
2-Apr-13 23:34pm
View
I have tried both. I use the DeviceID to get the drive letter. The PNPDeviceID comes up blank.
iismoove
2-Apr-13 23:24pm
View
Check out this link from this site. It's in C#, but you can convert to VB.
http://www.codeproject.com/Questions/364054/How-to-connect-to-my-sql-through-a-proxy-server-us
iismoove
2-Apr-13 15:21pm
View
I don't know how I could miss something like that! LOL. Thanks so much! I am going to give it try now.
iismoove
2-Apr-13 15:10pm
View
Have you tried stopping IIS before you delete the VDir? I noticed with our IIS, we need to stop it, create/delete the VDir, and then restart IIS.
iismoove
2-Sep-12 14:49pm
View
This was the DLL I was referencing. When I go through the different classes and different docs on the left, it just all seems incomplete, so I seeing if anyone used it.
https://www.assembla.com/spaces/PhotobucketNet/wiki/Documentation
iismoove
2-Sep-12 14:40pm
View
Ok. Thanks.
iismoove
14-Aug-12 12:46pm
View
No
iismoove
12-Aug-12 20:45pm
View
I figured it out. I noticed that I was NOT starting a new instance of the converter in my converter function.
iismoove
12-Aug-12 11:12am
View
Ok, so I have it going through the folder and getting each folder name. I am using LameSHell from Qualtar. I guess with Lame, you have to loop through it with a DO LOOP. Because when I do just a FOR EACH, it just converts the first file. When I do a DO UNTIL, it goes through but hangs up the program. Maybe you can take a look at my code?
Private Sub btnConvert_Click(sender As System.Object, e As System.EventArgs) Handles btnConvert.Click
Dim cNumber As ObjectModel.ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFiles("C:\Temp")
Dim count As Integer = CInt(cNumber.Count)
Dim index As Integer = 1
Dim c As Integer = 0
Dim oPath = "C:\Temp\"
Dim dInfo As New DirectoryInfo(oPath)
Dim fArr As FileInfo() = dInfo.GetFiles()
Dim fri As FileInfo
Do
For Each fri In fArr
index += 1
Dim sfname = GetFileName(oPath + fri.Name)
ConvertFiles(oPath + sfname + ".wav", "C:\_ConvertedFiles\" + sfname + ".mp3")
lblConverted.Text = c + 1
Next fri
Loop Until index = count
iismoove
11-Aug-12 15:28pm
View
Yea, i did convert it to VB. I am going to try it in about 10 minutes......I will let you know how I make out.
iismoove
11-Aug-12 14:56pm
View
Thanks! I am looking through it now. Sorry, I am new at software development and have not worked with recursion that much. But it looks like this may be what i need.(if i can figure out how to code it).
iismoove
11-Aug-12 14:48pm
View
Deleted
Thanks! I am looking through it now. Sorry, I am new at software development and have not worked with recursion that much. But it looks like this may be what i need.(if i can figure out how to code it).
Show More