1. current_dir() on WinXP

{{{ Has anyone other then me noticed that current_dir() doesnt work on WinXP? I always get the :\Documents and Settings directory...

Euman

new topic     » topic index » view message » categorize

2. Re: current_dir() on WinXP

{{{ Brian I just checked and the problem exist when I use PowerDesk 4 Pro (filemanager) I dont know how to fix this problem and there are hundreds of people who use PowerDesk.

Anyone out there know of a way to fix this?

Euman

--- Original Message From: "Brian Broker" <bkb at cnw.com>

Must be just you... This test program prints whatever directory it's
started from on my XP system.
------------------ > include get.e > include file.e

puts(1,current_dir())
if wait_key() then end if
------------------ > How are you launching your program? (Double-clicking? Command-line? > Batch file?)

Brian


Euman wrote:
>
> Has anyone other then me noticed that current_dir()
> doesnt work on WinXP?
> I always get the :\Documents and Settings directory...
>
> Euman

new topic     » goto parent     » topic index » view message » categorize

3. Re: current_dir() on WinXP

Thanks AL, 
 
I knew I could do this using Win API, just wanted to 
know if others had similar problems with built-in 
Euphoria commands. 
 
Robert may want to check into changing current_dir() 
for us Windows programmers. 
 
Euman 
  
----- Original Message -----  
From: "Al Getz" <Xaxo at aol.com> 
To: "EUforum" <EUforum at topica.com> 
Sent: Wednesday, May 28, 2003 3:15 PM 
Subject: RE: current_dir() on WinXP 
 
 
> ======== The Euphoria Mailing List ========  
>  
>  
>  
> euman at bellsouth.net wrote: 
> >  
> > Has anyone other then me noticed that current_dir() 
> > doesnt work on WinXP?  
> > I always get the :\Documents and Settings directory... 
> >  
> > Euman 
>  
> Hello again Wayne, 
>  
> current_dir() doesnt work on any machine if you drag and drop 
> a file onto your executable. 
>  
> I submitted a CClient piece installer a while back which has 
> an include file "GetStartupDir.e" in the source. 
> This has a function GetStartupDirectory() which always  
> returns the correct startup directory. 
>  
> Take care for now, 
> Al 
>  
> =^========================================== 
> This email was sent to: euman at bellsouth.net 
>  
> EASY UNSUBSCRIBE click here: http://topica.com/u/?b1dd66.b3n6Lc.ZXVtYW5A 
> Or send an email to: EUforum-unsubscribe at topica.com 
>  
> TOPICA - Start your own email discussion gro================ 
>  
>  
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: current_dir() on WinXP

{{{ Thanks Al,

your routine works great!

Euman

--- Original Message From: "Al Getz" <Xaxo at aol.com>


Hello again Wayne,

I have to apologize for not mentioning that the include file
i pointed you to doesnt use any win api links, it's all done
in raw Euphoria code, and it's a very short file.
All it does is look at command line args and do a simple
split_path() ignoring everything except the dir.

It's also of interest to note that the win api also doesnt
work as expected, at least not on Win98 (which i end up using
more then WinXP). If you drag and drop a file and use
the win api GetCurrentDirectory() you still dont get the
correct directory smile The function doesnt fail, it just
returns the wrong directory!

I think the name of the file is "GetCurrentDir.e"
not "GetCurrentDir.ew". I try to remember to use the
"e" extension for files that dont use windows specific
stuff.


Take care for now,
Al

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu