SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-23-2010, 08:36 PM
49studebaker 49studebaker is offline
Sage Advanced User
 
Join Date: Nov 2008
Posts: 103
How to make SageTV launch a Windows shortcut(.lnk)?

This does not seem to work:
ExecuteProcess("C:\\Users\\Public\\Desktop\\firefox.lnk", null, null, true)
Reply With Quote
  #2  
Old 05-23-2010, 08:54 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
A .lnk file is not recognized as an executable by Java. You have to call Cmd.exe and pass the .lnk file as an argument on the command line:

Code:
ExecuteProcess("Cmd.exe", CreateArray("/c", "C:\\Users\\Public\\Desktop\\firefox.lnk"), null, true)
Or else just copy the command line out of the link properties and call that directly.
__________________
-- Greg
Reply With Quote
  #3  
Old 05-23-2010, 09:35 PM
49studebaker 49studebaker is offline
Sage Advanced User
 
Join Date: Nov 2008
Posts: 103
Quote:
Originally Posted by GKusnick View Post
A .lnk file is not recognized as an executable by Java. You have to call Cmd.exe and pass the .lnk file as an argument on the command line:

Code:
ExecuteProcess("Cmd.exe", CreateArray("/c", "C:\\Users\\Public\\Desktop\\firefox.lnk"), null, true)
Or else just copy the command line out of the link properties and call that directly.
Thanks.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SageTV Keyboard Shortcut Cheat Sheet Brent SageTV Software 0 05-27-2009 12:33 PM
Close SageTV GUI Keyboard Shortcut Brent SageTV Software 1 07-20-2008 05:22 PM
ARG, don't make me reinstall windows! flashbacck SageTV Software 1 03-25-2006 09:55 AM
Keyboard shortcut hoppala007 SageTV Recorder Software 1 12-27-2004 05:30 AM
Make 2 drives from 1 without reload of Windows help rak306 Hardware Support 6 04-03-2004 09:13 AM


All times are GMT -6. The time now is 06:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.