Qbasicnews.com

Full Version: SHELL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
why does this not work?

do
input a$
shell a$
loop until a$ = "stop"


well, it does work for somethings... but most other things it does not. For example, "cd\" does not.... nor does "cd.." or anything with the 'cd' command in it. MKDIR is fine, and DIR...

Any ideas?

Thanks.
Each time you use SHELL, a new environment is created. When that shell exits, its environment is destroyed. Therefore, you can't change things like the current directory or environment variables and expect them to filter back up to the parent shell.