1. Don: DSS: Slight directory problem still

Hello again Don,


I checked out your newest upload of DSS3 and i found it still has
a slight problem where you use XP's "open with" to set up the program
to open various file types (like .jpg).  The problem is that it still
cant find the directory where the ssdata file is located.
(After set up, right click on file name and use 'open with').

The fix now turns out to be quite simple:

  In line 9 of the file "Viewer_Globals.ew"
  change 
    start_dir=current_dir()
  to
    start_dir=comm
  and then rebind to .exe form.

Seems to work great after this change, and i think this change was
supposed to be included with the new start dir code recently added.


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » topic index » view message » categorize

2. Re: Don: DSS: Slight directory problem still

Hello Al,

I just now saw your message I haven't been checking the forum much.

I've been busy trying to multi boot.

So I've been busy with the Ubuntu and Ranish Partition Manager forums.

I won't go into all the problems I'm having.

But I had start_dir="e:" and I knew that wouldn't work on every computer.

So I changed it back to current_dir()

I suppose you would have to make comm global(if it isn't all ready).

I seems to work ok on Win2k but I'll add you adjustments test it and 

then upload it. I'm sure your most likely right.

Don Cole

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

3. Re: Don: DSS: Slight directory problem still

don cole wrote:
> 
> Hello Al,
> 
> I just now saw your message I haven't been checking the forum much.
> 
> I've been busy trying to multi boot.
> 
> So I've been busy with the Ubuntu and Ranish Partition Manager forums.
> 
> I won't go into all the problems I'm having.
> 
> But I had start_dir="e:" and I knew that wouldn't work on every computer.
> 
> So I changed it back to current_dir()
> 
> I suppose you would have to make comm global(if it isn't all ready).
> 
> I seems to work ok on Win2k but I'll add you adjustments test it and 
> 
> then upload it. I'm sure your most likely right.
> 
> Don Cole

Hi again Don,

Well, after i made the change everything worked very well, and
i did the same thing with your previous version of DSS and it
worked with that too, so i assume it's a good change to make :)


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

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

4. Re: Don: DSS: Slight directory problem still

Yes AL,

   global sequence comm
   sequence commline
   commline=command_line()
   comm=commline[2]
   for k=length(comm) to 1 by -1 do
     if comm[k]='\\' then
       comm=comm[1..k]
       exit
     end if
   end for


Is a good route to find what Directory  myProg.exe is running in.

Any .ini or necessary files should be in that Dir.

I then added:

start_dir()=comm

Tested and uploaded.

I wish you would test the .exe. 

To see if it will work on everyone's computer.

Don Cole


Don Cole

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

5. Re: Don: DSS: Slight directory problem still

don cole wrote:
> 
> Yes AL,
> 
> }}}
<eucode>
> 
>    global sequence comm
>    sequence commline
>    commline=command_line()
>    comm=commline[2]
>    for k=length(comm) to 1 by -1 do
>      if comm[k]='\\' then
>        comm=comm[1..k]
>        exit
>      end if
>    end for
> 
> </eucode>
{{{

> 
> Is a good route to find what Directory  myProg.exe is running in.
> 
> Any .ini or necessary files should be in that Dir.
> 
> I then added:
> 
> start_dir()=comm
> 
> Tested and uploaded.
> 
> I wish you would test the .exe. 
> 
> To see if it will work on everyone's computer.
> 
> Don Cole
> 
> 
> Don Cole

Hi there Don,


Ok, i tested both the exw and exe files and they both work fine now smile
Even a newly bound exw file works (as exe) so all is well.


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

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

Search



Quick Links

User menu

Not signed in.

Misc Menu