Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:47 11 May 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CHDIR command on full-size MM...

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9486
Posted: 11:17pm 21 Jul 2014
Copy link to clipboard 
Print this post

Hi folks.

According to the manual, page 25, it says the syntax is CHDIR dir$ where dir$ is the directory you want to change into.

I can't make this work.

I have a directory on the SD card called DATABASE

If I try the likes of CHDIR "B:\DATABASE" no error is returned, but I am still in the current directory.

If I try the likes of CHDIR "B:\DATABASE\" no error is returned, but I am still in the current directory.

If I try the likes of CHDIR "DATABASE" I DO get an error(can't find or create directory), but I am still in the current directory.

What am I doing wrong? Manual has no more specifics.....

EDIT: Found out the problem - leave off the drive spec: CHDIR "\DATABASE" works.

Nevermind...Edited by Grogster 2014-07-23
Smoke makes things work. When the smoke gets out, it stops!
 
BobDevries

Senior Member

Joined: 08/06/2011
Location: Australia
Posts: 266
Posted: 12:05am 22 Jul 2014
Copy link to clipboard 
Print this post

Grogster,

I believe that this was covered previously. I think in conversation with Nick Marentes.

I can't remember off hand what the solution is, but I seem to remember it being somewhat like the DOS system, where you need to change the DISK first (i.e. B:) and then CHDIR on the disk where the target sub-directory lives.

[edit] just tried it with DOS-MMBasic. It is just as I suspected:
Change the drive first:

B:

Then the directory:

CHDIR "database"

Regards, Bob Devries
Dalby, QLD, Australia
Edited by BobDevries 2014-07-23
Bob Devries
Dalby, QLD, Australia
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025