Accessing File On Partition With No Letter?
Jun 26, 2010Is there any way of accessing a file on a partition that has no drive letter (such as a hidden or recovery partition)?
View 1 RepliesIs there any way of accessing a file on a partition that has no drive letter (such as a hidden or recovery partition)?
View 1 RepliesI am new to VB and playing with a program to display disk info attached to my PC. I have used WIN32_DiskDrive & WIN32_LogicalDisk to gather info regarding volumes, disks and partitions.
What I want to find how is how to relate the Device Index and Partition # back to a volume (ie with a drive letter).
Im writing a program (has been a little while) which will gather files off my computer and make a new partition the right size to store them.I would like this to be automated since it would help if I use it on friends machines.is there a way for me to create a partition from using vb.net and api's etc rather than having to downloading partition manager each time.
View 4 RepliesI have a binary converter I am attempting to build and want to read and convert the InputTextBox(alphabetical characters) letter by letter however all I have so far is one letter at a time
Image here is the code I have so far:
Code:
Public Class ConverterForm
Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click
[Code]....
I am a vb newbie having some trouble with an assignment. A user enters a letter into a text box, and the output must make the letter uppercase and tell what position the letter is at in the sentence "The quick brown fox jumps over a lazy dog."
Here is my
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
[CODE]...............
This is what comes out: "A first occurs in position -1". Everything comes out except the position is always displayed as -1.
Is it possible to change to colour of letters as they are typed.I.e
Piece of text says
"Hello World"
when user types "H". The "H" in the original would change if matched and then so on and then when "Hello" is matched it would change to another colour.
I'm using a timer control to highlight text letter by letter one every second. Timer1.Interval = 1000 How can I give the user access to this variable so the speed can be changed?
View 7 RepliesI want to write a source code in vb.net to do following things:
1)To give security to the folder on pen drive.
2)To partion the pen drive.
[Code]...
i want to partition my pen drive using vb.net.i just wanted to know that is it possible to partition pen drives using vb.net.i want this to happen in the way that we can secure one partition using password!
View 3 Repliesi need to ask about 2 things1st. how i can create ftp drive i mean to add new partition connected to ftp server2nd. why it's to hard to find codes for vb.net any document with all codes and commands list?
View 2 RepliesI'm a VB beginner.I wonder if it's possible to change the text style letter by letter?I've learned here that you can change the entire style of text like
Dim myStyle As New Font(TextBox1.Font.Name, TextBox1.Font.Size, FontStyle.Regular)
TextBox1.Font = myStyle
[code].....
trying to calculate the partitions for 8 portions, and putting in select statement for row number,something like,
If Not (dstotal.Tables(0).Rows(0)("totalrecord") = 0) Then
dPartition = CInt(dstotal.Tables(0).Rows(0)("totalrecord")) / 8
End If
[code]....
I am working on some USB (flash drive) software which i want to make portable and always accessible on USB i know .net is not good for this because much users don't have framework installed but users who use this software have it installed and i just love VB.net :)
So what i want to do is to create a hidden partition on this USB device where software will store some info and itself. The software and data it stores is 6MB so i would also like to know the suggestions from you what size of this hidden partition can and i should make.
But:
how do i read from hidden partition through .net?
(i did never confront with this till now...) how i make hidden partition through .net?
I want this because users i working this for usually format their drives and that way they delete the software too, so hidden folder and encrypting doesn't help me in this.
I have to create this program for school to restart a bootcamped mac back onto mac from windows with an application made in visual basic.So I need my computer to restart which I have successfully completed. Now I just want to find out how to get the application to make my computer restart on the Mac Partition ( E: ).
View 1 RepliesI am trying to use the filetbl function to include a letterhead.rtf file into a letter.rtf file.Unfortunately, the Microsoft (and other) docs on the 'net are less than intuitive in regard to filetabl and I can find no examples anywhere on the use of this function
[Code]...
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 Repliesi 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")
How can I search a text file and return all four letter words one by one in a Label
View 13 RepliesI just downloaded a Dictionary Words list .txt( containing all dictionary words ), every word is on a line.What i need is only words > 5 letters ( length > 5 ). S o i though about making a Visual basic software that delete words < 5 letters from the file.
This is how i read a file from VB
Dim FILE_NAME As String = "C:UsersOwnerDocuments est.txt"
Dim TextLine As String
[code].....
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 RepliesI 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? Here is my code by the way,
<%@ Import NameSpace="System.IO" %>
<%
For Each d As System.IO.DriveInfo In My.Computer.FileSystem.Drives
[code].....
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? Here is my code by the way,
<%@ Import NameSpace="System.IO" %>
<%
For Each d As System.IO.DriveInfo In My.Computer.FileSystem.Drives
If d.DriveType = DriveType.Removable Then
[Code]....
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?
Here is my code by the way,
Code:
<%@ Import NameSpace="System.IO" %>
<%For Each d As System.IO.DriveInfo In My.Computer.FileSystem.Drives
If d.DriveType = DriveType.Removable Then
Dim test As String = File.ReadAllText(& ":\sample.txt")
Response.Write(test)
End If
Next
%>
How to let the string test get the data so that I could put it on my page. I'm currently using that File.ReadAllText method.
I've been stuck on this for 3 days now.I have a TiffBitmapDecoder accessing a file and generating a BitmapSource from one of the frames in the file. If I try and modify the file after that e.g. insert new frame or even delete file, I'm informed that the file cannot be accessed as another process is accessing the file.How do I either a) Get the TiffBitmapDecoder to release the file or B) force all processes that have access to a file to release?Note: I'm using WPF and the TiffBitmapDecoder does not have standard fileStream methods like close, dispose or flush.
View 9 RepliesI have a windows service on a server which accesses a folder and database which is on different server.i was told to create an .ini file and add the settings here. so i have to add the path to the folder and database in .ini file, correct?is there anything else which i should add in .ini file?is it compulsory to give the [section] in the .ini file?
How can i access this .ini file from my vb.net program?can i store this .ini file anywhere on the machine or it should be stored in a particular folder?
I Am a new developer in VS 2008. I am writing a small program that reads an XML file. Here is a snipet of code.
filename =
"XMLPolicyList.xml"
Dim DR As XmlTextReader = Nothing
[code]....
My understaning is that the system looks for the file in the bin/debug folder, so that is where I put it. But when executing this program. I always get a FileNotFoundException. The file name displayed is (filename). If I hard code the entire directory name and file name I get the same error and the file name is displayed with the same slash in front of it. For instance I put the file on the C drive and the error displayed C:(filename).I don't have the problem in older versions of Visual Studio. The same program runs fine in VS 2003. I'm thinking that there must be some sort of setting within VS 2008, but I have been unable to find it.
It's all fine, accessing files and directories by using a dynamic link library (DLL), but is it possible to do online?Suppose I want to parse a file, which would normally be simple in visual basic; is it possible to call functions from a DLL using a server-side language, say PHP?
View 1 RepliesI've been able to find a lot of examples for C#, however I'm not any where near proficient enough to write what I need to in C# What I need to do is access the pst file and read the new messages that are being received.I'll worry about the rest later, for now if someone can point me in the right direction
View 3 RepliesAm trying to read in data from an xml file but using javascript which is embedded into my asp.net|vb code. I am new to asp.net but coming from a programming background
View 1 RepliesI'm running VB2005 and have an application where an operator can save a snapshot of an image in a picturebox as a jpg. They can call up any jpg they want and display it in another picturebox. The issue is that if there is an existing file and the operator loads it into the 2nd picturebox, the operator isn't able to overwrite this image file from whatever is in the 1st picturebox.
[Code]...