bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");Well, as it turns out...
The bbs tries to run baja /sbbs/exec/temp_1.src, and then launch that file.
I have no temp_1.src. I am running 3.15 as of today, and this file is nowhe to be found. Ideas? :)
When I try to list files, I use the following command:
bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");
Re: weird js thing...?
By: Esc to All on Sun Sep 06 2009 20:30:51
When I try to list files, I use the following command:
bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");
To list files, try using this command instead:
bbs.list_files();
Nightfox
bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");
To list files, try using this command instead:
bbs.list_files();
Yeah, I suppose I could take a look at that ;) However, I got it to work issue was that windows 7 has ridiculous issues with letting programs laun other programs. As such, it wasn't allowing synchronet to launch baja.ex WinXP, it works just fine.
I tried using bbs.menu.baja, though, but bbs.menu.baja seems to be undefined And there seems to be no mention of it in the Synchronet JavaScript documentation. Are you using it to run Baja code from within JavaScript? I so, could you point me to any documentation you used to describe how to do that?
Actually, it's internal to a custom shell I downloaded :) If you go to theroughnecks.net and grab tracker1's shell off his site, the s3 synchron shell, it has all the routines for launching baja commands (albeit a weir
I tried using bbs.menu.baja, though, but bbs.menu.baja seems to be undefined.
And there seems to be no mention of it in the Synchronet JavaScript documentation. Are you using it to run Baja code from within JavaScript? If so, could you point me to any documentation you used to describe how to do that?
Ok, I have my shell completely in .js, and most everything is going as planned.
There is one peculiar issue, though...
When I try to list files, I use the following command:
bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");
The bbs tries to run baja /sbbs/exec/temp_1.src, and then launch that file.
I have no temp_1.src. I am running 3.15 as of today, and this file is nowhere to be found. Ideas? :)
Re: weird js thing...?
By: Nightfox to Esc on Sun Sep 06 2009 09:37 pm
Re: weird js thing...?
By: Esc to All on Sun Sep 06 2009 20:30:51
When I try to list files, I use the following command:
bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");
To list files, try using this command instead:
bbs.list_files();
Nightfox
Yeah, I suppose I could take a look at that ;) However, I got it to work. The issue was that windows 7 has ridiculous issues with letting programs launch other programs. As such, it wasn't allowing synchronet to launch baja.exe. On WinXP, it works just fine.
Re: weird js thing...?
By: Esc to Nightfox on Mon Sep 07 2009 18:35:20
bbs.menu.baja("setstr *.*" + "\r\n" + "file_list");
To list files, try using this command instead:
bbs.list_files();
Yeah, I suppose I could take a look at that ;) However, I got it to work issue was that windows 7 has ridiculous issues with letting programs laun other programs. As such, it wasn't allowing synchronet to launch baja.ex WinXP, it works just fine.
Ah, interesting. Good to know you got it to work.
By the way, your bbs.menu.baja command interested me, because I've also converted my command shell to JavaScript, but there was still one thing I had to keep in Baja: Letting the user configure their file scan pointer.
The reason is that there doesn't seem to be an equivalent JavaScript function for that.
had to keep in Baja: Letting the user configure their file scan pointe
Use bbs.get_newscantime(), like so:
bbs.new_file_time = bbs.get_newscantime(bbs.new_file_time);
Sysop: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 143:19:54 |
Calls: | 369 |
Files: | 2 |
Messages: | 38,453 |