PRocesses: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9
Dlls: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9
Popular: svchost.exe | csrss.exe | rthdcpl.exe | spoolsv.exe | mrt.exe | lsass.exe | Home | Manufacturers

defrag.exe

Batch File Creating Text File With Date

I have a batch file to run a defrag on a computer - as below. At the moment it is creating the text file named ComputerName.txt


@echo off

defrag.exe c: -f -v >'C:DefragComputerName.txt'


How can I get the date to also ammend to the end of the text file? IE:


ComputerName.2011.02.08.txt

View Complete Forum Thread with Replies

Related posts for defrag.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

Can't call defrag from perl script on Windows 2008
C# run defrag.exe remotely
Real Time CMD Output on Windows Defrag.exe
Exitcode 6 using PsExec in Windows Service
Schedule using “at” CMD in LOOP
Process.Start in WindowsSystem32 folder
Batch File Creating Text File With Date
what the best and simplest way to find out whether a volume need defrag?
How do I create a batch script that creates a task for a specific user in the Active Directory?
C# How to Get Output from CMD (Command = “Defrag c: /U”) Before Proccess Ends.

defrag.exe: Can't call defrag from perl script on Windows 2008

I would like to run a perl script that runs the defrag command on windows. When I try to just use

system('defrag C:');


I get ''defrag' is not recognized as an internal or external command,
operable program or batch file'. I get the same error even if I give the full path of C:WindowsSystem32defrag.exe. Also, any test for the existence of defrag.exe fails. For example:

if(-f 'C:\Windows\System32\defrag.exe'),

if(-x 'C:\Windows\System32\defrag.exe'), and
<

defrag.exe: C# run defrag.exe remotely

I am trying to create a utility to defrag all machine on my network. I have had success using WMI's Defrag and DefragAnalysis methods, however they are not compatible with Windows XP. This is a problem as we have some XP machines on the network.
I have been able to locally invoke the defrag.exe process on an XP machine to perform a defrag however I am having problem invoking it on remote machines. Below is my code which works locally, could someone please help me in making this work for re

defrag.exe: Real Time CMD Output on Windows Defrag.exe

I am trying to capture the output on CMD on REAL TIME. I want to read every line that's being output. The following is my code:

private void Defrag2()
{
string osDrive = Path.GetPathRoot(Environment.SystemDirectory);
Process Psi = new Process();
System.Text.Encoding SysEncoding = System.Text.Encoding.GetEncoding(System.Globalization.CultureInfo.CurrentUICulture.TextInfo.OEMCodePage);
Psi.StartInfo = new ProcessStartInfo('cmd', @'/c defrag

defrag.exe: Exitcode 6 using PsExec in Windows Service

I am using PsExec to defrag machines remotely on my network. This works fine in my c# code, but because it also does a bunch of other tasks and I want it to run continuously I have converted it into a windows service.

When the code gets to the PsExec portion it exits with the code 6 which seems to mean 'The handle is invalid' I have tried entering a username and password with sufficient privileges without success, I have also tried adding -s to use the system account which did not help e

defrag.exe: Schedule using “at” CMD in LOOP

I want to defrag disks remotely. I tried this short script:

for /f 'delims=' %%s in (servers.txt) do (
at \%%s 20:00 defrag.exe c: -f
)
@pause


Normally others command work e.g. ping %%s. Unfortunately when I use 'at' command that doesn't work (The command 'loops' on first server and after that CMD window closes).

What am I doing wrong?

defrag.exe: Process.Start in WindowsSystem32 folder

Trying to launch a file located in System32 as administrator but it keeps telling me it doesn't exist.

Error: System can't find specified file
Build Target Platform is: x86.
Current OS: Windows 8.1 x64. I'd rather not have 2 different .exes for a 32 and 64 bit os.

p.StartInfo.Verb = 'runas';
p.StartInfo.FileName =
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System),'Defrag.exe');
//above points to c:windowssystem32defrag.exe
p.StartInf

defrag.exe: Batch File Creating Text File With Date

I have a batch file to run a defrag on a computer - as below. At the moment it is creating the text file named ComputerName.txt


@echo off

defrag.exe c: -f -v >'C:DefragComputerName.txt'


How can I get the date to also ammend to the end of the text file? IE:


ComputerName.2011.02.08.txt

defrag.exe: what the best and simplest way to find out whether a volume need defrag?

I am writing a application that monitor the system's health, user should know when they need to defrag the volumes.

What I am thinking is calling the 'defrag.exe /A' then analyze the output result to see whether it contains 'You do not need to defragment this volume.'

But it's slow and very bad, I fount that the 'Analyze' is really quick on the MyDefrag.exe.

Anyone could tell me what's the best and simplest way?

defrag.exe: How do I create a batch script that creates a task for a specific user in the Active Directory?

This is the code I currently have, but all it does is create the task for me rather than that user.

@echo off
echo Enter Computer Name:
set /p compname=

schtasks.exe /create /sc once /tn defrag /tr '\compnameC$Windowssystem32defrag.exe c:' /st 14:33:00
pause

defrag.exe: C# How to Get Output from CMD (Command = “Defrag c: /U”) Before Proccess Ends.

