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...
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...
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...
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...
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....
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...
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 ) ...
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...
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...
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...
... 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?...
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')...
Cheers Mic, Always the quick and easy way with you ;o) Regards, Derek Byrne ... From: batchworld@yahoogroups.com [mailto:batchworld@yahoogroups.com] On Behalf...
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 ""...
... 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 ( ...
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="...
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...
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...
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@...
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: ...
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...
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...
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...
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...
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@......