Setup Installation - Show Only Drive Letter Like C - D Not To Give Option Of Folder
Feb 12, 2010
In .Net Setup Wizard , While Installing Application Wizard shows ' Folder where to Install' but I want to show only Drive Letter like C, D etc Not to give option of folder
View 1 Replies
ADVERTISEMENT
Sep 21, 2009
I currently have a program that I made which opens other apps packaged with an installer. I have set the installer to install everything to the Program Files folder. However, not all computers have a C: hard drive. I have a way in which they can enter their drive letter in one form then in the next form it remembers the drive and will take them to the program. The problem is my program stores the drive letter in an xml file. On the startup of the program it looks in the xml file to find the drive letter, if there is no drive letter the form opens then lets the user set his drive letter. The xml file is stored in the folder "Math Wizard" in the Program Files folder. But if not all computers have C:Program Files I need a shortcut to the program files folder. I have been trying to use %ProgramFiles% (%Program Files% + "Math Wizardconfig.xml") but vb is saying that the % is an invalid character. Here's my code:
[code]...
View 2 Replies
Nov 26, 2010
The 'DefaultLocation' for my application is set to '[ProgramFilesFolder]MyApp'. Now I would like the user to select what drive to install this application to. I know this is accomplished through the 'Installation Folder Selection' dialog, but I want the user to be able to select a drive only, not the entire path.
My question is how do I capture what drive the user selected from the 'Installation Folder Selection' dialog and use that drive letter to tack on to my 'DefaultLocation' variable?
[Code]...
View 2 Replies
Oct 28, 2008
I am working with VB 2008. I want to be able to run this program say in N: and it will show me in an excel sheet the following:
Folder Path Size(GB) Count of Files
N:Clients 0.53 308
where clients contains subfolders and files and the size is the total of all those files within each folder and the count is the total within each folder also.
This works fine as it is but i have to select one by one the top level folders and some of them are huge so it takes forever to give me an answer.
1) I would like to see in my spreadsheet the following by only select the network drive n:
Folder Path Size(GB) Count of Files
N:Clients 0.53 308
N:Software 10.7 15430
N:Billing 0.98 105
2) I would also like to know if this is the faster method.
3) I tried adding a progress bar so that the user can have an idea of how much this will take but i had to remove because it was not working.
4) I would like to see the folder name, size of folder and count of files in the listview.
Here is the code:
Imports Microsoft
Imports Microsoft.Win32
Imports Microsoft.Win32.Registry
Imports System.Collections
[code].....
View 5 Replies
Feb 19, 2012
I'm running the following WMI script to get the associations between drive letters and physical drives on the system, but for some reason it omits CDROMs/DVD-ROMs. Can someone tell me how to get those as well?
Code:
ComputerName = "."
Set wmiServices = GetObject _
("winmgmts:{impersonationLevel=Impersonate}!//" & ComputerName)
Set wmiDiskDrives = wmiServices.ExecQuery _
("SELECT DeviceID FROM Win32_DiskDrive")
[Code3]...
View 12 Replies
Jun 16, 2009
I have a program that allows the user to enter a drive letter into a text box. The program then takes the letter and find the physical drive number (i.e. deviceharddisk3..). It then stripes out everything and leaves me with the number 3.
In VB6 I used mDrive.bas from vbAccelerator.com and it worked perfectly. I have been all over the internet and back and cannot find a solution written in VB.NET.
View 14 Replies
Oct 13, 2009
I want to make a tool that will assign a USB pen drive a drive letter, I am using WMI to acknowledge the device being plugged in, I can pull the deviceID, name, etc now I just need to work out how to assign the device to a drive and I just cant figure it out
View 4 Replies
Jun 17, 2009
I am trying to get the physical drive (device) number from the drive letter. If the user inputs the drive letter C the program will find the associated physical device number. For example if I input C then the result needs to be \Device\HardDrive1\... Some call it NT Device Name; I think. I have the code for VB6 from vbAccelerator, which works perfectly, but it does not work in VB.NET. My question is there a simple way of pulling the drive info that contains the drive letter and the physical device number. I have searched the internet and found nothing for VB.NET. I would post code but I have nothing for .NET.
View 1 Replies
Jun 16, 2009
I have a program I am converting from VB6 to VB.NET and I am stuck at the very last piece of code. I need to determine what physical device number is associated with the drive letter.
The program takes the drive letter from a text box and goes and finds the device number (i.e. deviceharddrive3...) and strips out everything leaving me with the devicer number; in this case the number 3. I have searched the internet to and fro and found nothing in VB.NET.
My program in VB6 uses a .bas module from vbaccelerator.com called mDrive.bas and works great. I can't figure out how to convert it over to VB.NET.
View 6 Replies
Feb 19, 2009
First off a short background of the project I am working on- I am developing a program that will be run off removable media (i.e. USB Flash drive). This will be a �virtual desktop� which you will be able to take with you and have the same �desktop� on any system. As we know drive letters can change with each host system the drive is plugged into, I need to be able to determine the path for the flash drive and access a specific folder ( i.e. My Documents)
I have an picture box(representing the icon) placed on my form (form1) and when I click the icon I want to be able to open and view the a specific folder from the portable drive. I need a click event that will determine a dynamic drive letter for a directory on the removable drive and then open that directory in an explorer window.
[Code]....
View 1 Replies
Mar 12, 2011
I am using the following code to get a list of the letters for each drive on my computer. I want to get the drive letter of CD Drive from this list. The code I am using to get list is as below:
[Code]...
View 2 Replies
Jan 2, 2010
I have a function that copies files from a CD to my HDD:CopyFiles(CD_Drive, FullPath & "")
The problem is that the Drive letter "I:" is not consistent. Sometimes when I connect and disconnect external devices, the CD Drive letter changes and then my code doesn't work unless I open the project, change the letter "I" and recompile.What code can I use that will ALWAYS detect my CD Drive, regardless of the drive letter? (Like for instance, NERO will detect and burn CDs regardless of the drive letter)
dp.SyntaxHighlighter.ClipboardSwf = '/dp.SyntaxHighlighter/Scripts/clipboard.swf'
dp.SyntaxHighlighter.HighlightAll('4e1b98200b534bcfb11430c4ef5e5987')
View 3 Replies
Mar 16, 2009
I need code which will give messagebox when user types letter in textbox, when he types number all is ok
View 2 Replies
Sep 16, 2010
I was wondering how do you find all HDD drive letter. I got a code but it will get the dvd drive letter. I only want it to show my all my HDD and USB if there is any connected.[code]...
View 2 Replies
Jun 29, 2011
I find a lot of VB6 examples out there, and a few C# examples, but no concrete solution in VB.NET. Simply put, I need to get the next available drive letter in as few lines of code as possible.
View 2 Replies
Mar 21, 2012
I am working on an application that I want to give the User the option of using a password and sign-in or not. I have added three items to the "Settings" , these are:
1) SignInRequired (True or False)
2) UserID (string)
3) Password (string)
My problem is that I'm not sure where I should put the code. Should I use a module and set it as the opening form, or shall i put the code in the first form the viewer sees, which I tried and due to other situations the form has several different appearances, a this is causing a problem.
View 2 Replies
Apr 24, 2009
Is it possible to find a drive's letter given one of the following two?
1) SCSI Address (eg 0/0/0)
2) NT Device Name (eg /device/CdRom0)
View 3 Replies
Jan 25, 2011
my question is how to find the drive letter. not all the comps have the same do they.?
View 3 Replies
Feb 25, 2009
I have made an app which detects the USB inserted and removed.. But I want to Get The drive letter for the USB when inserted.. I do get the Drive letter in XP correctly but in vista It show E instead of F in Vista..
Here is my piece of
VB
Imports System.Reflection
Imports System.IO
Imports System.Runtime.InteropServices
Public Class Form1
Private WM_DEVICECHANGE As Integer = &H219
[Code] .....
View 9 Replies
Sep 13, 2010
I'm creating a small program using Visual Basic 2010 Express. I'm planning to place the program on a CD, along with the files I want to run. The program will have command buttons, and each button will open a different file.For example, if there is a file on the CD named ReadMe.txt, the user will be able to open it using the program, which is on the same disc as "ReadMe", by clicking the corresponding button (or link) ("ReadMe".)The problem is, that I don't know what the CD drive letter will be. Is there a code to make the program run a file which is in the same location as the program?
View 4 Replies
Oct 28, 2009
I have a question regarding publishing vis ClickOnce. For the publish options, there is a Publishing Folder Location and there is a Installation Folder URL. clarify the difference between Publish and Install, and when it would be apropriate for the two to be different?
View 3 Replies
May 7, 2009
A customer installed my app (VB 2003) on his server. BUT when he tried to run it, it bombed because the data bases couldn't be found. I hard coded the drive in my app to "C:" and his server is lettered "E". ALSo when it comes time for his client PC's to mapped to his server to run the app, they too will bomb because they see his server as "P:"
View 11 Replies
Jan 29, 2010
So I need everything from declarations of variable to the actual code.When you answer it in high level that destroys the chance of others answering the same.I would like to get the drive letter of where my application is started in VB2008.
View 2 Replies
Mar 12, 2010
i was wondering if there is any way to read from a file in the application directory without specifying the drive letter. Here's what i have:Dim var var = My.Computer.FileSystem.ReadAllText("c:appdirectoryfilename")
If i leave off 'c:' it looks for it in system 32 or something. why can't i just say
ReadAllText("filename")
View 6 Replies
Sep 13, 2011
Using WMI (and it's code creator) it is easy to find the name of the physical disks on the computer.
vb.net
Dim searcher As New ManagementObjectSearcher("rootCIMV2", "SELECT * FROM Win32_DiskDrive")
For Each queryObj As ManagementObject In searcher.Get()
MessageBox.Show(queryObj("Caption").ToString)
Next
Tried to google how to get the drive letter from each of the disks.
View 2 Replies
Jun 22, 2010
I have made my program but I want to give users the option of choosing a custom color for text. I have an inputbox that works and then converts it to Color.whatever. But seeing as the user types in what they want and it is not done by the program itself it can throw exceptions.
Dim directresponse As String
Dim actualcolor As String
Dim isgood As Boolean
[code]....
That is my Sub, it will make Color.(userinput) but I need to check if Color.(userinput) is actually a color that VB.NET can understand and add set.
I have tried "System.Drawing.Color" I get told it is a type and cannot be used in this context.use System.ComponentModel.TypeDescriptor to convert it to a color and check if it is real and then set it.
View 1 Replies
Sep 9, 2009
Is there some kind of command or API to eject a drive by it's letter? such as Eject("E")
View 1 Replies
Mar 11, 2010
I have made a program that i would like to be able to move from PC to PC; at the moment i would have to change the string directories within the program for each PC i would like top run it on.
By having the user select their drive letter and type their account name into a text box could this be implemented into a directory.
Below is the code, as i was hoping it was coded (lol never is tho).
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Filename As String = ("*.torrent")
[Code]......
View 4 Replies
Aug 11, 2011
I have a vb.net application . I have added references of Ms Excel into the application.In my machine both vs and ms office are installed
Now I move my code to another machine where only vs was installed and not ms office . When I run the code from vs it works perfactly.
Now I make installer. I install it on my machine and it works
I also install it on another machine where ms office not installed and it does not work .
my question is why it is working when I am running from code and not when I am running from Installed shortcut ?
and should I need to install ms office also on the machine to run the application from Installation. ?
View 6 Replies
Jun 18, 2012
I already have a code for detecting a removable device. However, I would like to enable my program to detect that USB drive and read and print the text in that specific text file on my webpage. I also have a program code for reading and printing a text file from a USB but that program needs the drive letter to be specified. My problem is, how would I program if the drive letter is unspecified?[code]
View 4 Replies