Results 1 to 2 of 2

Thread: It used to be so easy (DOS)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    Toronto, Canada
    Posts
    112

    Lightbulb

    I am trying to make an app that will allow a user to input their user name, select a directory on their local hard drive, and do a sort of Xcopy (a la DOS) where it would confirm if the file is to be overwritten if it exists.

    I do now know how to copy directory.
    I do not know how to select the contents of a directory.
    I do not event know how to copy the files, when there is more than one.

    The other problem I have is the program will make a directory if the user name is new. If I run the program the network drive would have k:\backup\shook1s. I can create the directory, but if I run the code again it spits it out.

    I know these questions sound basic...

    but any help would be appreciated.

    Thanks


  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    As there is no code to go by and you have not indicated an error code, this might be an overly stupid reply but that's neither here nor there.
    Code:
    Do you have and if statement involved
    If dir("k:\backup\shook1s.ext") <> "" then 
    mkdir ("K:\backup\shook1s.ext")
      bla 
        bla
          bla
    else
        bla bla bal
    End If
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width