cmd

Java: Starting a cmd process that won't execute his job, but loaded into memory

Hello fellas! My problem is: I want to start a process via a thread and that process should execute his job. As far as I started the process, he remains into memory and does nothing until I close my main program. (like it was some kind of suspended) And only after exiting main program, this process is starting to do what he must. Di...

Generate a log from all commits I've done in a day (or in an specific date) using CVS (log or history)?

I have to use CVS in my work and at the end of the day, I need to generate a report in an internal enterprise system. I write meaningful comments in all my work. I would like to do a cvs log or cvs history, with only the comments from each file I have commited to the repository (a solution using only command line, so I could automate ot...

Filter list of scheduled tasks by taskname

running the cmd command schtasks /query /fo LIST Gives me a list of all scheduled tasks running on my system. Example: HostName: CHESTNUT105B TaskName: Calculator Next Run Time: 12:00:00, 10/28/2010 Status: Running HostName: CHESTNUT105B TaskName: GoogleUpdateTaskMachineCore Next Run Time: At logon time St...

all disks space info in a WIN CMD shell using just native commands

I'm trying to automatize the disc space info for all local partitions. The 'fsutil info drives' gives the following: C:\cmd>fsutil fsinfo drives Drives: C:\ D:\ E:\ F:\ I:\ Z:\ Now I have the following: for /F "tokens=2,* delims=\ " %i in ('fsutil fsinfo drives') do ( fsutil volume diskfree %i ); C:\cmd>(fsutil volume diskfree C: ...

Batch script: how to check for admin rights

How do I check if the current batch script has admin rights? I know how to make it call itself with runas but not how to check for admin rights. The only solutions I've seen are crude hack jobs or use external programs. Well, actually I don't care if it is a hack job as long as it works on Windows XP and newer. ...

real number on gawk

i am using gawk on a windows computer with cygwin what i am trying to do is find min and max from three columns two are lat and lon and the third column is the value this is the code: echo off for /f "tokens=1,2,3 delims= " %%a in ('gawk "BEGIN {maxc = 0} {maxlo=0} {maxla=0} {if ($3>maxc) maxc=$3} {if ($1>maxlo) maxlo=$1}...