Sigma Design Forums  

Go Back   Sigma Design Forums > Developer
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Old 11-05-2008, 07:22 PM
Thom Truscio Thom Truscio is offline
Join Date: Mar 2007
Posts: 1
Default Music search (off topic)

I'm trying to use Sigmac to get a list of stuff in my "My Music" directory.

It's on my F drive and holds almost 700 DCs (WAV format)

if I use this:


I get a listing like this:

<>acoustic alchemy
acoustic alchemy
<>adrian belew
adrian belew
<>adrian legg
adrian legg
<>al di meola
al di meola

...where each "group is doubled with that "<>" heading of the group +
the actual group.

If I use this:


I get an error where it can't find: "F:/My Music" or no such file.

Is there something I'm missing here?

Last edited by Thom Truscio : 11-05-2008 at 07:29 PM.
Reply With Quote
Old 11-05-2008, 11:25 PM
Al Hart Al Hart is offline
ARRIS Development Team
Join Date: Jan 2007
Posts: 227

I tried the following:

$txgdir('c:/aa', '*', #true)



from the prompt line and got a good list.

I also tried a folder with 1,100 files.

I did not try a mounted drive.

- Have you tried it on any other folders?

- Were any of the file names in the folder longer than 128 or 256 characters?

- What version of ARRIS are you using?
Al Hart
ARRIS Development Team
Reply With Quote
Old 11-05-2008, 11:44 PM
Al Hart Al Hart is offline
ARRIS Development Team
Join Date: Jan 2007
Posts: 227

When I first read your posting I assumed the files names were messed up. Were these the correct file names, and the onlu problem is the interspersed folder (<>) lines?

Is it possible that your folder contains a file and a folder for each song.

Try doing a DIR on it from a DOS prompt.

(Sometimes Windows combines things like this, and only shows one of them when displayed from Windows Explorer)
Al Hart
ARRIS Development Team
Reply With Quote
Old 11-06-2008, 07:54 AM
Jim Bennett Jim Bennett is offline
Sigma Design
Join Date: Jan 2007
Location: Alexandria, LA
Posts: 135

A similar search on my system lists just the directories (which contain the "<>" before the name). How do you have things organized? In my case it is a simple directory for the artist, a directory for each album under that, and then the collection of songs (in .mp3 format) inside that. Is there another file at the "artist" level?

One other side note - $txgdir has a 4th parameter which allows you to maintain the text case as it appears on the disk.

$txgdir('C:/Mp3 Music','*',#true,#true)

The default is #false which lists everything in lower case.

You can always filter at the time you read the list from the text file that $txgdir creates. For example you can read in only the lines that begin with "<>" and then strip off the "<>".
Jim Bennett
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -6. The time now is 09:26 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.