Richard: Yes, while I am slow and that's a very good possibility that I didn't have the files on my desktop (but in this case I did), I tested out that possibility anyways. I added a directory to my Desktop called "test". I added just a single mp3 and wmv file and made the appropriate additions to the strings and got the exact same results. Here's what it looks like still with error 2 on the @ERROR.

$dir is reporting as: C:\Documents and Settings\cameron.wilson\Desktop\test
obtained that by marking it in the cmd window, copying and pasting.

my "test" directory has:
audio slave.mp3
movie_0001.wmv

and I tried to simplify the script as much as possible.

Code:
Break On

$ = SetOption("WrapAtEOL","On")

$dir = '%USERPROFILE%\Desktop\test'
$path = DirPlus($dir,"/ad /s /f mp3 wmv")

? $dir

For Each $x in $path
? $x
Next





Jooel: The reason I was still using Dir is because I saw that DirPlus() would apparently take file extensions and return them but when I tried to pass the extensions to them, I got blank results (like above) so I assumed that I was either passing it incorrectly or it wasn't working and getting the pathnames alone DID work so I tried to take it from that approach.

FYI: The script you provided yields almost the same resutls. I get this message and nothing else: "\*press any key to continue"...


Edit: Has anyone heard of a KiX specific function that ran differently on one machine than another? I could understand something like COM or where you could get an access denied problem but not something seeminly as simple as this... I even ran this on my coworker's machine to ensure it wasn't just mine.


Edited by thepip3r (2006-02-08 08:06 PM)