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...
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...
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...
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: ...
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.
...
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}...