Re: access a file



"xCal" <xcal79@xxxxxxxxxxxxxxxx> wrote:

what I do to specify a file within the same folder in wich my *.exe
is placed.? I mean, my problem is with something I believe is called
"relative paths", because there is no drive name like "c:\\" in ppcs

CE doesn't have a concept of working directory like the desktop OSs do.
You'll need to use something like GetModuleFileName to get the name and
path of your executable, then trim it down to just the path. Pass in
NULL for the module handle.

--
--------- Scott Seligman <scott at <firstname> and michelle dot net> ---------
If I have seen farther than others, it is because I was standing on
the shoulders of giants.
-- Isaac Newton
.



Relevant Pages

  • access a file
    ... what I do to specify a file within the same folder in wich my *.exe is ...
    (microsoft.public.pocketpc.developer)
  • Re: vfp ... cannot start. Could not load resources.
    ... Make sure that the folder pointed to for VFP temp files exists and the user has full rights to it. ... If you don't specify the folder in Config.fpw, VFP uses the Windows default. ... and vfp9enu.dll into the same directory as the exe. ...
    (microsoft.public.fox.programmer.exchange)
  • RE: Adding Links to WorkItems using WorkItems.xml
    ... SharePoint Services" folder in process template folder when a new project ... specify one or more tasks and their dependencies. ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.enterprise.tools)
  • RE: Idiot_self+trojans+administrative privs = Disaster
    ... Use CACLS to get access to the system volume folder to delete the ... /G user:perm Grant specified user access rights. ... Wildcards can be used to specify more that one file in a command. ... %windir%\Network Diagnostic\xpnetdiag.exe (file missing) ...
    (Security-Basics)
  • Re: Make folder with accompanying shortcut if possible
    ... (Filename can be a filename, ... Traverse Folder / Execute File ... /P user:perm;spec Replace specified user's access rights. ... Wildcard characters can be used to specify more than one file in a command, ...
    (microsoft.public.scripting.vbscript)