|
There's nothing that will do it for you, if that's what you're asking. I'd probably start by reading a good size block of each file into its own buffer, then compare what's in the buffers. Reading one byte at a time from each file and comparing will probably be the slowest way you can do it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I was afraid to hear that. Sadly, that is how I am currently doing it. Thanks for the reply.
|
|
|
|
|
In mp3 files there are tags/properties of Artist Name, Song Name, Album Name. Is there any way through which i can fetch these values (provided i have a list of mp3 files) into variables.
Pls help
Thanks
|
|
|
|
|
|
Thanks
|
|
|
|
|
Hi,
I am facing a strange problem in this. When i try to trap the value of artist and title as:
dim artist as string
artist = objMP3V1.Frame(MP3ID3v1.FrameTypes.Artist)
dim title as string
title = objMP3V1.Frame(MP3ID3v1.FrameTypes.title)
dim new Name as string
newName = artist + title
The variable 'newName' does not contain the values of both title and artist. It only contains of artist whereas individually i am able to see the values of artist (msgbox(artist)) and title (msgbox(title)).
Pls reply within half hour.......
|
|
|
|
|
Ok, first, make sure you have imported the right file into your project. Go to the link I refrenced in my post, and download the source code. Then, import MP3Info.vb from the zip file. Then, use this in your source code:
Dim mp3reader As New Monotic.Multimedia.MP3.MP3Info<br />
Dim artist As String<br />
Dim newname As String<br />
mp3reader.Filename = FileName<br />
artist = mp3reader.ID3v1Tag.Artist<br />
title = mp3reader.ID3v1Tag.Title<br />
newname = artist + title
Where FileName is the filename of your MP3. That should work, I tested it.
|
|
|
|
|
thanks a lot.
my application is now complete.
I will post the application as soon as i design it fully and deploy it.
strings were not concatenating so i created labels and then concatenated them.
|
|
|
|
|
Hello Guys,
Does anybody know to to make changes to datagrid after calling DataBind()? I'm trying to add new columns to my datagrid after binding it. I'll appreciate any help.
Thanks
|
|
|
|
|
You might want to ask this in the ASP.NET forum. I'd say yes you can in a Windows Forms app, because all you do is set the DataSource, but I don't know if it would work in ASP.NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have create a directory by
system.io.directory.createDirectory("C:\temp\")
How can I set it as hidden?
Thank you
|
|
|
|
|
Microsoft.VisualBasic.SetAttr(FilePath, FileAttribute.Directory + FileAttribute.Hidden)
Where FilePath is the directory you want to set. There are a few more constants, and you can play around with them to get different results.
|
|
|
|
|
Thank you first, but it seems doesn't work ...
I added
Microsoft.VisualBasic.SetAttr("C:\temp\", FileAttribute.Directory + FileAttribute.Hidden)
No error, but the directort still in normal, not hidden.
|
|
|
|
|
simply:
FileSystem.SetAttr("D:\aaa", FileAttribute.Hidden)
note that there is no \ at the end of a path
it should work
OmarMallat
|
|
|
|
|
I been trying to migrate a client-server system where the client app (many instances out in the field now) is written in VB6 and uses Winsock controls to communicate with a server app over TCP/IP connections. The old server app written in VB6 also using Winsock controls works fine, but as I migrate the server app to VB.NET and use .NET socket objects, the system intermittantly hangs. The server .NET app receives the data from the VB6 clients just fine, but when it sends back the responses (especially if it is a large, multi-packet response) it hangs -- as if the last packet never arrived, and the .NET socket closed before the receiving Winsock control had a chance to finish collecting data (through iterative DataArrived event handler calls). Anyone have any ideas on how to overcome this? (yes, eventually the client apps need migration to .NET also, but for now they remain in VB6)
|
|
|
|
|
Does anyone know how to make a textbox/richtextbox backcolor transparent? VB Code/demo would be appreciated.
thanks
amy
|
|
|
|
|
As far as I know, it is not possible. Here is an example of code you could use:
RichTextBox1.BackColor = Color.FromArgb(Convert.ToInt32("80FFFFFF", 16))
Where "80FFFFFF" is the color, in ARGB form, and A is the alpha component, meaning opacity. At runtime, the exception is thrown that RichTextBoxes do not support transparent backgrounds. Forms have an opacity option, which means that transparency is just not supported by these controls. Specially made controls that do support opacity may be the best option, such as this: Alpha Blend Text Box by Bob Bradley[^]
|
|
|
|
|
Hello Everyone:
I want to make a program that incorporates an explorer style user interface. The left hand side shows a tree structure of drives and folders. While the right hand side shows a list of the files inside a selected folder.
Inside VB 6 there is a simple routine called ShowFolderList. I have modified it a bit to show the attribute number for each folder the routine returns.
Here is the modified routine:
Sub ShowFolderList(strPath As String)
Dim fs, f, f1, fc, s
Dim Attr As Integer
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder(strPath)
Set fc = f.SubFolders
For Each f1 In fc
Attr = GetAttr(strPath & f1.Name)
Debug.Print f1.Name & " Attr: " & CStr(Attr)
Next
End Sub
I’m sending in “C:\” as the path, because I want a list of all the folders on this hard drive. I’m also listing the Attribute number for each folder. Now here is the noggin scratchier. When I show a list of the folders I returned I see some attribute numbers that are not defined in the attributes constants in VB.
Here is the list I get from my laptop using the above routine:
Adv_Basics Attr: 16
Adv_Doc_Production Attr: 16
Backup_Exp Attr: 16
Config.Msi Attr: 22
Cosmetology Attr: 16
Documents and Settings Attr: 16
Program Files Attr: 17
RECYCLER Attr: 22
SHFileOperation Attr: 16
swsetup Attr: 16
System Volume Information Attr: 22
SYSTEM.SAV Attr: 16
TreeView_Test Attr: 16
WINDOWS Attr: 16
I’m interested in only the folders on the hard drive. So the folders with a 22 attribute need not be shown. But the Programs Files folder has an attribute number of 17, and 17 is not defined as a directory. A directory or folder attribute number is 16.
So my first question is: Why is the Program Files folder attribute a 17? And the second one is: How can I modify the routine to return only unhidden folders and non-system folders?
Thank you
Quecumber256
|
|
|
|
|
This is the combination of 2 or more attributes.
In your case, 17 is a combination of ReadOnly (1) and Directory (16). 22 is a combination of Directory (16), System (4), and Hidden (2). 16+4+2 = 22.
If you wanted to check for these attributes being turned set, all you have to do is a little binary math:
If ((attribValue & 4) > 0) Or ((attribValue & 2) > 0) Then
' At least one of the System (4) or Hidden (2) attributes are set
Else
...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 15:00 Wednesday 1st March, 2006
|
|
|
|
|
Dave,
Bare with me on this. I looked at the properties on the other folders, they are set to read-only, but their attribute numbers are 16. Why don't they show a 17 like the Program Files folder?
Your IF Statement will help when I list out the folder names.
Thank you,
Quecumber256
|
|
|
|
|
No idea. I've never seen the problem before and I can't verify it on the machine I'm using. Are you sure you're matching up the filename with the correct attribute number?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave,
With VB I'm not sure of anything. Did you try the little routine I sent in the first post? That is the one I'm using and as far as I can tell it is matching the correct attribute number to the correct folder name.
The list I sent of the file names are the results I'm getting running it on my laptop.
Thanks,
Quecumber256
|
|
|
|
|
OK. The list you posted is correct. Are you sure you're right-clicking the same folder name?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Quecumber256 wrote: they are set to read-only, but their attribute numbers are 16.
No, they are not set as read-only. What you see in the properties for the folder is not the read-only status for the folder, but something that is supposed to represent the read-only status of the files in the folder. (This doesn't work very well, though.)
There actually does not exist anything as a read-only attribute for a folder. A folder can not be read-only. Period. Windows uses that bit to flag that the folder is as a linked directory.
source[^]
So, for directories you can ignore the read-only bit. As long as you don't access the disk from a different operating system, it doesn't mean anything to you.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I am working on windows application. I have a form1 and when I click on a button in form1, it shows form2. I perform some Db operations in that form and then close it. When I close the form, I want the form1 to get loaded again. Form2 is not an MDI form. How can I implement this?
Can anyone please help with this?
Thanks!!
|
|
|
|