Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Script to change many txt files

Thread Tools
 
Search this Thread
 
Old Oct 25, 2007 | 09:21 AM
  #1  
WRX_Rich's Avatar
WRX_Rich
Thread Starter
Scooby Regular
iTrader: (5)
 
Joined: Feb 2003
Posts: 2,625
Likes: 0
From: Worcester
Default Script to change many txt files

has any one got to hand a script that will search the pc for all *.rdp files ( its all but a txt file ). and append an extra line

thanks in advance, Im normally ok at dos Scripts but im getting stuck big style

cheers
Rich
Reply
Old Oct 25, 2007 | 10:35 AM
  #2  
HankScorpio's Avatar
HankScorpio
Scooby Regular
 
Joined: Feb 2004
Posts: 5,848
Likes: 0
Default

for /f "usebackq DELIMS=" %%i in (`dir C:\*.rdp /b/s`) do ECHO Blah blah blah new text >>%%i
Reply
Old Oct 25, 2007 | 03:21 PM
  #3  
Hanley's Avatar
Hanley
Scooby Regular
 
Joined: May 2002
Posts: 3,229
Likes: 0
From: Liverpool
Default

Or download something like Ultra Edit

Reply
Old Oct 25, 2007 | 04:05 PM
  #4  
Simon C's Avatar
Simon C
Scooby Regular
 
Joined: Sep 2003
Posts: 8,677
Likes: 0
From: At the diesel pump...
Default

or if their all in 1 folder

ren *.rdp *.txt
Reply
Old Oct 25, 2007 | 06:45 PM
  #5  
HankScorpio's Avatar
HankScorpio
Scooby Regular
 
Joined: Feb 2004
Posts: 5,848
Likes: 0
Default

Or....

take the (single line) script (the the OP asked for)
that finds all the rdp files (that the OP asked for)
and appends an extra line (that the OP asked for)
and run it to get the results that the OP asked for



add an extra line, a minor tweak and a file with a list of machines and it'll even do them all remotely.
Reply
Old Nov 1, 2007 | 04:50 PM
  #6  
WRX_Rich's Avatar
WRX_Rich
Thread Starter
Scooby Regular
iTrader: (5)
 
Joined: Feb 2003
Posts: 2,625
Likes: 0
From: Worcester
Default

just remembered about this sorry for the late reply

the problem I was having was editing the rdp file .. as soon as I realised I needed to use unicode I was all ok

cheers any way

Rich
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
Nov 4, 2021 07:12 PM
SilverM3
ScoobyNet General
8
Feb 24, 2021 01:03 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
Nov 18, 2015 07:03 AM
Sam Witwicky
Engine Management and ECU Remapping
17
Nov 13, 2015 10:49 AM
Ganz1983
Subaru
5
Oct 2, 2015 09:22 AM




All times are GMT +1. The time now is 05:00 PM.