Build A Windows Disk Defrag Program?
Apr 9, 2011Is it possible to build a windows disk defrag program in visual basic 2010?
View 3 RepliesIs it possible to build a windows disk defrag program in visual basic 2010?
View 3 RepliesRun Defrag /A /C >C:Defrag.Log via Command Prompt Using Shell?
View 2 RepliesI have a app that is starting up a thread that runs the standard windows defrag utility. It also gives the user the option to cancel the defrag if they want to. Problem is if the thread defrag is running on is canceled is there any data loss or does it just do the last operation and then exit. For example the code goes something like this:
[Code]...
Code works exactly as it should, runs the defrag on a separate thread so my UI remains responsive. I'm just worried about the effect of the cancel on it, when you call a thread abort does the program running in the thread know it's being canceled and "cleanly" close? I don't want to abort a file move operation when it's defraging and end up with a corrupt file.
Can somebody tell me how to call Windows Hard Disk Defragmenter in VB.Net on Button Click.
View 4 Replieshow to call Windows Hard Disk Defragmenter in VB.Net on Button Click.
View 1 Replieshow to call Windows Hard Disk Defragmenter in VB.Net on Button Click
View 1 RepliesIs there a function that determines the letter that windows is on installed. For example:
D:
C:
G:
etc...
I'm developing a winform application. I want to take input from user (i.e. the user provides username) and use that input as part of filename and save to file.How do I check if the username provided by the user didn't contain windows' reserved characters. And what is the list of reserved characters for windows?
View 1 RepliesI made a code that starts the Disk Check on boot time it works fine on Windows Vista and Windows Xp but on windows 7 I checked the path at were windows 7 stores BootExecute and it is on the same path. Maybe the system is blocking it. Or do i have to change the code.
Here is the code:
Dim rk As Microsoft.Win32.RegistryKey
rk = My.Computer.Registry.LocalMachine.OpenSubKey("SYSTEMCurrentControlSetControlSession Manager", True)
rk.SetValue("BootExecute", "autocheck autochk /p ??" & Drive) 'Turn ON
The Drive String just gets the name of the drive for example C: or D:
I had more problems coding for a windows 7 machine then Vista.
I need to know how can I make a program for specific hard disk? I have heard it that programmers use hard disk`s unique number to protect their program. So that user cant use this program there in another pc(hard disk).
View 1 RepliesHow can I tell what the size of my program is and how much disk space is needed to install. When I publish the program and install it on another machine it will show up in the control panel but does not show what size the program is?Also when I publish updates with it says something like installing 10mb. Is this an additional 10 mb everytime, I guess not, but can someone explain what it all means?
View 10 RepliesThere is VB.NET Open Source Defrag? or C# Open Source Defrag
View 6 RepliesI would like to use the Windows Vista/7 defragmentation feature from my program. I can use a shell command to call defrag.exe, but there's no way to get the status that I know of. I would like to show a percentage and maybe what part of the process it's doing. Then when it's done get the results.
View 6 RepliesI was wondering if there was a way to call defrag.exe from my vb.net program but also be able to watch the progress?I am not reinventing the wheel I am simply making a small app for my customers computers (for free) that will automatically perform disk cleanup and defrag to a schedule not requiring the end user to do absolutly anything (+some other tasks and features)
I have my disk cleanup all working but for the Defrag I would just like to use the windows defrag for instance (defrag C however I have a small GUI with progressbar and % indicator is there anyway I can get progress to report back. I know Windows defrag is compeltly different in Windows 7 I am not sure if this is even possible?
For some reason I can not get the following code to work properly:
[Code]...
How to determine windows build number using vb.net or c#? I do not want to use win32 API.
View 3 RepliesI would like to output the complete windows build string(for example 6.1.7600.16385.090713-1255) into a label. What do I need to write?
View 1 RepliesCan the "Disk Cleanup" operation on Windows be disabled / enabled with a registry setting using VB.Net?I am using Windows 7 32 bit ultimate edition. but as a temporary measure I do not wish to do so.
View 4 RepliesToday I was build one Windows Service Application which has the reference to 4 Dll. After building the Release I found that there was one more DLL in addition to the reference I have. I checked using ILDASM and it only showed 4 dlls.What could be the issue ? How I can I check why it is getting unwanted DLL's in Release Folder?
View 10 Replieshow to build application in vb 2008 for running as windows service, from msdn site link: [URL]
View 11 RepliesThis is probably a simple question, but usually I develop ASP using VB.I have a small project where I am in need of creating an executable that will be a process that runs on a schedule with no user interaction.What type of Project do I create?Do I do a Windows Form application, build it and publish just the exe?I really don't need an actual window form, I just need the code to run.
View 3 RepliesI am trying to build a small program which will allow some one to click on the exit button and the sound will play and at the end of the sound the program will then close. The sound clip is about 3 seconds long Here is what I have:
Imports Microsoft.DirectX
Imports Microsoft.DirectX.DirectSound
Public Class Form1
Private Dsound As CSoundDevice
[code]....
I am trying to build a windows app that uses a remote SQL server to login to the system. I have setup the SQL server on a vmware machine all the conections work fine I have created a form Login with TextBoxUser and TextBoxPass and a submit button.I have added the database conection and created a query called Login
SELECT COUNT(*) AS Expr1
FROM Users
WHERE[code]....
This project has been upgraded from VS2003.Was fine at first but now is taking so long to build after make small code changes my development has come to a screeching halt.Its a fairly big project but hasn't grown since before the upgrade.VS2003 only took seconds to build.Also during the 30 minutes the CPU is pegged at 100%
View 4 RepliesI publish a VisualBasic 2008 windows application, from the Build menu,but when I install it by running the installation's setup.exe, an unusual popup window showing Windows connected to the Internet pops momentarily, and then the application opens and runs.But the application's .exe is not in Start > Programs, or on the desktop, or anywhere.Publishing and installation worked perfectly a few weeks ago.
View 1 RepliesI'm a relatively seasoned VB (COM) vet but this is my first VB.Net application and as is my luck a web services application feeding off a site that I can't publicly mention nor can I post any code that may expose the site.
So, here's the problem. I have written a simple form and have 2 buttons. 1 button simply asks the webservice for it's version. This works no problem. I was able to load the web reference using their supplied WSDL file for this "version" class. Now that I have that working I think "GREAT, that was straight forward. I have my credentials, urls, etc working, the rest of this should be just as straight forward." (See where I jinxed myself here?)
Anyway, I move onto the next WSDL and set of classes and get that reference added no problem. (Man that took a LONG time, like 20 minutes.) I then build my "Get my order data" code syntaxes on the prescribed exposed classes and run my project just to see what errors I get. The "run" process takes almost 45 minutes to an hour..... It's as if the app is getting the WSDL set all over again but doing it over and over..... I have no clue what's going on.
I've tried to disable all the Windows 7 "potential" issues, UAC, firewall, etc, but these changes don't help. Anti virus, spyware, etc all these are off and no difference. I'm running VS2008 as an Admin, right click "run as admin", and have complete control over this machine. Any ideas, suggestions, etc are VERY welcome and I am happy to expose as much of this application as I can providing I can stay with in the rules of the confidentiality contract.
Private Sub Timer1_Elapsed(ByVal sender As System.Object, ByVal e As _
[Code]...
I want to develop a DLL in VB.
How do I "expose" the Functions and Subs contained in the DLL such that they are accessible from another application ?
For example, in Fortran the "DLLEXPORT :: MyFunctionToBeAccessed" attribute is given after the declaration of the Function; it adds the name of the Function to a table at the beginning of the DLL, name which can be referenced after to access the functionnalities of the function in the DLL.
If I build a Windows Forms project in Visual Studio 2008, and start it with a Sub Main instead of a form, and for the time being, don't show any forms, is it considered a Console application? Will console.writeline work?
View 3 RepliesI'm looking for some good tutorials for building applications with visual studio 2008
the programming language i prefer is VBA