sy start .

General development discussion.

Moderators: Susan Smith, admin, Gabriel

Post Reply
Gabriel
Posts: 412
Joined: Sun Aug 10, 2008 7:37 am
Location: Arlington, TX
Contact:

sy start .

Post by Gabriel »

Just a quick tip.. but i just realized typing the following command at the Br command prompt will cause windows to open the working folder for your BR programs in windows explorer. Don't know if its useful to you or not but I think it will save me a lot of time, particularly when debugging BR problems remotely over slow internet connections.

Code: Select all

sy start .
Susan Smith
Posts: 717
Joined: Sun Aug 10, 2008 4:24 am
Location: Southern California

Post by Susan Smith »

That's very cool! I just tried it in Win7 32 bit and works perfectly. I tried leaving out the period at the end and I get a DOS box positioned at the BR location folder.

I wonder what other interesting things you can do with system calls like this.


-- Susan
Gabriel
Posts: 412
Joined: Sun Aug 10, 2008 7:37 am
Location: Arlington, TX
Contact:

Post by Gabriel »

The Windows Start command is very powerful. I use it to do all sorts of things.

Here are some other things I type from BR programs from time to time using this command:

Code: Select all

list >program.brs
sy start program.brs
Launches a BR program in MyEdit without using the Edit command (I dont want the edit command because it requires line numbers.)

Code: Select all

sy start http://listen.di.fm/public3/drumandbass.pls
Launches some very energetic music on an internet radio station in my default media player (as long as it plays .pls files, most do) to wake me up in the mornings. (I actually save this one as a shortcut cause its too much typing when i'm half asleep. But this music is more powerful then coffee.)

Code: Select all

sy start http://brwiki.ads.net/index.php?title=4152
Pulls up the wiki page for the 4152 error. You can use this to get the latest documentation from any error in your favorite (default) web browser.

Code: Select all

sy start http://brwiki.ads.net/index.php?title=Special:Search&search=file+reading
Searches for all documents containing the words "file" and "reading" on the BR wiki.

Code: Select all

sy start notepad wbconfig.sys
Launches my wbconfig.sys file in notepad.

These are just a few examples of things you can do with the sy start command.

Of course, some of these longer ones I do in simpler ways, using shortcuts, or even calling them from BR programs with the execute command.

If you right click in your folder, and select "new shortcut" windows will ask you the target for the shortcut. Put the following text in the shortcut target field:

Code: Select all

sy start http://listen.di.fm/public3/drumandbass.pls
When it asks for the name of the shortcut, type "music".

Now, the following command will launch the internet radio station:

Code: Select all

sy start music.url
Much simpler.

And since you can do that with any URL, its a very powerful feature.

I imagine you could use a batch file, to get really flexible.. And the ability to do this from the execute command means we can do all sorts of neat things from within our BR programs. My accounting software has a button to launch music with a single click.

The right kind of music helps me concentrate, especially if i'm working on the road from a chaotic place. And the ability to launch it with a single click helps me keep my music addiction from interfering too much with my programming work.

Gabriel

PS. Just for fun, In case that music is too intense for you, here are some other music links to use:

Code: Select all

http://listen.di.fm/public3/trance.pls - Classic old skool electronica
http://listen.di.fm/public3/vocaltrance.pls - Cheesy romantic electronica
http://listen.di.fm/public3/chillout.pls - I play this one to slow my heart rate down to a normal level after listening to drum and bass all morning 
http://listen.di.fm/public3/ambient.pls - This music is to go to sleep
http://www.di.fm - Use this to find out all the electronic music thats available.
http://www.sky.fm - Use this website to play classical music. Also, Jazz and Salsa and lots of other kinds.
http://www.pandora.com - Use this website to make a customized internet radio station just for you, that uses your feedback to play only songs you like, even songs you've never heard before and didn't know you liked.
Gabriel
Posts: 412
Joined: Sun Aug 10, 2008 7:37 am
Location: Arlington, TX
Contact:

Post by Gabriel »

Ed Archambo wrote in with a question:

What would it take to call Outlook from within WB when the cursor is sitting in an email field?


Here's the answer:

sy -M start mailto:emailaddress

for example
sy start mailto:gabriel.bakker@gmail.com

This launches the clients default email client which is usually outlook, with a letter started and the email address field filled in.

Gabriel
bluesfannoz
Posts: 291
Joined: Fri Jun 19, 2009 9:01 am
Location: Lawrence, Kansas
Contact:

Post by bluesfannoz »

Hi Ed
No there is no way with the builtin mailto: to include an attachment.

We use the following little exe to send emails with an attached file and it works very well. It even talks with Gmail using ssl if you configure it correctly.

I use 4.2's ability to generate a pdf of the report I want to email and then attach it to the email.

Usage Example with gmail
10000 Execute "sys -m sendemail.exe -s gmail.com:587 -o tls=auto -f Sender@me.com -xu username -xp password -t Receiver@you.com -u This is Subject Line -m Body of Message -a Attachment Filename >seml"&WSID$&".tmp"


http://caspian.dotconf.net/menu/Software/SendEmail/
Steve Koger
Computer Specialist
SEKESC-MACS Division
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

MAILTO

Post by GomezL »

sy -c -m start mailto:Support@CollectionSoftware.com^&Subject=Support%20request%20from%20%20%2D%20COMMERCIAL%20LEGAL%20SOFTWARE%20%2D%20New^&Body=HELP%21

You are limited to a fairly short body, but this works very nicely.
eda at basic-software.com

[BR_forum] sy start .

Post by eda at basic-software.com »

Thanks Louis

Ed Archambo
Basic Software Systems
903.792.4421
PO Box 5905
Texarkana, TX 75501
eda@basic-software.com (eda@basic-software.com)
www.basic-software.com


From: br_forum-bounces@ads.net [mailto:br_forum-bounces@ads.net] On Behalf Of GomezL
Sent: Wednesday, March 21, 2012 4:37 PM
To: br_forum@ads.net
Subject: Re: [BR_forum] sy start .



sy -c -m start mailto:Support@CollectionSoftware.com^&Subject=Support%20request%20from%20%20%2D%20COMMERCIAL%20LEGAL%20SOFTWARE%20%2D%20New^&Body=HELP%21 ([email]Support@CollectionSoftware.com%5e&Subject=Support%20request%20from%20%20%2D%20COMMERCIAL%20LEGAL%20SOFTWARE%20%2D%20New%5e&Body=HELP%21[/email])

You are limited to a fairly short body, but this works very nicely.
Post Reply