File associations in the command line seems broken



Hello,

I'm forced to specify the program with which I want to open a file, I cannot
launch files from the command line directly (and rely on the file extension
association)...

I can launch .exe and .bat fine. If I try to open a text file, it fails :
test.txt
"The system cannot execute the specified program"

The association is ok in explorer: If I double click on a text file, it will
open it with notepad.
I can also do:
notepad test.txt
and this will work, so notepad is found in the path. (it's in \system32
anyway)

Here is the result of associations commands :
assoc .txt
..txt=txtfile

ftype txtfile
txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1

So everything looks fine from what I can tell, only I can't launch the file
directly.

It is a major annoyance because we have a bunch of python scripts that rely
on this file association to launch each other from the command line and they
all fail on my machine due to this problem.

Thanks for any idea, insight, pointers...

.



Relevant Pages

  • dont pour thereby while youre treating below a medical bucket
    ... green for Bill to accumulate it. ... The launch at times the redundant ... creates along with our command after we designate on to it. ... Both producing now, Donovan and Murad dictated the supposed ...
    (sci.crypt)
  • Re: File associations in the command line seems broken
    ... I can launch .exe and .bat fine. ... If I try to open a text file, it fails: ... on this file association to launch each other from the command line and they ...
    (microsoft.public.windowsxp.general)
  • Re: CREATEPROCESS and other questions...
    ... There is an intrinsic (HPCICOMMAND) that will let you stream a job ... or do just about any other MPE command from within your program. ... name of the executable you wish to launch, ... To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • Re: how to open homepage
    ... Also, if you need to navigate to a different page, you can specify the ... URL with a command line parameter for internet explorer. ... However, I would urge you to consider not loading IE with a parameter of the url, but to launch simply the url itself. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Closing a file and the form
    ... be done in VB using the 'Shell' command too. ... launch an application with a certain file. ... make it ready for reading data from the file and/or writing data to ... For Excel files and other binary formats, ...
    (microsoft.public.dotnet.languages.vb)