I have a path (eg. "C:\My Documents\file.txt") and I want to know:
The filename (in this case "file.txt")
The directory (in this case "C:\My Documents\")
How would I do this? It's incredible to think that before computers were invented we had to mess things up...
I've connected my TV to my PC via the s-video port on my video card. In the display settings in windows XP you can move the 2 screens around to show how they are located in relation to one another but I want both my TV and PC to show exactly the same thing. How would I do this? It's incredible...
I'm using the below code to download files through the internet in my VB app. How can I show the progress in a progress bar, I think I would have to use different code.
Dim b2() As Byte
Open WDir & "\cybot.exe" For Binary Access Write As #1
b2() =...
Whenever I click a JavaScript print button within a webpage my computer restarts itself. I'm using IE6 on Windows XP. Does anyone else have this problem, how can it be fixed?
Thanks,
Jonahon. Computer problems? Have you checked the loose nut in front of the keyboard yet?
The following code overwrites a picture on the users machine with a file downloaded off the Interent by the INet control. But once the download is complete the gif picture cannot be viewed. I think it might have something to do with the 'Binary' part because when downloading plain text files or...
I'm not sure if that's what it's called, but what I want is to have an extra peice of writting at the end of the 'Target' part of a shortcut. Then when the shortcut is double clicked on my program will open and do a certain thing. If the shortcut does not contai the extra writting then it will...
OK, I just don't understand the data control, what I want is to do is the following and I can't figure it out:
- User enter's username and password then cliks OK.
- My App checks to see if it is a valid username by searching through the database.
- If the username is corrent it will then check...
Anyone know how to create hyperlinks in a rich text box, or is it not possible?
Thanks,
Jonahon. Computer problems? Have you checked the loose nut in front of the keyboard yet?
How can I count the number of files which have no file extension (the file dosen't have .something on the end of the file name) in a particular directory?
Thanks Jonathon. Computer problems? Have you checked the loose nut in front of the keyboard yet?
I'm using the following code to print the contents of a Rich Text Box:
Text1.SelPrint (Printer.hDC)
How would I print some other information at the top of the message which is not included in the actual Rich Text Box itself?
Thanks,
Jonathon. Computer problems? Have you checked the loose nut...
When I goto set the RecordSource property of a data object, I get the error "Unrecognized Database format". I'm using Access 2000 and VB6. Why is my Database unrecognized?
Thanks,
Jonathon.
Computer problems? Have you checked the loose nut in front of the keyboard yet?
I have the string F,50 and a want to split the string into two, I want to get the part before the comma (F in this case) and the part after it (50 in this case) and then save each of these parts to two separate strings. How would I do this?
Thanks,
Jonathon.
Computer problems? Have you checked...
In VB5 I've created a program which has a Toolbar. This has never happened before but when one particular button is clicked on, the program freezes. I have had this button in the toolbar for a few months without problems and now out of the blue this happens.
Has this happened to anyone else...
I've looked though tons of sites and can't find anywhere any code for completely removing a directory and all, files, subfolders, files and subfolders within subfolders (and so on) from a specified directory.
Any help most appreciated,
Jonathon.
Ok, i've go this piece of code to get a certain line from a text file.
Dim LinesFromFile as new collection
Open FilePath For Input As #1
Do While Not EOF(1)
Line Input #1, MyString
LinesFromFile.add MyString
Loop
Close #1 ' Close file.
MsgBox "FirstLine=" & LinesFromFile(1)
How...
I have 2 text boxs and a command button on a form, when the button is clicked I want "whatever_has_been_typeded_in_the_first_text_box.txt" to be created. Also the contents of the second text box I want to be put into the text file. I then want the file to be saved to the directory...
Is there a way, mayby through the registry, to check to see if a program is installed. If it is installed then I want the code to check to see if the program is open.
Thanks,
Jonathon.
How can I get my app to check to see if there is a CD in the CD Rom drive. If there is a CD inserted I want the app to do this:
Test = Environ("SystemRoot")
If Dir("D:\Search") <> "" Then
brwWebBrowser.Navigate ("D:\Parts\index.htm")
Else
Form1.Show...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.