The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Win -aw URL command
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

CStorey

Canada
137 Posts

Posted - 01/30/2001 :  2:41:17 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I would like to use the


win -aw [URL];


command to open HTML documents on my computer. Typically this is achieved by replacing the http:// protocol with file:///. This does not work with the win -aw comman as it simply redirects me to www.originlab.com. Has anyone else had sucess or even tried to do this?? Is there another way to open HTML documents directly from Origin? It would be a nice feature to open an HTML file on a local computer in order to design help files in HTML format for distribution with OPKs.

Craig

cpyang

USA
1406 Posts

Posted - 01/30/2001 :  4:25:26 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Unfortunately Origin tests for "http" to see if it is an URL, otherwise it thinks it is something in the OriginLab website. Maybe you can just pass it to the OS with something like

run -sc "c:\junk\test\mytest.htm";

This should work on most systems.





Edited by - cpyang on 01/30/2001 20:25:09
Go to Top of Page

CStorey

Canada
137 Posts

Posted - 01/31/2001 :  1:36:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the tip. When I try the command as written I get a message directed to the script window that says the command is only valid for Windows NT/2000. I'm running Windows 98. I checked the help file that I have with Origin 6.1 SR1 and I can't find documentation for the -sc option. My documentation only include the option -e. Can you tell me more about the -sc option and any others that might exist?

I got it to work by using:


run -e C:\..\netscape.exe D:\...\index.htm


Thanks for the help,
Craig

Go to Top of Page

greg

USA
1380 Posts

Posted - 01/31/2001 :  4:07:16 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The -s and -sc options were added to allow DOS commands to be executed from within a script. As user CStorey discovered, these new commands only work on NT and Windows 2000 systems.

The c option will automatically close the DOS box that opens when using the s option.

Examples:


run -s "type c:\origin\tips.txt";
run -sc "d: && cd origin && dir *.otp > template.txt";

(Note the use of ampersands to string multiple commands together.)


Edited by - greg on 01/31/2001 16:08:36
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000