I can't figure out why this batch file won't write any log. @echo off cls set SUFFIX=0 ... set /A SUFFIX=SUFFIX + 1 set FILENAME=DirMS%SUFFIX%.log if exist...
I found my answer but I have another question. ... I found I was missing quotes: call "C:\Program Files\DefragDirMS\DirMS.exe" c: compact -q -o "C:\Program ...
hey all long time no post, Hi Mic Quick question, I tried searching but did not find a solution. Is there a way for xcopy to avoid seeing the back apostrophie...
On Sat, 31 Jan 2009 09:23:33 -0000, "gfunk99999" <gfunk99999@...> ... Hi :) ... I suspect it just looks like the backtick (Is that what it's called?) but...
Hi hope all is well, I'll see if I can integrate ' with my script, perhaps anytime I find this character I can replace it with ? during the xcopy process, the...
Hi All I am trying to get a date into a variable in a specific format. If i use %date% i get Mon 02/02/2009. however i need 20090202 as the format. Any Ideas...
... i use %date% i get Mon 02/02/2009. however i need 20090202 as the format. Any Ideas would be great. ... You can use the following command to format the...
... @echo off for /F "tokens=1-4 delims=/ " %%i in ('date /t') do ( set filedate=%%l-%%j-%%k set DayOfWeek=%%i set Month=%%j set Day=%%k set Year=%%l set...
Here's another generic routine that caters for many different formats of the local date. @echo off setlocal EnableExtensions ... (set today=%date%) set t=2&if...
I have a batch script with a bunch of groups of tasks to run or kill. I want to set a variable, and reuse that variable within the respective section to jump...
I had a 'setlocal' in there. I removed it and tried again. It does the same thing - it can't find the section 'IISStart' when I have: sectionname=IIS goto...
Sorry. I did use 'set' but didn't type that into the e-mail :) I do want to dynamically create the label, unless that won't work. Here is a more complete...
On Tue, 17 Feb 2009 18:53:38 +0530 (IST), mercykamal ... if "%date%"=="Mon 21/02/2009" del "file.txt" Check the format of your %date% variable to adjust the...
I would like to write Error messages to eventlog if something does not work as expected with my backup batch file. How can I do this? Is there a windows...
You can append to a file by using double greater than signs: >> rem This will overwrite the file each time: echo Overwrite this line > log.txt echo Starting...
Oops, sorry about that. Do you have any opposition to calling a Windows/VB script file? http://www.mcotis.com/scripting/windows_event_log_batch_file Google:...
... I found that site before but I did not see the command on the MS Resource Kit 2003 website. Thanks for the VB script link, I will look into it. Thanks John...
I have a block of this code for each application I want to start/stop/kill. I have about 6 applications now and the list is growing. It's about 90% the...
On Tue, 17 Feb 2009 08:38:42 -0800 (PST), Allen May <umayxa3@...> ... Maybe you could populate a set of variables with text depending on each choice, and...
On Sat, 21 Mar 2009 09:14:53 -0000, "Kailash Srivastava" <knsri@...> ... Try this to see if matlab is indeed returning before it should: set s=-nodesktop...