How Can I Simulate Double-Clicking A File To Open It In The Default App Without Installing Default App?

I have an app written with Visual Studio 2013. The app has code for opening a file using the standard OpenFileDialog and also has code (AutoOpenFile()) for opening a file when a user double-clicks on a file that is handled by the app. I have not yet created
an installer for the app, so I won't be able to test it's AutoOpenFile() code...unless there is a way to simulate the process of auto-opening the double-clicked file without actually installing the app on my PC. Anyone?

Thanks for your reply, Wyck. I already have the necessary code in my app for opening a file when I double-click on it. The problem is that the app is not currently installed on my PC. Until I do install it, is there a way I can test-run that code
by double-clicking on an associated file?
You lost me at: you want to test-run code that is not on your PC.
O_o
You want to double-click a file, and then...what do you want to have happen?  You want to run...something...that is not on your PC??
The "simulation" is to launch your app from the command line and pass in the name of the file you wanted to simulate a "double-click" of.
Regardless, you cannot get the shell to have a double-click of a file cause your application to launch unless you modify the registry to do so.  (This is tantamount to "install" to me.)
In the spirit of continuing to be helpful, though, I'll assume that this is what you want to do and I'll show you how to get it done with the least amount of tampering with your registry.
Here are minimally invasive registry modifications you need to make to get it to launch a program when you double-click your file.  It's pretty small.
EXAMPLE ONLY:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.wyck]
@="Wyck.Document"
[HKEY_CLASSES_ROOT\Wyck.Document\shell\open\command]
@="c:\\windows\\system32\\notepad.exe \"%1\""
[You have to save the above with your appropriate modifications to a file with the
.reg extension (e.g.: test.reg) and then you'll have to double-click the test.reg file to "merge" these settings into your registry.]
The example above registers a file extension called .wyck and assigns a completely arbitrary class name to it called
Wyck.Document.
Then it associates a shell open command with the Wyck.Document class that causes
notepad.exe to be passed the filename of the file you double-clicked (that's what the
%1 does).  You are welcome to replace all the specific names with your own extensions and class names and replace notepad.exe with the path to your (test) executable.
This executable will be launched, but not with a debugger attached.  To facilitate debugging it, you'll want to temporarily add some code to your program to pause when the program launches, possibly by showing a message box right at the very beginning
of your main function that says "attach debugger now" so that you can attach a debugger to the process that was started by the shell, and then dismiss the message box and continue debugging.
When you are done with your testing, you can simply manually delete those two registry keys using
regedit.

Similar Messages

  • How can I set double-click of JPGs to open in Photoshop instead of Camera Raw?

    Like the title of this topic says, how can I set up Bridge so that double-clicking a JPG opens it directly in Photoshop, instead of going through the intermediary Camera Raw dialog box first?
    And yes, I do have my File Type Associations for all JPGs set to open in Photoshop.
    I also have Camera Raw preferences set to NOT "always open JPEG files with settings using Camera Raw".
    I'm using Bridge 2.1.1.9 and Photoshop CS3 10.0.1 on Mac OS X 10.5.2 on Intel.

    First double check if you have the options in the prefs indeed unchecked.
    If so restart Bridge holding down option and choose the refresh preferences option, reset the prefs again to your wishes and restart Bridge.

  • How can I define Double Click Processing in SAP Query ?

    The first question is : How Can I define drill-down for SAP Query report ?
    The second one :  How can I program Double Click in SAP Query report for Different columns like ALV Grid processing ?

    you can attach a repot or at tcode etc in an SAP query using report assignment in SQ01 but as far as i remember you cannot attach multiple reports.
    regards,
    khusro habib

  • Good afternoon ladies and gentlemen!   My question concerns the impossibility to open RAW-files directly from the program Adobe Bridge. At the moment when you open a RAW-file from Adobe Bridge by double-clicking, RAW-file is opened only in Photoshop. In t

    Good afternoon ladies and gentlemen!
    My question concerns the impossibility to open RAW-files directly from the program Adobe Bridge. At the moment when you open a RAW-file from Adobe Bridge by double-clicking, RAW-file is opened only in Photoshop. In the settings Adobe Bridge - in "open RAW-files by double-clicking in Adobe Camera Raw» box is checked. When you try any changes in the settings Adobe Bridge system displays a message:
    Bridge's parent application is not active. Bridge requires that a qualifying product has been launched at least once to enable this feature.
    The entire line of Adobe products on my computer updated to the latest updates. Previously, a family of products Adobe Photoshop on your computer is not set. Computer - PC, Windows 7 Enterprises.

    <moved from Adobe Creative Cloud to Bridge General Discussion>

  • How can we a validate a CSV file in SSIS and log the error details in another CSV File by using Sript Task.

    How can we a  validate a CSV file in SSIS and log the error details in another CSV File by using Sript Task.

    Please see:
    http://www.bidn.com/blogs/DevinKnight/ssis/76/does-file-exist-check-in-ssis
    http://social.msdn.microsoft.com/Forums/en-US/01ce7e4b-5a33-454b-8056-d48341da5eb2/vb-script-to-write-variables-to-text-file

  • How do I enable double-click on toolbar to open new tab?

    I used to open a new empty tab by double clicking next to already opened tabs. This caused opening new one. This was removed in one of the updates :( I miss it a lot.

    Does it work when you start Firefox with Add-ons disabled? (''Help > Restart with Add-ons Disabled'')
    *Do NOT check any boxes when entering Safe Mode, just click to continue
    *If it works in Safe Mode, then an extension is causing the problem and you must determine which extension.
    *To exit Safe Mode, click ''Firefox button > Exit'' OR ''File > Exit'', wait a few seconds (10-30) for Firefox to close completely, then use your Desktop icon to start Firefox.
    See --> [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]<br />
    See --> [http://support.mozilla.com/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]<br />
    See --> [http://support.mozilla.com/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *'''''Adobe Shockwave for Director Netscape plug-in''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *'''''Next Generation Java Plug-in for Mozilla browsers''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • How can I double-click a file to open it in default app in my Visual Studio project without creating an installer?

    I have an app with code to open a file by double-clicking on it. The app in my Visual Studio project file should start automatically and then open the file automatically. I double-click on the file, then look for the app in my solution folder (I choose the
    .exe in the Debug folder). Am I choosing the correct .exe file?
    What I'm trying to do is test some code I wrote that will open the associated file type when I double click on it, as opposed to creating an installer, installing the app and then double-clicking on the file to see if it will open in the associated app automatically.

    Hi dudefromthebronx,
    Yes, I think you could doubt click the .exe file in your local machine.
    Of course, maybe you could get it in Bin\Debug or Bin\Release folder, it is related to the current project settings.
    But we would know some differences between them:
    http://stackoverflow.com/questions/11600162/difference-between-bin-debug-and-bin-release
    https://social.msdn.microsoft.com/Forums/en-US/0cde96e6-8dd8-4aa9-adcf-d7f45da13b66/debug-bin-release-folders?forum=vbide
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I make double clicking the space bar to make a period less sensitive

    Hi! When I double click the space bar, it makes a period, which I love. What drives me crazy is that it thinks I'm double clicking the space bar quite frequently, so it'll insert a period in the middle of the sentence. How can I make my space bar less sensitive? I know that I can turn off the period shortcut, but I would prefer to leave it on, just with a less sensitive keyboard setting. Help!

    It sounds like the space key is getting worn out. You may need to get the device exchanged under warranty if it's less than a year old.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • How can I change double-click timing?

    Is there a way to change the millisecond difference at which Swing intreprets 2 consecutive clicks as a double click event? If so, how?

    AFAIK, this is a function of the underlying OS, so would require the use of native code?

  • How can I make Firefox 4's "File Upload" window start in the same directory across all sites?

    I upload webcomic image files to multiple sites every day--the same file to multiple sites--through the "File Upload" window that comes up in Firefox when you click on a site's "Browse..." file request field.
    In Firefox 3 (under Windows XP), when I used Firefox's "File Upload" window to upload files, the "File Upload" window would come up showing the last directory from which I'd uploaded anything to ANY site.
    In Firefox 4, on the other hand, the "File Upload" window comes up showing the last directory from which I last uploaded to that specific domain.
    I'd like to know if there's an about:config setting--I couldn't find one when searching for "file," "upload," or "dir"--to revert to the Firefox 3 behavior. The reason is that now in Firefox 4, because I typically upload two files to four different web sites per day--one file to all four sites, then later in the day, a second file to all four sites--I have to switch from the first upload directory to the second upload directory in each of the four "File Upload" windows for the second file, whereas in Firefox 3 I only had to do that once. Here's how it used to go:
    In Firefox 3:
    # "File Upload" for file 1 at smbhax.com: have to browse to the local directory where the file is located, since it's a different location than file 2 from the previous day.
    # "File Upload" for file 1 at drunkduck.com: desired local directory is already selected.
    # "File Upload" for file 1 at smackjeeves.com: desired local directory is already selected.
    # "File Upload" for file 1 at comicfury.com: desired local directory is already selected.
    # "File Upload" for file 2 at smbhax.com: have to browse to the local directory where the file is located, since it's a different directory than file 1.
    # "File Upload" for file 2 at drunkduck.com: desired local directory is already selected.
    # "File Upload" for file 2 at smackjeeves.com: desired local directory is already selected.
    # "File Upload" for file 2 at comicfury.com: desired local directory is already selected.
    and here's how it goes under Firefox 4:
    # "File Upload" for file 1 at smbhax.com: have to browse to the local directory where the file is located, since it's a different location than file 2 from the previous day.
    # "File Upload" for file 1 at drunkduck.com: have to browse to the local directory where the file is located, since it's a different location than file 2 from the previous day.
    # "File Upload" for file 1 at smackjeeves.com: have to browse to the local directory where the file is located, since it's a different location than file 2 from the previous day.
    # "File Upload" for file 1 at comicfury.com: have to browse to the local directory where the file is located, since it's a different location than file 2 from the previous day.
    # "File Upload" for file 2 at smbhax.com: have to browse to the local directory where the file is located, since it's a different directory than file 1.
    # "File Upload" for file 2 at drunkduck.com: have to browse to the local directory where the file is located, since it's a different directory than file 1.
    # "File Upload" for file 2 at smackjeeves.com: have to browse to the local directory where the file is located, since it's a different directory than file 1.
    # "File Upload" for file 2 at comicfury.com: have to browse to the local directory where the file is located, since it's a different directory than file 1.
    So basically, where under Firefox 3 I only had to browse through my directories twice per day to upload two files to four sites, under Firefox 4, I have to browse through my directories eight times per day to accomplish the same thing.

    You can use the Remember Password bookmarklet: <br />
    https://www.squarefree.com/bookmarklets/forms.html#remember_password <br /> ''Has worked for me when I have needed it to save a password on a web site that used autocomplete=off.'' As far as the Bug that '''cor-el''' linked, I can't remember ever running across a website that did it like that.
    Or, you can use the Saved Password Editor extension, which includes a means of manually adding Username/Passwords to Firefox. <br />
    https://addons.mozilla.org/en-US/firefox/addon/60265

  • How can I create and export a file in 1024x768? Is the size supported in FCPX?

    I'm trying to create a video to export and upload on YouTube, and we want to do it at 1024x768. FCPX does not support this file size. Ideally how can I
    1) Create a canvas size in 1024x768 (or the same aspect ratio)
    2) Export my video at 1024x768 (here it has to be the exact dimensions).
    I feel so dippy, this seems like it should be obvious but I can't figure it out! Closest I've gotten is 2048x1556. Thanks for any help!

    The technique explained in the Creative Cow tutorial works perfectly. I use it all the time for the odd aspect ratios we work in for video walls. It does feel odd working in FCPX without creating a Project (Compound Clips are stored in Events) but hapily you have all the editing capabilities in a Compound Clip timeline as you do in a Project timeline.
    It would be nice if FCPX allowed us to enter custom sizes for Projects like one can in FCP7. But FCPX with this technique actually handles odd aspect ratios better than 7 did. I used to run color shifts and transition problems doing this in 7.
    I once called Apple tech support about the problems in 7 and they told me that although you can enter custom resoulutions in FCP7, Apple doesn't support anything other than standard resolutions. I guess they clarified that position with FCPX.
    Come on Apple (and YouTube and Vimeo.) Not everyone lives in a 16x9 world. My daughter, as do most teens, shoots all video at 9x16. Surely that resolution will soon have to be supported.

  • How can I convert an old Numbers file to be compatible with the new Numbers version, without having access to the old?

    I received a Numbers file created in iWorks version 8 or earlier, but only have the newest version of Numbers on my MacBook Air. I can't request the sender to reformat the file. Is there any way to convert the file so I can open it in the new Numbers version?

    Are you sure you don't still have Numbers from iWork '09 on your MacBook Air. My Mid 2012 does. To be certain you can look in the Applications folder to see if there is an iWork 09 folder. You can also use Spotlight search to see if it will find that Numbers as well as the current one.
    If you do find to 09 version: iWork '09 and iWork '08: File compatibility

  • How can i turn off encrypted backup file if i do have the passowrd?

    i have a problem with restoring the backup files on my iphone, it shows me an error message of corrupted process. Now i downloaded Dr.fone program in order to extract the backup files but it does not extract encrypted backup. So i need a method for turning off the encryption and please note that i do have the password for that encryption i just need a way to turn it off using the password.
    thanks

    after ive connected the phone to itunes and i click on restore backup a box pops u and says
    Find my iphone must be turned off before 'My Iphone' can be restored.
    Go to icloud settings on you iphone and turn off Find my Iphone before restoring your iphone.
    the first time this came up i went into icloud on my computer and removed the old phone from there but from what ive read it will only be properly removed when the fone gets turned back on.

  • How can i sync an ics calender file from a server with the apple calender

    Hey guys,
    I want to sync an ics calender file wich is stored on an network partition on a windows pc.
    The ics file is done with Lightning(an Addon for Thunderbird).
    Please help me i don't want to install thunderbird on my MacBook Air...
    With sync i mean that the calender file syncs every minute like a push service...
    Thanks!!!
    Sincerly
    Salvo

    This functionality is not yet built into LabVIEW.
    About all you can do is cut and paste the help for each control into the description for the control. It is tedius but a finite task.

  • Why can't I double click to open embedded images?

    I want to put this topic in the Features request, but I'm putting it here first to check that I've not made a silly mistake.
    I'm slowly getting the hang of Illustrator. But it often feels like I'm learning how to do things in a non-intuative way.
    Take Embedded images. Illustrator loves them. I guess its because it doesn't have a 'Collect for Output' feature - but don't get me started on that! Anyway, my point is when I receive a file with embedded images and I want to open those embedded images, my INTUITION tells me to simply double click the image and wait for it to open in Photoshop. After all, aren't Adobe always telling us that Illustrator and Photoshop are seamlessly integrated in ways Freehand can only dream of?
    So, I double click and nothing happens. I then double click the thumbnail picture in the Image box. Up comes a Link Information box. Lots of facts and figures except how to open it. Then I click on the blue underlined word saying 'Embedded'. More options here - but none of them any good because I haven't got the original on my system.
    To cut a long story short, I finally discover that by copying the embedded image, then opening Photoshop, then opening a new document, then pasting, then clicking the transform tick box, then flattening - I can get to see the embedded pic.
    No nifty link back though. If I want to update the image in Illustrator I have place it, scale it position it and delete the original. I tried Relink - but it pasted the new pic at 90 degrees to the original!
    So how about it? Double Click Embedded images to open in Photoshop? Change them and they automatically update in Illustrator? Am I asking too much? Am I missing the point?

    Not a feature. In fact, there's no way, using just Illustrator, to extract embedded images. But then, it's only at version THIRTEEN! I save a PDF using no downsampling or compression, then open in Photoshop. When you open a PDF in Photoshop you are given the option to rasterize any pages or extract images embedded in the PDF. Choose Images then select the images you want. Save as TIF or PSD and re-link in Illustrator.
    Yes, it is stupid.

Maybe you are looking for