I'm calling Defrag.exe from my c# application. I want to get output of defragmentation proccess when it's updated.

I want this output(in red rectangle) to be printed in my application.(When 11% progress percentage updated it should also be printed.) :



I'm using this code:

Process selectedProc = new Process();
selectedProc.StartInfo.UseShellExecute = false;
selectedProc.StartInfo.RedirectStandardOutput = true;
selectedProc.StartInfo.WindowStyle = ProcessWindo

dw20.exe: Need emergency help with dw20.exe process? [closed]

recently I have deployed asp.net application to production windows server 2008.

after 10-20 min, starts dw20.exe process (Microsoft.net error reporting shim), which takes almost all CPU available which cause to very slow response of my application.

No error no exception in Event Viewer.

I right clicked on the dw20.exe process and created the dump file to analyze what causing the issue.

Then I opened this file in WidDbg. run command .loadby sos mscorwks and get Unabl

javaw.exe: Application working with javaw.exe but not with java.exe

I tried to run my application, a .jar file, created with eclipse, with the java.exe in my JRE folder, but it doesn't start up and I get a NoClassDefFoundError.

When I start the .jar with javaw.exe it starts fine and is working as it should.

Both .exe files are in the same folder and have the same version of java. So where could be the problem ?

I thought there isn't a difference between those .exe files except the console window.

opera.exe: Getting the program directory .net [closed]

How I can get the address of an installed application (browser) from .net code. For example, we want to run opera, so we need to get his address exe.

It must return 'C: Program Files (x86) Opera opera.exe' for this example.
?ould you tell me, about api to obtain the addresses of installed programs on widnows (x32-x64)

rundll32.exe: rundll32.exe equivalent for 64-bit DLLs

Is there an equivalent of rundll32.exe for calling 64-bit DLLs?

java.exe: Leakage of java.exe processes

In Emacs + clojure-mode/swank-clojure, when I quit, the java.exe process that was created doesn't get actually killed (as much as I select 'y' when asked for it). What could be the cause?

-system process-: How do you parse and process HTML/XML in PHP?

How can one parse HTML/XML and extract information from it?


This is a General Reference question for the php tag

servic~1.exe: DLL shared memory problems with different session, service and user session

first, Thank you read this :)

I use DLL shared Memory and using interlocked~ functions. (Win 7)

DLL loaded by service exe and user app exe.

you know, service session is 0, user session is 1 so different.

if DLL's shared memory value changed by user app exe, not reflected service's DLL shared memory value.

is there a way to sync service and user app's DLL shared memory?

monitor.exe: Wix only registers one Service even though I declare 3

My .wxs file has a piece like this

<Directory Id='UDPMonitorFiles' Name='UDP Monitor'>
<Component Id='UDPMonitorFiles' Guid='*'>
<File Id='UDP_UDPMonitor.exe'
Source='$(var.UDP Monitor.TargetDir)UDP Monitor.exe'/>
<File Id='UDP_UDPMonitor.exe.config'
Source='$(var.UDP Monitor.TargetDir)UDP Monitor.exe.config'/>
<ServiceInstall
Id='UDPServiceInstaller'
Type='ownProcess'
Vital='

spider.exe: How to show/hide another application's window(s)?

I want to create a button that can hide an exe application. As example:
this application will start spider.exe when page loads.
I need a button that can hide & show the spider.exe.
How can I do it with VB.NET, C#, or Java?

I tried to use

myProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal
myProcess.Start()


in page load part, and use

myProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden

ravcpl64.exe: reg key check causing crash

I have this function here that checks Whether or not it is in registry and returns true if it is, false if it's not. However, it crashes every time right around

R = My.Computer.Registry.LocalMachine.OpenSubKey('SoftwareMicrosoftWindowsCurrentVersionRun', True)


Here is the entire function:

Private Function CheckKey2() As Boolean
Dim R As RegistryKey
Dim V() As String
Dim O As String = vbNullString
R = My.Computer.Registry.LocalMachine.OpenSubKey('

EUROBYTE TOOLS - cleans and speeds up your computer

You know it: the longer you own your computer, the slower it runs and the more often the stucks.
Can I change it?
Of course Yes.

Try EUROBYTE TOOLS, program, that cleans and speeds up thousands of computers around the world.
It's quick, automatic and effortless.
So easy to use that even a beginner can use it.

See this page in: English Espanol

Disclaimer
This web site and all information written here is for information purposes only, WITHOUT ANY VARANTY. YOU ARE USING THIS PAGES ON YOU OWN RISK. You should always verify the accuracy of information provided on this page. We pay a big attention to provide you with the correct information. However, many spyware and malware programs use filenames of usual, non-malware processes and DLLs. If we have included information about defrag.exe that is inaccurate, we would appreciate your help by getting us know about your user review. Also, web links to software and DLL vendors are provided just for your conform, and we cannot guarantee its accuracy nor relevance with DLL or process listed on this page. We are not affiliated with this pages. We are not responsible for misprints on this site or changes occured since this page was published. The product, software and operating system names mentioned on this web site, can be copyrighted and registered trademarks of their owners.

defrag.exe