Changing directories

BlitzPlus Forums/BlitzPlus Beginners Area/Changing directories

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.

I'm having alittle problem getting this to work, using the example:

; ChangeDir example

ChangeDir "c:winntsystem32"
Print "The folder has been changed to: " + currentdir$()

It doesnt work !!

Also the text says "directory/path = full path to directory/folder"

does that mean you put the name of the folder, then the path ?? ie.. program files/c:

So.. how do I change the directory from where ever it currently is to "C:\program files".

And, for some reason - this doesnt work:

a$=CurrentDir$
a=Len(a$)

It reports back with a length of '0' ???

Please Help !!!