Search the web
Sign In
New User? Sign Up
batchworld · Batch World
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 8033 - 8062 of 8119   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
8033
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...
Gary Kuznitz
docfxit
Offline Send Email
Jan 22, 2009
3:17 pm
8034
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 ...
Gary Kuznitz
docfxit
Offline Send Email
Jan 22, 2009
4:54 pm
8035
On Thu, 22 Jan 2009 08:52:54 -0800, "Gary Kuznitz" <docfxit@...> ... Untested: set /A SUFFIX=SUFFIX + 1 set num= %suffix% set num=%num:~-3% set...
foxidrive
Offline Send Email
Jan 23, 2009
12:51 am
8036
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...
gfunk99999
Offline Send Email
Jan 31, 2009
9:23 am
8037
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...
foxidrive
Offline Send Email
Jan 31, 2009
12:29 pm
8038
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...
gfunk99999
Offline Send Email
Feb 1, 2009
8:07 am
8039
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...
habs3
Offline Send Email
Feb 2, 2009
3:34 pm
8040
... 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...
giskier
Offline Send Email
Feb 2, 2009
4:24 pm
8041
... @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...
kcmjr
Online Now Send Email
Feb 3, 2009
7:36 pm
8042
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...
foxidrive
Offline Send Email
Feb 4, 2009
12:04 am
8043
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...
umayxa3
Offline Send Email
Feb 16, 2009
11:55 am
8044
... I would think it is because you have declared the variable inside a setlocal/endlocal pair and not as a global variable....
foxidrive
Offline Send Email
Feb 16, 2009
2:13 pm
8045
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...
umayxa3
Offline Send Email
Feb 17, 2009
10:20 am
8046
... You forgot the set command and I don't really think you want to change the label dynamically, do you?? @echo off set sectionname=IIS goto...
foxidrive
Offline Send Email
Feb 17, 2009
10:29 am
8047
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...
umayxa3
Offline Send Email
Feb 17, 2009
11:13 am
8048
... No, you can't. Is there a reason why you want to do that - I couldn't see a reason in your code....
foxidrive
Offline Send Email
Feb 17, 2009
11:21 am
8049
Hi All   i want to delete a file on particular date please give me the code     Add more friends to your messenger and enjoy! Go to...
mercykamal
kamal_mercy
Offline Send Email
Feb 17, 2009
1:23 pm
8050
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...
foxidrive
Offline Send Email
Feb 17, 2009
2:06 pm
8051
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...
John Black
lonely_tux
Offline Send Email
Feb 17, 2009
3:12 pm
8052
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...
Michael Burek
mike_burek
Offline Send Email
Feb 17, 2009
3:38 pm
8053
... Yes but what about the MS Windows event log? The one Event Viewer displays? Thanks...
John Black
lonely_tux
Offline Send Email
Feb 17, 2009
3:40 pm
8054
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:...
Michael Burek
mike_burek
Offline Send Email
Feb 17, 2009
3:54 pm
8055
Oh, it looks like there might be a command line utility for this in the Windows Resource Kit: http://www.ss64.com/nt/logevent.html...
Michael Burek
mike_burek
Offline Send Email
Feb 17, 2009
3:55 pm
8056
... 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...
John Black
lonely_tux
Offline Send Email
Feb 17, 2009
4:12 pm
8057
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...
Allen May
umayxa3
Offline Send Email
Feb 17, 2009
4:38 pm
8058
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...
foxidrive
Offline Send Email
Feb 17, 2009
5:01 pm
8059
START "" /WAIT C:\Apps\R2008bNetwork\bin\matlab.exe -nodesktop -nosplash -r evldu START "" /WAIT tskill matlab I want task 1 to complete before task 2 is...
srivastava
goshainganj
Offline Send Email
Mar 21, 2009
8:53 am
8060
... Do you get any errors?...
foxidrive
Offline Send Email
Mar 21, 2009
9:01 am
8061
... I don't get any output of task 1. Reason is that task 2 is executed and Matlab is killed. Kailash...
Kailash Srivastava
goshainganj
Offline Send Email
Mar 21, 2009
9:14 am
8062
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...
foxidrive
Offline Send Email
Mar 21, 2009
10:31 am
Messages 8033 - 8062 of 8119   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help