Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SHELL
#1
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.
ou're damed if you, well, let's just say your screwed not matter what you do.
Reply
#2
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)