Announcement

Collapse
No announcement yet.

SHELL command

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SHELL command

    I have trubble with the SHELL command.
    I try to pass a "DIR /O /T:W > [my outputfile]"
    to the command processor under Win2000, but my
    outfile remains empty!? It works fine with
    "DIR /O > [my outputfile]" and if i write
    "DIR /O /T:W > [my outputfile]" directly at the
    prompt this also works. I even tried to put the
    dir command in a .bat file, and call this one via
    the shell command, but no luck... What am i doing wrong?

    Thanks in advance for any helpfull ideas!

    ------------------

  • #2
    Make sure your output file name doesn't have spaces in the name.
    This one caught me for a while.

    I converted long file name to short file names and my shell problems went away.

    John


    ------------------

    Comment


    • #3
      No paths specified? Perhaps the default directory isn't what you think.
      Use CHDRIVE and CHDIR, or specify a directory at DIR time.

      If you show us the code, it would help....

      ------------------
      Tom Hanlin
      PowerBASIC Staff

      Comment

      Working...
      X