"Roy Kiesler [TeamSybase]" <SPAM_FREE...@noblestar.com> wrote in
message news:Gc$Ab$eX$GA....@forums.sybase.com...
> The SHFileOperation Win32 API function allows you to
copy/move/rename/delete
> files (including wildcards) with the optional animated progress dialogs
you
> see in Explorer. If you need a code sample, check out
> http://rkiesler.home.mindspring.com/win32api/shellsrv.htm -- note that the
> demo app is PFC-based, but you can easilly de-couple the API calls from
it.
>
> As for the working directory, the GetCurrentDirectoryA Win32 API is what
you
> need -- search back in this forum and you'll find many code samples for
this
> API.
>
> --
> pbm_hopethishelps,
> Roy Kiesler [TeamSybase]
> Sybase Developers Network (SDN) - http:///www.sybase.com/sdn
>
> "Odon Schoofs" <odon.s...@wkb.be> wrote in message
> news:Kw0d8iZX$GA....@forums.sybase.com...
> > I've got to copy a file from within the starting-directory of my
program,
> > called "extract.mdb" to another filename/location.
> >
> > Is there a command/api-call to do it easily?
> >
> >
> > Question2:
> > How can I get the name of the current working(program-startup)
> directory???
> >
> >
> > Thank you for your help!
> > Odon Schoofs
> >
> >
>
>
I am not quite sure how CopyFile is better as far as hard-coded filenames
are concerned. Can you explain?
--
pbm_hopethishelps,
Roy Kiesler [TeamSybase]
mySybase - http://my.sybase.com
"Darren Cameron" <came...@quorumis.com> wrote in message
news:3FLbhYH...@forums.sybase.com...