SunQuest
           C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old September 29th, 2002, 05:35 PM
areynolds2 areynolds2 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: Ohio, USA
Posts: 7 areynolds2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to areynolds2 Send a message via AIM to areynolds2 Send a message via Yahoo to areynolds2
Opening a File - Emulating Double Click

I know that this probably isn't the right forum, but there is no other relevant forum for my question - I'm coding in VBScript as a custom addition to a piece of software, and was wondering if there is any method to open files (i.e. emulating a double-click in windows).

Thanks in advance for any help you can provide.

Reply With Quote
  #2  
Old October 3rd, 2002, 07:05 AM
guttorm guttorm is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Location: Trondheim, Norway.
Posts: 1 guttorm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi

I don't know about VBScript, but in Windows, the name for the thing is ShellExec or ShellExecute. Try searching the docs on those.

If you can run commands, the command "start" has been around for a while. You can give a command "start something" and if that something is a file, it's the same as doubleclicking on it.

Examples:
start URL
start c:\temp\test.pdf
start \\someserver\someshare\somefile.doc
and so on...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Opening a File - Emulating Double Click


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway