473,394 Members | 1,770 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Wheres The File Path?

I wrote an app thats alot like a text editor. It produces files of a User
Defined type. I want the user to be able to dble click on a saved file
that was made by my program and have my program come up and read the file..
I can write the code to handle the file but where does Windows store the
File Path of a file that was just dble clicked by user. I've tested
registry, and searched windows files. Any Ideas?
Jul 17 '05 #1
4 6108
There are two steps for this:

1) add code in your app to read Command$() on startup, and act appropriately

cmdline = Command$()
<do something with cmdline>

2) create a file association for your file's unique extension. See
http://vbnet.mvps.org/code/reg/association.htm.
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"david johnson" <ia******@earthlink.net> wrote in message
news:vg*****************@newsread3.news.atl.earthl ink.net...
:I wrote an app thats alot like a text editor. It produces files of a User
: Defined type. I want the user to be able to dble click on a saved file
: that was made by my program and have my program come up and read the
file..
: I can write the code to handle the file but where does Windows store the
: File Path of a file that was just dble clicked by user. I've tested
: registry, and searched windows files. Any Ideas?
:
:

Jul 17 '05 #2
There are two steps for this:

1) add code in your app to read Command$() on startup, and act appropriately

cmdline = Command$()
<do something with cmdline>

2) create a file association for your file's unique extension. See
http://vbnet.mvps.org/code/reg/association.htm.
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"david johnson" <ia******@earthlink.net> wrote in message
news:vg*****************@newsread3.news.atl.earthl ink.net...
:I wrote an app thats alot like a text editor. It produces files of a User
: Defined type. I want the user to be able to dble click on a saved file
: that was made by my program and have my program come up and read the
file..
: I can write the code to handle the file but where does Windows store the
: File Path of a file that was just dble clicked by user. I've tested
: registry, and searched windows files. Any Ideas?
:
:

Jul 17 '05 #3
Thank You Mr. Birch ... Worked like a charm.
"Randy Birch" <rg************@mvps.org> wrote in message
news:Sa********************@rogers.com...
There are two steps for this:

1) add code in your app to read Command$() on startup, and act
appropriately

cmdline = Command$()
<do something with cmdline>

2) create a file association for your file's unique extension. See
http://vbnet.mvps.org/code/reg/association.htm.
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"david johnson" <ia******@earthlink.net> wrote in message
news:vg*****************@newsread3.news.atl.earthl ink.net...
:I wrote an app thats alot like a text editor. It produces files of a User
: Defined type. I want the user to be able to dble click on a saved file
: that was made by my program and have my program come up and read the
file..
: I can write the code to handle the file but where does Windows store the
: File Path of a file that was just dble clicked by user. I've tested
: registry, and searched windows files. Any Ideas?
:
:

Jul 17 '05 #4
Thank You Mr. Birch ... Worked like a charm.
"Randy Birch" <rg************@mvps.org> wrote in message
news:Sa********************@rogers.com...
There are two steps for this:

1) add code in your app to read Command$() on startup, and act
appropriately

cmdline = Command$()
<do something with cmdline>

2) create a file association for your file's unique extension. See
http://vbnet.mvps.org/code/reg/association.htm.
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"david johnson" <ia******@earthlink.net> wrote in message
news:vg*****************@newsread3.news.atl.earthl ink.net...
:I wrote an app thats alot like a text editor. It produces files of a User
: Defined type. I want the user to be able to dble click on a saved file
: that was made by my program and have my program come up and read the
file..
: I can write the code to handle the file but where does Windows store the
: File Path of a file that was just dble clicked by user. I've tested
: registry, and searched windows files. Any Ideas?
:
:

Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: chris | last post by:
I'm writing a small app to help me learn more about cryptography. All it does is encrypt all of the files in directory A, and put the encrypted versions of the files in directory B. It then...
5
by: Interzoner | last post by:
I am new at Java.. I installed j2sdk-1.4.2-nb-3.5-bin-windows on a Windows 2000 machine I can't find a "Javac"file......
3
by: StGo | last post by:
How can i read/write file's custom attributs(like subject,author...) in C#??? Thanks :))
5
by: Sakharam Phapale | last post by:
Hi All, I am using an API function, which takes file path as an input. When file path contains special characters (@,#,$,%,&,^, etc), API function gives an error as "Unable to open input file"....
2
by: guy | last post by:
i am working on a different pc to usual with vb2005 pro. whenever i load up a solution (by using open, or doubleclicking the solution file the project loads but the solution does not appear in...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
4
by: tasahmed | last post by:
Hello Friends, I wrote a function which scans the current working directory and lists out details such as directory/file owner, permission etc. The output of this script can be viewing in the...
5
by: Eugene Anthony | last post by:
ds1.Tables.Rows.ItemArray.GetValue(0).ToString() contains the string path: images/5/Video1/qbert.flv if (File.Exists(ds1.Tables.Rows.ItemArray.GetValue(0).ToString())) { //code to execute } ...
3
by: jfarrell | last post by:
Hi there, Im attempting to publish my site to local then copy files to the web server. The only option there seems to be in VWDE is to build/copy the site...where is the Publish website option...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.