| View previous topic :: View next topic |
| Author |
Message |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Tue Jan 11, 2005 4:08 pm Post subject: Some problems with INIREAD |
|
|
%1 = link1.url
inifile open,%1
dialog set,Link1, @iniread("internetShortcut", url)
This dont load the link1.url to EDIT1 MYBE but is empty |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Tue Jan 11, 2005 5:25 pm Post subject: |
|
|
If it is in fact a valid .ini file, then try including the program path before the filename:
%1 = @path(%0)link1.url
Cheers,
- Boo |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Tue Jan 11, 2005 7:44 pm Post subject: |
|
|
Nope
the file is there but dont load up
it only loads with
%1 = @filedlg("Internet Shortcut|*.url", "Select Link To Load")
if %1
inifile open, %1
dialog set,link1,@iniread("internetShortcut", url)
i want auto load up ??? |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Tue Jan 11, 2005 9:30 pm Post subject: |
|
|
| So where are the .url files located? In the program directory, or elsewhere? |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Wed Jan 12, 2005 6:23 am Post subject: |
|
|
| In the program directory OK |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Wed Jan 12, 2005 10:31 am Post subject: |
|
|
inifile open,@PATH(%0)link1.url
%%Link1 = @iniread("InternetShortcut",url)
dialog set,Link1,%%Link1
INIFILE CLOSE
ITS OK
now its working
to much the same % in the script
thanks anyway |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Jan 12, 2005 1:34 pm Post subject: |
|
|
hi filip,
i never use " " to access the contents of an ini file
| Code: | | %%content = @iniread(internetShortcut, url) |
not sure if this will help
serge _________________
|
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Wed Jan 12, 2005 7:38 pm Post subject: |
|
|
Yes but i dont see any change
the code was manual converted from VDS 2 "Mate" |
|
| Back to top |
|
 |
|