Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^3: Strange "There is not enough space on the disk" error (Win32)

by bmann (Priest)
on Mar 29, 2005 at 18:00 UTC ( #443214=note: print w/replies, xml ) Need Help??

in reply to Re^2: Strange "There is not enough space on the disk" error (Win32)
in thread Strange "There is not enough space on the disk" error (Win32)

Do you have any info on the nature of cmd.exe's issues?
I wish I did. Here's what perldoc pl2bat has to say about it:
---8<--- 4 C:> ftype Perl=perl.exe "%1" %* C:> assoc .pl=Perl then C:> [args] 5 C:> ftype Perl=perl.exe "%1" %* C:> assoc .pl=Perl C:> set PathExt=%PathExt%;.PL then C:> script [args] ---8<--- 4 and 5 work on some Win32 operating systems with some command shells. One major disadvantage with both is that you can't use them in pipelin +es nor with file redirection. For example, none of the following will wor +k properly if you used method 4 or 5: C:> <infile C:> >outfile C:> echo y | C:> | more This is due to a Win32 bug which Perl has no control over. This bug is the major motivation for pl2bat [which was originally written for DOS] being used on Win32 systems.
To paraphrase, it doesn't work because it doesn't work. ;)

All I can see (from this and some searching of MSDN) is that redirection and pipes break when you use ftype and assoc to run a script. I have never seen a why. It's useful information, just not very informative.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://443214]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2022-05-28 17:58 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (100 votes). Check out past polls.