VS 2008 Can ChkDsk Not Run When PC Is Running

Sep 11, 2009

I'm using the ChkDsk method of the Win32_LogicalDisk Class of WMI.I've read up on the documentation from MSDN. I'm not 100% sure how ChkDsk works, but I want to be able to run it while the PC is running, but I'm not sure that's possible.When I try and run it, I get a Return Code of 1. Which is: Success - Locked and Chkdsk Scheduled on Reboot.Is there some type of parameter I'm missing, or can ChkDsk not run when the PC is running?

View 6 Replies


ADVERTISEMENT

Chkdsk With Log Using .net?

May 24, 2012

I only able to call the chkdsk command to dun but no idea how to log the chkdsk results.

Imports System.Diagnostics
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
System.Diagnostics.Process.Start("chkdsk.exe", "C:").WaitForExit()
End Sub
End Class

View 3 Replies

Office Automation :: Excel Process Continues Running (.Net Framework 3.5, VS.Net 2008, .Net 2008)

Apr 15, 2011

I'm calling the following method from a button click event to export a datatable to excel. After the export is completed, the excel application object is quit, released and assigned to nothing. But in reality it's not getting released and stays active unless the entire application is closed. So every time the button is clicked for export, a new excel application object keeps on running. The problem doesn't occur if two of the lines from the method below are not used. But I can't omit them as they are really needed. Check the * marked lines.

