IonicWind Software

IWBasic => General Questions => Topic started by: Andy on November 04, 2019, 07:18:25 AM

Title: IWB editor open file
Post by: Andy on November 04, 2019, 07:18:25 AM
Hi,

I was wandering is there a way to make the IDE open a file then same way we can open say notepad?

SYSTEM "C:\\IWBDev3\\Bin\\IWBDev.exe" , "c:\\Test\\SubTest\\1.iwb"

This just opens another copy of the IDE, but doesn't open the file 1.iwb

Thanks,
Andy.
 :)
Title: Re: IWB editor open file
Post by: Egil on November 04, 2019, 12:10:12 PM
Andy,

If IWB is installed on your PC (not on an USB-stick), this works when the file you want to edit is in the same directory:

SYSTEM getstartpath + "test.iwb"
Maybe some experimentation with inserting the path instead of using getstartpath will lead you to a solution?


Good Luck!

Egil
Title: Re: IWB editor open file
Post by: Andy on November 04, 2019, 01:30:33 PM
Thanks Egil,

Will try tomorrow, email me and we can have a carch up.

Andy
Title: Re: IWB editor open file
Post by: Egil on November 05, 2019, 03:16:49 AM
This is almost identical to your example in the first post, and it works:
string a$ = "D:\\MyIWB\\tmp\\test.iwb"

SYSTEM a$

I'll contact yoy by mail later today..



Egil
Title: Re: IWB editor open file
Post by: Andy on November 24, 2019, 02:12:48 AM
Egil,

Sorry, thanks just seen your post.

I tried:

SYSTEM "explorer.exe" , "C:\\test\\subtest\\test.iwb"

And it works on my Win7 32 bit machine.

Also it works even if your IDE is not open.

Andy.
 :)