Search found 1058 matches
- 20 Nov 2007 02:59
- Forum: DOS Batch Forum
- Topic: directory command output
- Replies: 3
- Views: 9692
Hi Hank, 2 - How do I eliminate folders from the list that end with a specific character? Look at :checkForValidName, first I copy the first parameter to a local var. And on the local var I use the string manipulation function %var:~-3% (not possible on a parameter like %1). 3 - How do I add the com...
- 09 Nov 2007 05:23
- Forum: DOS Batch Forum
- Topic: FINE THE FILE
- Replies: 12
- Views: 23575
Hi raj_repos, C:\>testak.bat file1.txt More than 20 minutes, exactly 727 minutes actually the file was created only one minutes before interessting ... On my system it works, so I suppose it could be a problem with different time-formats or so. Simply add some debugcode, like this @echo off setlocal...
- 06 Nov 2007 06:26
- Forum: DOS Batch Forum
- Topic: how to get the return value on variable
- Replies: 10
- Views: 25438
- 06 Nov 2007 00:18
- Forum: DOS Batch Forum
- Topic: how to get the return value on variable
- Replies: 10
- Views: 25438
- 05 Nov 2007 15:53
- Forum: DOS Batch Forum
- Topic: FINE THE FILE
- Replies: 12
- Views: 23575
- 30 Oct 2007 16:42
- Forum: DOS Batch Forum
- Topic: How to get last day of each month
- Replies: 1
- Views: 8587
Hi supervans, try this, it is a little bit simple, but it should work from Year 1604-03 till 2400-01 @echo off setlocal enableextensions setlocal enabledelayedexpansion call :initDateTable call :getDaysLength 2007 01 res echo 2007 01 has !res! days call :getDaysLength 2007 02 res echo 2007 02 has !r...
- 25 Oct 2007 06:05
- Forum: DOS Batch Forum
- Topic: FINE THE FILE
- Replies: 12
- Views: 23575
- 19 Oct 2007 13:26
- Forum: DOS Batch Forum
- Topic: How was I called?
- Replies: 6
- Views: 14421
- 19 Oct 2007 13:22
- Forum: DOS Batch Forum
- Topic: passing on unused parameters
- Replies: 2
- Views: 8566
- 19 Oct 2007 03:08
- Forum: DOS Batch Forum
- Topic: FINE THE FILE
- Replies: 12
- Views: 23575
- 17 Oct 2007 14:23
- Forum: DOS Batch Forum
- Topic: How was I called?
- Replies: 6
- Views: 14421
- 11 Oct 2007 14:39
- Forum: DOS Batch Forum
- Topic: FINE THE FILE
- Replies: 12
- Views: 23575
Hi raj_repos, take a look at the function library special :CmpFTime -- compares the time of two files, succeeds if condition is met, fails otherwise you have to change the compare mechanism a bit, but then you can test if a file is newer than 20minutes. How to send is another problem, i suppose you ...
- 09 Oct 2007 04:32
- Forum: DOS Batch Forum
- Topic: MS-DOS: search & extract data from a file
- Replies: 8
- Views: 20198
- 08 Oct 2007 15:16
- Forum: DOS Batch Forum
- Topic: MS-DOS: search & extract data from a file
- Replies: 8
- Views: 20198
Hi BatchIt, many questions ... 1. What do the following do? set filename=!filename:/=-! !variable! is nearly the same as %variable%, but it will be expanded in the moment of processing not in the moment of reading the line. This mechanism must be activated by SETLOCAL ENABLEDELAYEDEXPANSION else the...
- 05 Oct 2007 15:01
- Forum: DOS Batch Forum
- Topic: A DOS command closing a "Windows Explorer" window?
- Replies: 1
- Views: 8827
Hi,
late answer, but an answer.
From Mark Russinovich (known as Sysinternals) found at
http://www.microsoft.com/technet/sysint ... skill.mspx
"Windows NT/2000 does not come with a command-line 'kill' utility."
Use PsKill from the PsTools to kill a process by process id or process name.
late answer, but an answer.
From Mark Russinovich (known as Sysinternals) found at
http://www.microsoft.com/technet/sysint ... skill.mspx
"Windows NT/2000 does not come with a command-line 'kill' utility."
Use PsKill from the PsTools to kill a process by process id or process name.