Results 1 to 2 of 2

Thread: please help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    medina, OH
    Posts
    125
    I am using
    FileCopy "sourcepath","destination"
    is there a way to set the sourcepath
    to go to my app regardless of where it
    is downloaded to?
    "Sometimes the only way you can feel good about yourself is by making someone else look bad And I'm tired of making other people feel good about themselves"-Homer Simpson

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

    <?>

    [Copy]
    'copy or save a file to a different directory
    'for this to work your file try.txt must be in
    'the same folder as your application

    Private Sub Command1_Click()
    Dim AppPath$

    If Right(App.Path, 1) <> "\" Then
    AppPath = App.Path & "\"
    Else
    AppPath = App.Path
    End If

    Dim SourcePath As String, DestPath As String
    SourcePath = AppPath & "try.txt"
    DestPath = "c:\download\myNewFile.txt"

    FileCopy SourcePath, DestPath

    End Sub
    [/code]
    "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