locked
Run a program on PC when device is cradled RRS feed

  • Question

  • I need to run a program on a win7 machine when the device is cradled.  My device is running windows mobile 6.1 and I have windows mobile device center installed on the PC. 

    I have tried setting the registry entry:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services\AutoStartOnConnect]

    Entry "MicrosoftActiveSync" to "c:\windows\system32\cmd.exe C:\temp\MyBatch.bat" but the batch file is never executed.

    Is there something I am missing or is there a different way to do this?


    • Edited by Todd Hinson Tuesday, April 24, 2012 2:11 PM
    Friday, April 20, 2012 9:16 PM

All replies

  • Check out this article.Hope this helps.
     
     
    Sunday, April 22, 2012 5:27 PM
  • Yes, this is one of the articles I found that lead me the registry entry

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services\AutoStartOnConnect]

    Do you know if this entry works for WIN7?

    Tuesday, April 24, 2012 2:13 PM
  • On Fri, 20 Apr 2012 21:16:57 +0000, Todd Hinson wrote:

    I need to run a program on a win7 machine when the device is cradled.  My device is running windows mobile 6.1 and I have windows mobile device center installed on the PC. 

    I have tried setting the registry entry:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services\AutoStartOnConnect]

    Entry "MicrosoftActiveSync" to "c:\windows\system32\cmd.exe C:\temp\MyBatch.bat" but the batch file is never executed.

    Have you tried using just the path for the BATch file (C:\temp\MyBatch.bat) as the value
    for the key? Have you tried adding quotation marks around the value?


    Is there something I am missing or is there a different way to do this?

    -----------------------------------------
    To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

    Robert E. Zaret
    PenFact, Inc.
    20 Park Plaza, Suite 400
    Boston, MA 02116
    www.penfact.com
    r_z_aret@pen_fact.com
    Useful reading (be sure to read its disclaimer first):
       http://catb.org/~esr/faqs/smart-questions.html

    Monday, April 30, 2012 5:29 PM