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...
Want to share photos of your group with the world? Add a group photo to Flickr.

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 7488 - 7517 of 8119   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
7488
I have two things I need to do. 1. I need to run through a directory and delete any files over a week old. This will be a simple batch file run as a scheduled...
Terry Dunlap
ace_man47
Offline Send Email
Jul 5, 2007
9:00 pm
7489
On Thu, 05 Jul 2007 20:59:09 -0000, "Terry Dunlap" <ace_man47@...> ... Use forfiles.exe from Microsoft. ... If the new files will have a later timestamp...
foxidrive
Offline Send Email
Jul 5, 2007
10:16 pm
7490
I'm sure this must be pretty simple but I've searched, and I can't find anything on google or in this group. I have a batch file that uninstalls a couple of...
aristos_vasiliou
aristos_vasi...
Offline Send Email
Jul 13, 2007
1:55 am
7491
Hello there, ... find anything on google or in this group. ... some files. I would like it to ask for some kind of confirmation before continuing. ... If I...
Sam Wallace
guillaumedep
Offline Send Email
Jul 13, 2007
2:32 am
7492
... deletes ... this ... This was very helpful. Thank you very much :)...
aristos_vasiliou
aristos_vasi...
Offline Send Email
Jul 19, 2007
9:21 am
7493
I have 77 microsoft hotfixes in a folder, and I want to create a batchfile that will install them. The thing is that I want to install them using switches....
aristos_vasiliou
aristos_vasi...
Offline Send Email
Jul 19, 2007
9:26 am
7494
You could try this: Untested (from within a batch file): for /f %%I IN ('dir c:\software\updates\windows\*.exe') do ( %%I /q /n /z ) Or from CMD Prompt: for /f...
Byrne, Derek
theodorik2003
Offline Send Email
Jul 19, 2007
9:36 am
7495
Since I'll be using it as a batch file I tried the first command. This is the result: C:\>test.cmd C:\>for /F %I IN ('dir C:\updates\*.exe') do (%I /q /n /z ) ...
Aristos Vasiliou
aristos_vasi...
Offline Send Email
Jul 19, 2007
10:52 am
7496
Hi there, I see you forgot to use the "/b" switch with the dir command. This forces the DIR command to list files in "bare" format, otherwise you'll have to...
Byrne, Derek
theodorik2003
Offline Send Email
Jul 19, 2007
11:15 am
7497
On Thu, 19 Jul 2007 10:36:21 +0100, "Byrne, Derek" <Derek.Byrne@...> ... Try this from the folder concerned (untested): @echo off for /f "delims=" %%a IN...
foxidrive
Offline Send Email
Jul 19, 2007
12:22 pm
7498
Hi, Whan I use it in a command line, it works. The problem is that it tries to install everything at the same time. It doesn't wait until the hotfix is...
aristos@...
aristos_vasi...
Offline Send Email
Jul 19, 2007
12:53 pm
7499
... It worked :) Thanks :) Out of curiosity, if at some point I need to install a specific hotfix using a different switch, how do I modify the batch file?...
aristos_vasiliou
aristos_vasi...
Offline Send Email
Jul 19, 2007
12:58 pm
7500
On Thu, 19 Jul 2007 22:20:30 +1000, foxidrive <foxidrive@...> ... To wait after each installation: @echo off for /f "delims=" %%a IN ('dir *.exe /b')...
foxidrive
Offline Send Email
Jul 19, 2007
1:01 pm
7501
Cheers Mic, Always the quick and easy way with you ;o) Regards, Derek Byrne ... From: batchworld@yahoogroups.com [mailto:batchworld@yahoogroups.com] On Behalf...
Byrne, Derek
theodorik2003
Offline Send Email
Jul 19, 2007
1:03 pm
7502
On Thu, 19 Jul 2007 12:57:54 -0000, "aristos_vasiliou" ... @echo off for /f "delims=" %%a IN ('dir *.exe /b') do ( if /i "%%a"=="specifichotfix.exe" ( start ""...
foxidrive
Offline Send Email
Jul 19, 2007
1:04 pm
7503
... hotfix ... I tried it like this: @echo off for /f "delims=" %%a IN ('dir *.exe /b') do ( if /i "%%a"=="KB905474-WGA.exe" ( start "" /w "%%a" /q ) else ( ...
aristos_vasiliou
aristos_vasi...
Offline Send Email
Jul 19, 2007
1:17 pm
7504
On Thu, 19 Jul 2007 13:16:11 -0000, "aristos_vasiliou" ... I left out the closing parenthesis (don't laugh Derek :lol:). Try this. @echo off for /f "delims="...
foxidrive
Offline Send Email
Jul 19, 2007
1:32 pm
7505
... Thanks again :)...
aristos@...
aristos_vasi...
Offline Send Email
Jul 19, 2007
1:40 pm
7506
You don't need to do a DIR of the directory - just can call the files directly in the FOR statement. I had a number of hotfixes that I was installing with two...
Karl M. Bernard
karl_bernard
Offline Send Email
Jul 19, 2007
7:17 pm
7507
... try this for /f %%A in ('\updates\*.exe ^/b') do (I /q /n /z )...
Brian Lasch
bslasch
Online Now Send Email
Jul 20, 2007
8:15 am
7508
Hi All, I know I've seen it used around here a couple of times, but I'm finding I need to use it as soon as for a once off project. Question No 1 is, where do...
Byrne, Derek
theodorik2003
Offline Send Email
Jul 24, 2007
3:51 pm
7509
Hi Derek. You can download the Windows version of sed from link: http://gnuwin32.sourceforge.net/downlinks/sed.php Other Windows packages are listed on page: ...
Parag P. Doke
paragpdoke@...
Send Email
Jul 24, 2007
7:18 pm
7510
On Wed, 25 Jul 2007 00:44:47 +0530, "Parag P. Doke" <paragpdoke@...> ... Also, the SED FAQ and useful one liners can be found here: ...
foxidrive
Offline Send Email
Jul 25, 2007
3:05 am
7511
I've been trying to get this to work but haven't had any luck. Any help would be apprecitated. FOR /F "TOKENS=1" %%i IN (name.txt) DO (sed...
Morris, Lamar
lamarmorrist...
Offline Send Email
Jul 25, 2007
4:16 pm
7512
This doesn't error but doesn't make the changes either. FOR /F "TOKENS=1" %%i IN (name.txt) DO sed -f "change.sed" "%%i\wyse\wnos\wnos.ini" > temp.ini && move...
Morris, Lamar
lamarmorrist...
Offline Send Email
Jul 25, 2007
4:26 pm
7513
On Wed, 25 Jul 2007 11:16:51 -0500, "Morris, Lamar" <LamarMorris@...> ... It's hard to spot what you are trying to achieve, Lamar. Can you give a before and...
foxidrive
Offline Send Email
Jul 25, 2007
4:26 pm
7514
Thanks Mic. I should have said what I was trying to do. I only want to change the first instance in the ini file. The line will either say Reconnect=60 or...
Morris, Lamar
lamarmorrist...
Offline Send Email
Jul 25, 2007
4:30 pm
7515
On Wed, 25 Jul 2007 11:16:51 -0500, "Morris, Lamar" <LamarMorris@...> ... I think this is what you want to do, Lamar. @echo off FOR /F "TOKENS=1" %%i IN...
foxidrive
Offline Send Email
Jul 25, 2007
4:30 pm
7516
Cheers for this Mic and Parag. Cheers to you Lamar for some "real world" examples :o) Regards, Derek Byrne IT Retail Field Engineer E: derek.byrne@......
Byrne, Derek
theodorik2003
Offline Send Email
Jul 25, 2007
4:40 pm
7517
On Thu, 26 Jul 2007 02:30:18 +1000, foxidrive <foxidrive@...> ... This is meant to change "Reconnect" and any three characters to "Reconnect=90" in...
foxidrive
Offline Send Email
Jul 25, 2007
4:47 pm
Messages 7488 - 7517 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