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 25 October 2007, 09:21 AM
  #1  
WRX_Rich
Scooby Regular
Thread Starter
iTrader: (5)
 
WRX_Rich's Avatar
 
Join Date: Feb 2003
Location: Worcester
Posts: 2,625
Likes: 0
Received 0 Likes on 0 Posts
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
Old 25 October 2007, 10:35 AM
  #2  
HankScorpio
Scooby Regular
 
HankScorpio's Avatar
 
Join Date: Feb 2004
Posts: 5,848
Likes: 0
Received 0 Likes on 0 Posts
Default

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

Or download something like Ultra Edit

Old 25 October 2007, 04:05 PM
  #4  
Simon C
Scooby Regular
 
Simon C's Avatar
 
Join Date: Sep 2003
Location: At the diesel pump...
Posts: 8,677
Likes: 0
Received 0 Likes on 0 Posts
Default

or if their all in 1 folder

ren *.rdp *.txt
Old 25 October 2007, 06:45 PM
  #5  
HankScorpio
Scooby Regular
 
HankScorpio's Avatar
 
Join Date: Feb 2004
Posts: 5,848
Likes: 0
Received 0 Likes on 0 Posts
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.
Old 01 November 2007, 04:50 PM
  #6  
WRX_Rich
Scooby Regular
Thread Starter
iTrader: (5)
 
WRX_Rich's Avatar
 
Join Date: Feb 2003
Location: Worcester
Posts: 2,625
Likes: 0
Received 0 Likes on 0 Posts
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
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
SilverM3
ScoobyNet General
8
24 February 2021 01:03 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
Sam Witwicky
Engine Management and ECU Remapping
17
13 November 2015 10:49 AM
Ganz1983
Subaru
5
02 October 2015 09:22 AM



Quick Reply: Script to change many txt files



All times are GMT +1. The time now is 01:31 PM.