Announcement

Collapse
No announcement yet.

long patnames

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

  • long patnames

    In my programm I try the next line:

    shell "copy c:\documents and settings\jan\bam\home\tekst.txt c:\temp"

    Too many parameters !! What can I do with "documents and settings" ??
    I don't want to rename that directory....

    Jan Vossen

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

  • #2
    COMMAND.COM only does short filenames. Look up the 8.3 version of the folder.
    It's DOCUMEN~1 on my machine.

    shell "copy c:\documen~1\jan\bam\home\tekst.txt c:\temp"

    If you're shelling to the 32-bit command shell, CMD.EXE, you can use
    the full name, but you need to put it in quotes so that the spaces aren't
    taken for delimiters:

    shell "copy " + CHR$(34) + "c:\documents and settings\jan\bam\home\tekst.txt" + CHR$(34) + " c:\temp"

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

    Comment

    Working...
    X