http://qs321.pair.com?node_id=367978


in reply to Re^5: A DWIM too far?
in thread A DWIM too far?

The /Y operator on windows forces it to overwrite without confirmation /-Y forces confirmation and there is no documented way to force failure when a file exists already.


___________
Eric Hodges

Replies are listed 'Best First'.
Re^7: A DWIM too far?
by QM (Parson) on Jun 18, 2004 at 18:48 UTC
    I thought I got it to work under XP. Here on Win2K, I agree with you.

    Ah well, I think it's just broken across the board.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of

Re^7: A DWIM too far?
by BrowserUk (Patriarch) on Jun 18, 2004 at 19:35 UTC

    Don't use either?

    P:\test\data>type hello.dat Hello world P:\test\data>type goodbye.dat Goodbye cruel world P:\test\data>rename hello.dat goodbye.dat A duplicate file name exists, or the file cannot be found. P:\test\data>type hello.dat Hello world

    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon