Search for a file or folder
1- is there any way to use VB 6 to search HDD very fast for a file or folder ? ( like installers )
2- how can i get the CPU/GPU temperature ?!
3 - tell me something about savesttings and getsettings .
4- thanks
6- ...
[254 byte] By [
DarkVB] at [2007-11-20 10:32:27]

# 1 Re: Search for a file or folder
1- is there any way to use VB 6 to search HDD very fast for a file or folder ? ( like installers )
Download The example
3 - tell me something about savesttings and getsettings .
Got from MSDN
Visual Basic Concepts
Creating or Saving Application Settings
You can use the SaveSetting statement to save a new value for a registry key stored in your application's registry location. For example, you could add code to the Form_Unload event in the application's main form in order to preserve settings at shutdown, or in the Form_Unload event on an Options dialog box to update user preferences.
Use the following syntax for the SaveSetting statement:
SaveSetting appname, section, key, value
The following code saves new values for the Backup and LastEntry keys in the Startup section of the registry for an application named "RegCust." This code assumes that the variables strDate and intLastEntry contain the new values.
Private Sub Form_Unload(Cancel As Integer)
SaveSetting "RegCust", "Startup", "Backup", strDate
SaveSetting "RegCust", "Startup", "LastEntry", _
intLastEntry
End Sub
If an entry for the application "RegCust" or any of these sections or keys don't exist in the Software/Microsoft section in the registry, this code will create it.
For More Information See the "SaveSetting Statement."
------------------------
Send feedback to MSDN.Look here for MSDN Online resources.
chunks at 2007-11-9 19:34:52 >

# 2 Re: Search for a file or folder
Download The example
Got from MSDN
Visual Basic Concepts
Creating or Saving Application Settings
You can use the SaveSetting statement to save a new value for a registry key stored in your application's registry location. For example, you could add code to the Form_Unload event in the application's main form in order to preserve settings at shutdown, or in the Form_Unload event on an Options dialog box to update user preferences.
Use the following syntax for the SaveSetting statement:
SaveSetting appname, section, key, value
The following code saves new values for the Backup and LastEntry keys in the Startup section of the registry for an application named "RegCust." This code assumes that the variables strDate and intLastEntry contain the new values.
Private Sub Form_Unload(Cancel As Integer)
SaveSetting "RegCust", "Startup", "Backup", strDate
SaveSetting "RegCust", "Startup", "LastEntry", _
intLastEntry
End Sub
If an entry for the application "RegCust" or any of these sections or keys don't exist in the Software/Microsoft section in the registry, this code will create it.
For More Information See the "SaveSetting Statement."
------------------------
Send feedback to MSDN.Look here for MSDN Online resources.
thanks alot ! those are too useful for me !! thanks again !
DarkVB at 2007-11-9 19:35:47 >

# 3 Re: Search for a file or folder
2- how can i get the CPU/GPU temperature ?!
look at these links
http://www.dev-archive.com/forum/showthread.php?s=&threadid=277284&highlight=process
http://www.dev-archive.com/forum/showthread.php?s=&threadid=290721&highlight=process
chunks at 2007-11-9 19:36:46 >

# 4 Re: Search for a file or folder
chunks , that example is too hard for me ! i'm not a professional . can you explain how can i make a program with a textbox and it search and print path in a label !
thanks
DarkVB at 2007-11-9 19:37:46 >

# 5 Re: Search for a file or folder
You have to give details for each part of a question, not just post a list.
You want a textbox to search for files. Where? What kind? Do you want to search within files for words?
If you want to search a 100g drive for one filename, it'd take hours!
Searching one folder for all jpgs is different, though.
# 6 Re: Search for a file or folder
You have to give details for each part of a question, not just post a list.
You want a textbox to search for files. Where? What kind? Do you want to search within files for words?
If you want to search a 100g drive for one filename, it'd take hours!
Searching one folder for all jpgs is different, though.
I just want to know how can i search all drives for 1 file . like installers . for example you want to install a path for a game . installer search all your hard driver in few second for the game ! i want to know how can i do it !?
DarkVB at 2007-11-9 19:39:50 >

# 7 Re: Search for a file or folder
What it probably does is read the registry. That's only a few mb's.
Nothing could scan a disk in a few seconds!
# 8 Re: Search for a file or folder
What it probably does is read the registry. That's only a few mb's.
Nothing could scan a disk in a few seconds!
i think you are right ! yes ! nothing elsemiracle can't search HDD few sec !
DarkVB at 2007-11-9 19:42:00 >

# 9 Re: Search for a file or folder
look at these links
http://www.dev-archive.com/forum/showthread.php?s=&threadid=277284&highlight=process
http://www.dev-archive.com/forum/showthread.php?s=&threadid=290721&highlight=process
they don't work !! and they are about CPU usage and mem usage !i want getting temp ! but thanks
DarkVB at 2007-11-9 19:42:57 >

# 10 Re: Search for a file or folder
What it probably does is read the registry. That's only a few mb's.
Nothing could scan a disk in a few seconds!
so do you know searching registry ?
DarkVB at 2007-11-9 19:43:53 >