Code:
''' <summary>
''' Exports data from a datatable to excel.
''' </summary>

[code]....

View 1 Replies

VS 2008 - Process.waitforexit Is Hang Up When Running On Windows 2008

Sep 21, 2009

I use the 'Process' object to run EXE from my application. It works fine when it run on Windows XP and 2003. When it run on Windows server 2008, it hangs up: the process is stayed in background but never returns. It never goes ahead for the next commands. What could be the reason? [Code]

View 6 Replies

VS 2008 Process.waitforexit Is Hang Up When Running On Windows 2008?

Feb 4, 2012

I use the 'Process' object to run EXE from my application. It works fine when it run on Windows XP and 2003. When it run on Windows server 2008, it hangs up: the process is stayed in background but never returns. It never goes ahead for the next commands

View 2 Replies

VS 2008 Not Running On Another Pc

Jul 30, 2009

I'm learning usage of winsock and I've created simple 2 application. Server and client. I'm just working on their connections for now and both them are running perfect on my computer. However, when I copied the client application to my dad's laptop it's not running anymore. It has same OS as my pc (XP Sp 3) and same programs installed on it. I've checked the framework versions and these are installed on the laptop:

-.Net 1.1
-.Net 2.0
-.NEt 3.0
-.Net 3.5 same as mine..

I've copied the dlls ,which are existing in Release folder, to the system32, but it didn't make any sense. Why doesn't the app. running in the laptop? (Not running mean; the app is not opening, I've checked from the task manager, it's opening and closing immediately, I can't see the form) I've add Microsoft Winsock Control v6 (which is inherited from VB6) and named it as winsock.These are all of the client's codes: [code]

View 11 Replies

2008 - Sub Main() Not Running?

Feb 26, 2009

I've added a sub main to my project, but no matter where i put it, it never runs.

I've tried in the main form with : Shared Sub Main() with and without the shared word

In a module and in a class. In vb.net 2003 it worked, so that must be some configuration Even with a test like this

Sub Main()
console.writeline("Test")
End Sub

View 9 Replies

VS 2008 - Running Applications Besides *.exe?

Feb 22, 2011

i am having trouble executing applications that havent got the prefix .exe here is the code tat i mostly found in the internet can someone help so it will be able to play with all applications tried to make it play with msi but it wont play.

[code]...

View 12 Replies

VS 2008 AutoRun Not Running?

Oct 22, 2009

Im using this code

My.Computer.FileSystem.WriteAllText(Application.StartupPath, "autorun.inf", "[autorun]" & vbCrLf & "open=" & Application.ProductName & vbCrLf & "shellexecute=" & Application.ProductName)

and its not running when i open the folder.

View 4 Replies

VS 2008 Running Mysqldump In ?

Sep 15, 2009

I am trying to run a process that will do a mysqldump from my mysql database. I want to customize some options down the road but I am having trouble running the basic command. Here is what I have to test:

Private Sub btnGo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGo.Click
Dim pProperties As New ProcessStartInfo
With pProperties
.FileName = "C:Program FilesMySQLMySQL Server 5.0inmysqldump"
.Arguments = "--user=root -padmin mytestdb> c:ackup.sql"

[Code]...

the exitcode I am getting is "6" and the output it coming back with some information about the mysqldump procedure, but I am not getting anything more. I the backup.sql is not even being created. Has anyone else tried to make an app using mysqldump? Is there somehting I am missing about process.start ?

View 6 Replies

VS 2008 Stop Exe From Running Twice?

May 26, 2009

I used this in VB6 to prevent my program from running twice as it sits the system tray.

If App.PrevInstance = True Then End

What code would i use in VS 2008 to prevent the program from running twice?

View 4 Replies

2008 - Check If A Certain Process Is NOT Running

Jan 24, 2009

I need to check if a certain process is NOT running. So until now i've been using a loop and if it doesn't find the process then it alerts me (with MsgBox) however now i realized that the for each loops looks on each process and if that process isn't the one im looking for its gonna give me an alert, that it was not running even when the next process could be the one i need to know about. [Code]

View 6 Replies

Bug In 2008 Programs Running Under 64 Bit Windows 7?

May 27, 2010

I know there are compatibility problems with 32 bit code running on 64 bit machines, but this doesnt seem like it should happen.

View 3 Replies

Get The ProcessID Of A Running Program In VB 2008?

Aug 12, 2009

I want my program to use the Appacctivate with a process ID because, the window title of the program I am going to work with is changing.

I tried several thing, but I just can't seem to be able to get the processID of any running applications. I googlet it, and there a several code's out there, but I get a Null Reference Error, with all of them.

which gets the ProcessID of a running program? I tried it with process.getprocessbyname ("myApplication") , dunno whether I was on a godd trail, or is there a far easyer way, even for activating windows without the processID.

View 5 Replies

Running A Ssis Package From VB 2008?

Mar 17, 2010

I built a simple package using the export wizard in BIDS. The package just exports data from a table to a csv file I added the reference Microsoft.SqlServer.ManagedDTS.

I also added Microsoft.SqlServer.dtsruntimewrap. Run I run the package in BIDS it works fine but when I try to execute from vb 2008 ..the file is never written. Here is the vb code I am using ssis sql server 2005

Imports Microsoft.SqlServer.Dts.Runtime
Public Class Form1

[code].....

View 1 Replies

Running PHP Scripts In A VB 2008 Form?

Jul 15, 2009

Is running a PHP script in a Visual Basic 2008 form possible? What I need to do is:

1. Add text boxes that would represent variables of the PHP script.

2. Add a button that would run the script.

Is doing this possible? If yes, can anyone please give me a very simple example of running a PHP script in VB2008?

View 1 Replies

Running VB 2008 Programs On Windows 7?

May 16, 2010

I've coded this program in Windows XP 64 Bit. I also compiled it in Windows Vista 64 Bit. I've ran this program on 32 bit machines before and never had any problems. I purchased a new laptop with Windows 7 on it and i'm getting a "Not a valid Win32 Application" Error.

View 3 Replies

VS 2008 Get Global Ip Of PC Running The Program

Nov 29, 2009

I would like to get the global ip of the pc running the program in VB and echo the ip into TextBox1

View 20 Replies

VS 2008 - Running Ambitious App On Different Machines

Apr 25, 2009

Is there any better way of copying an application so I would have included all kind of things like the right references? I need to copy this big and ambitious application in order to work with it on different machines. Because all I got is errors that I cant get rid of, and it does not build the application, so I can't work on it. I was trying to reference the right components, it lessens the errors but still no chance to run the app.
Thats the link where I posted the errors: [URL]

View 2 Replies

VS 2008 : Check That The Process Is Already Running?

Oct 12, 2009

I have a function key defined to load Windows calculator using:

Process.Start("calc.exe")

How do I check that the process is already running?

View 3 Replies

VS 2008 Batch File Running

Jun 15, 2009

I have a batch file on my desktop.how can i run it with vb???

View 1 Replies

VS 2008 Check If Application Is Already Running?

Jul 30, 2011

How to check if my application is already running? So I can prevent it from starting twice.For example:My application is already running, the user is trying to run it again, a MsgBox shows and says that this application is already running.

View 2 Replies

VS 2008 Code Running In Background?

Jun 6, 2009

the user of my application is able to run a diagnostic tool which is part of my application. This diagnostic tool searches every file on the computer, logs the names, and if the my program is able to then the file will be read.

My program has other uses as well. If the user wants to do something else in my program then i want the diagnostic code to run in the background. I don't want this code to prevent users from using other features of my application since the diagnostic search does take time.

How do i do this? Threading? A background worker? If the anwser is Threading which i am pretty sure it is, how do i set up a thread? My computer has 4 GB of RAM - 2GB & 2GB so i know i am able to do this smoothly.

View 2 Replies

VS 2008 Determine If Running Under Debugger?

Mar 28, 2009

I am trying to determine how my application is running. There are four (I thinkpossibilities:F5 in the IDECTRL F5 in the IDEPublish and Installed in Debug ConfigurationPublish and Installed in Release Configuration

View 4 Replies

VS 2008 Determine What Apps Are Running?

Oct 22, 2010

I would like to determine what apps are running on the computer. Not sure where to start.

While we are at it, is there any event that triggers that indicates that a new application has been started? Basically I am trying to log what applications are running on the application while my VB application is running.

View 3 Replies

VS 2008 One Array, Two Running Applications?

Nov 19, 2009

he lack of VB terminology in the following question - this is all fairly new to me. Anyway, on to my question.I have 2 seperate applications running and they both need to access the same array. Is it possible? If so, how?

View 2 Replies

VS 2008 Program Running In The Background?

Jun 30, 2009

When you click a button, the program should start op everytime your computer starts, but it must be in the background, so that you wont notice it.

View 4 Replies

VS 2008 Running A New Form As A Backgroundworker?

Aug 6, 2009

I have created a application that creates a windows schedule task that connects to a FTP server and uploads/synchronize selected files and folders from your computer. After the user has selected all needed information and click continue, a form with a progressbar (Marquee) should appear. The application will then perform different tasks needed for the schedule to be completed. When all needed tasks are finished i want the progressForm to close and the main form will show you a summary of the newly created task.

I run the tasks in the main thread and assign a backgroundworker for the porgressFrom. i have have also tried to run the taks in a backgroundworker.

Button Continue Click Event.
Private Sub btn_Continue_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Continue.Click
Try

[Code]....

View 1 Replies

VS 2008 Running A Thread In The Background?

Jun 9, 2009

Im trying to run a thread in the background. The sub would take a string as as input and the text to speech object would read the string.

1st problem is: How do I pass my value strIn to my sub SpeekEventWorker when im calling it like this

[code]...

View 10 Replies

VS 2008 Running Appliction On Different Machine?

Apr 1, 2009

I just tried running my application on a different computer and it simply wont run. I get this error.

when i click on debug, it says "an error occured creating the form. See excpetion.innerexception for details. The error is' Could not load type

View 9 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved