PK2CMD.EXE

Author
C_IRQ
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2009/06/04 06:53:18
  • Location: 0
  • Status: offline
2009/06/08 08:21:35 (permalink)
0

PK2CMD.EXE

Hi,

I wonder where to find a version of PK2CMD.EXE that doesn't requires the (IMO bloated) .NET Framework to be installed?

I tried both version PK2CMD 1.12 and the latest PK2CMD 1.20 on Win XP Pro SP2 (32-bit) and both gives the following error.

D:\>pk2cmd
The system cannot execute the specified program.

To verify I tested on another test machine (also Win XP Pro SP2) that had .NET installed and it worked OK.

Thanks for any help,

/C_IRQ
post edited by C_IRQ - 2009/06/08 08:41:12
#1

14 Replies Related Threads

    FunnyNYPD
    Super Member
    • Total Posts : 1553
    • Reward points : 0
    • Joined: 2007/09/28 20:06:59
    • Location: USA & Canada
    • Status: offline
    RE: PK2CMD.EXE 2009/06/08 08:27:42 (permalink)
    0
    PK2CMD is running like some DOS environment. You can use delphi call this program just like you did on DOS time. Not sure it will require a .Net installed.
    #2
    C_IRQ
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2009/06/04 06:53:18
    • Location: 0
    • Status: offline
    RE: PK2CMD.EXE 2009/06/08 08:33:39 (permalink)
    0
    Hi FunnyNYPD,

    ORIGINAL: FunnyNYPD
    Not sure it will require a .Net installed.


    It does even if the README.TXT (see below) states otherwise?


    ----------------------------------------------------------------------------
    7. Installation
    ----------------------------------------------------------------------------
    No installation process is required.  Note that the device file
    "PK2DeviceFile.dat" should be kept in the same directory as the executable.
    See Important Notes above for information on ensuring the executable can
    find the device file.

    The Microsoft .NET Framework is NOT required for PK2CMD.


    I doesn't work without having the (IMO bloated) .NET Framework installed and thats why I'm asking. Maybe PK2CMD 1.12/1.20 was just mistakenly compiled with dependency to the .NET Framework enabled?

    /C_IRQ
     
    post edited by C_IRQ - 2009/06/08 08:38:40
    #3
    FunnyNYPD
    Super Member
    • Total Posts : 1553
    • Reward points : 0
    • Joined: 2007/09/28 20:06:59
    • Location: USA & Canada
    • Status: offline
    RE: PK2CMD.EXE 2009/06/08 08:53:58 (permalink)
    0
    If I remembered right, the CMD is writing in (Visual) C++ instead of Visual C#. It shouldn't count on the .Net to run, that's why people who is using Linux can also run CMD just like Windows users.

    I am not a heavy CMD user, I knew some of our BB0703 clients are using the CMD under windows with some in-house developed program (e.g. delphi, etc.).

    The CMD runs fine on all my desktops and laptops. Since all of my machines have V2.61 installed, they all have .Net. So I won't be able to tell if .Net is absoluted needed. I run the CMD under DOS style window all the time, not sure the .Net will be called from those DOS style windows.
    #4
    C_IRQ
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2009/06/04 06:53:18
    • Location: 0
    • Status: offline
    RE: PK2CMD.EXE 2009/06/08 09:12:33 (permalink)
    0
    Thanks for the input FunnyNYPD!
     
    Here I can only get it to work if .NET is installed otherwise I recieve the following... 
     

    D:\>pk2cmd
    The system cannot execute the specified program.

     
    Maybe it depends on one DLL that are included in the .NET Framework and not available in Win XP Pro SP2?
     
    Hopefully someone knows the answer and reply...
     
    /C_IRQ
     
     
    #5
    TCM
    Super Member
    • Total Posts : 502
    • Reward points : 0
    • Joined: 2005/06/26 02:01:25
    • Status: offline
    RE: PK2CMD.EXE 2009/06/08 11:04:12 (permalink)
    0
    I don't think it's about .NET components but rather about MFC8. All default WinXp systems have MFC7.1 . PK2CMD is compiled using VS2005 and the binary execs require MFC8 DLLs.
    I suggest using a free tool named Dependency Walker ( free on the net). Load the .exe with this tool and it will show you which files are required to run the PK2CMD. If one file is not found it's marked with a question mark.

    Once i had a spectrum computer , today i am throwing away my pentium PC , tomorow i will write to you from a Microchip internet-enabled device.
    #6
    Ninestone
    Super Member
    • Total Posts : 456
    • Reward points : 0
    • Joined: 2008/02/17 13:41:32
    • Location: 0
    • Status: offline
    RE: PK2CMD.EXE 2009/06/08 11:49:08 (permalink)
    0
    PK2CMD does NOT require .NET - This is why it can be compiled for Windows, Linux, and Mac OS X!

    I think the fact that it worked on another machine is irrelevant to whether .NET was installed or not - that was just a co-incidence. There is something else wrong with the machine it is not working on.
    #7
    TCM
    Super Member
    • Total Posts : 502
    • Reward points : 0
    • Joined: 2005/06/26 02:01:25
    • Status: offline
    RE: PK2CMD.EXE 2009/06/09 08:30:57 (permalink)
    0


    You are missing MSVCR80.DLL. This is typically found in .NET upgraded systems.

    PK2CMD requires the following files:

    1. HID.DLL
    2. SETUPAPI.DLL
    3. KERNEL32.DLL
    4. MSVCR80.DLL

    Once i had a spectrum computer , today i am throwing away my pentium PC , tomorow i will write to you from a Microchip internet-enabled device.
    #8
    C_IRQ
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2009/06/04 06:53:18
    • Location: 0
    • Status: offline
    RE: PK2CMD.EXE 2009/06/10 07:12:02 (permalink)
    0
    ORIGINAL: TCM

    You are missing MSVCR80.DLL. This is typically found in .NET upgraded systems.


     
    Bingo!
     
    That's the culpritt. To work you actually also need to have the following
    file in the system path Microsoft.VC80.CRT.manifest (or at least I do).
     
    Thanks for the help guys, now I saved 100+ MB of .NET bloat on my SSD drive!
     
    /C_IRQ
     
     
    #9
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: PK2CMD.EXE 2009/06/10 07:30:00 (permalink)
    0
    ORIGINAL: TCM
    You are missing MSVCR80.DLL. This is typically found in .NET upgraded systems.


    Not really. It is part of the Microsoft Visual C++ 2005 Redistributable Package.
    http://www.microsoft.com/downloads/details.aspx?familyid=32bc1bee-a3f9-4c13-9c99-220b62a191ee&displaylang=en

      USB_Links and libusb
    #10
    FunnyNYPD
    Super Member
    • Total Posts : 1553
    • Reward points : 0
    • Joined: 2007/09/28 20:06:59
    • Location: USA & Canada
    • Status: offline
    RE: PK2CMD.EXE 2009/06/10 07:46:38 (permalink)
    0
    I am curious how guys on Linux handle this issue?
    #11
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: PK2CMD.EXE 2009/06/10 07:49:01 (permalink)
    0
    You compile pk2cmd under Linux with gcc and it links against the libusb library file (typically dynamically linked) and glibc.

      USB_Links and libusb
    #12
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: PK2CMD.EXE 2009/06/10 07:58:42 (permalink)
    0
    mcuee@ubuntu904:~/bin$ objdump -x pk2cmd | grep NEEDED
    NEEDED libusb-0.1.so.4 (libusb dynamic library)
    NEEDED libstdc++.so.6
    NEEDED libm.so.6
    NEEDED libgcc_s.so.1
    NEEDED libc.so.6

      USB_Links and libusb
    #13
    TCM
    Super Member
    • Total Posts : 502
    • Reward points : 0
    • Joined: 2005/06/26 02:01:25
    • Status: offline
    RE: PK2CMD.EXE 2009/06/10 10:50:07 (permalink)
    0
    ORIGINAL: xiaofan

    ORIGINAL: TCM
    You are missing MSVCR80.DLL. This is typically found in .NET upgraded systems.


    Not really. It is part of the Microsoft Visual C++ 2005 Redistributable Package.
    http://www.microsoft.com/downloads/details.aspx?familyid=32bc1bee-a3f9-4c13-9c99-220b62a191ee&displaylang=en


    YES. But VC++ 2005 also installs .NET. That's why he thought the problem was .NET.

    Once i had a spectrum computer , today i am throwing away my pentium PC , tomorow i will write to you from a Microchip internet-enabled device.
    #14
    FunnyNYPD
    Super Member
    • Total Posts : 1553
    • Reward points : 0
    • Joined: 2007/09/28 20:06:59
    • Location: USA & Canada
    • Status: offline
    RE: PK2CMD.EXE 2009/06/10 13:41:51 (permalink)
    0
    The .Net is really powerful for C# software development.
    But .Net based program is not as stable as transitional C++ based programs. We have VC++ based program can run well months on desktop without a single crashing. The PICKit 2 application program occasionally crashed for no reason from time to time on the same machine. Normally a re-boot of the PC will fix it.
    #15
    Jump to:
    © 2017 APG vNext Commercial Version 4.5