DOS commands

Blitz3D Forums/Blitz3D Programming/DOS commands

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Sorry to bump a fairly old thread, but I struggled with this even after reading the advice here. I worked it out eventually (I haven't coded for ages so it took a while!)

I'm making an image gallery and wanted to avoid typing all the image names and links so I came back to Blitz to generate a list.

I found out that the dos "dir /b *.jpg > list.txt" would generate the file list and I sussed out a simple Read/Write routine to get the links generated but...

On XP I could use either Command or CMD but to use long file names I had to use CMD otherwise I ended up with names like "050802~1.jpg" instead of "050802LongFileName.jpg" which was rubbish.

You'll probably tell me I could have done the whole thing in Blitz but...