Thread: Open windows file

  1. #1
    Registered User
    Join Date
    Sep 2006

    Open windows file

    Here's a problem that has me vexed. I have a xdp file which, when clicked in Windows Explorer opens Acrobat reader automatically and then loads the xml data in the XDP file filling an Acrobat form for me. I tried using exec to load acrord32.exe with the xdp file as a command-line input (which works if I do it manually in the command-line), but when I call it with an exec, it fails (no response of any kind).

    Even worse, it works on some machines and not others. Since directly calling the executable doesn't work and requires that I have the path for acrord32.exe on each machine anyway, is there a way to launch the XDP file itself to simulate clicking it?

    If that makes sense and you have some idea, please let me know

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Visalia, CA, USA
    ShellExecute(). And perhaps this could be moved to the windows forum, Salem (or whoever else holds that particular power).

  3. #3
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    RING 0
    CreateProcess() should work too as it accepts command line arguments.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 12:44 PM
  3. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM

Tags for this Thread