|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Filecopy sourcefileI have a project with an installfile-folder with files.
I want to copy files from this folder to another location like Sorce = "InstallFiles\file.txt" Destination="c:\...\file.txt" FileCopy (Source,Destination) I seems like I need the whole source path to make this work. When I publish this application I don't know where it is located, so to add the complete path is difficult. Is there a way to solv this problem? reidarT Hi,
you can easily find out where your application is located by using My.Application.Info.DirectoryPath. So you could write My.Application.Info.DirectoryPath & "\file.txt" as the source. Hope this helps. PDS Show quoteHide quote "reidarT" wrote: > I have a project with an installfile-folder with files. > I want to copy files from this folder to another location like > > Sorce = "InstallFiles\file.txt" > Destination="c:\...\file.txt" > FileCopy (Source,Destination) > > I seems like I need the whole source path to make this work. > When I publish this application I don't know where it is located, so to add > the complete path is difficult. > Is there a way to solv this problem? > reidarT > > >
OLEDBCommand vs. SQLCommand
MDI Parent Forms cUpdate Custom attribut with reflection Exe Size Re: Which do you prefer? IE toolbar show/hide XML File into a SQL table how pass Date vaiable to XPath query DLL returns a variant data type - how to convert and use in VB .NET Setting Tab Index between Panels |
|||||||||||||||||||||||