[Q] Changing Windows File Extensions

Andreas Raab andreas.raab at gmx.de
Tue Dec 17 12:39:08 UTC 2002


fd := FileDirectory on: 'C:\WINDOWS\Desktop\GoodSqueak\New Folder'
(fd fileNamesMatching: '*.txt') do:[:fileName|
	fd rename: fileName toBe: (fileName allButLast: 4),'.doc'.
].


> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org 
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On 
> Behalf Of Ken Collins
> Sent: Tuesday, December 17, 2002 7:34 AM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: [Q] Changing Windows File Extensions
> 
> 
> Say I have a directory: 'C:\WINDOWS\Desktop\GoodSqueak\New 
> Folder' which 
> contains 14 .txt files. How can I chance the .txt extensions 
> to .doc in 
> Squeak?
> 
> Squeak 3.4beta[VI4]latest update: #5138
> 
> Win98SE
> 
> TIA,
> 
> Ken
> 
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
> http://join.msn.com/?page=features/virus
> 
> 




More information about the Squeak-dev mailing list