POV-Ray : Newsgroups : povray.off-topic : Very cool Ubuntu distro : Re: Very cool Ubuntu distro Server Time
6 Sep 2024 07:17:33 EDT (-0400)
  Re: Very cool Ubuntu distro  
From: Invisible
Date: 9 Apr 2009 12:05:17
Message: <49de1cbd$1@news.povray.org>
>> If you have ever done any windows scripting it should be a piece of 
>> cake, this is pretty standard stuff for dealing with files in scripts:
>>
>> Set FSO = CreateObject("Scripting.FileSystemObject")
>> Set Folder = FSO.GetFolder("folder name")
>> Set Files = Folder.Files
>> For Each File in Files
>>  do something with File.Name here
>> Next
> 
> Or just
> for %I in (*.txt) do md5 %I >>checksums.txt
> or whatever parameters you want. It's not like Windows doesn't have a 
> shell. :-)

Does that work recursively?

Slightly more fun is trying to make it produce the exact same output as 
the Unix MD5 tool so it's portable between OSes... ;-)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.