Batch files and file name length

  caccy 15:48 PM 07 Nov 12
Locked
Answered

When writing a batch file in Win 7 64bit am I limited to the good old DOS 8 character file names or can I use longer names. Haven't written a batch file since the seventies so I'm hoping that I can. If not what is the best way to overcome this. Any help appreciated. Thanks .

  woodchip 16:07 PM 07 Nov 12

In all windows you should be able to use long file names, unless it is going to run in old dos mode. There is no DOS in Windows since XP came into being, it was left behind, old Windows ran on top of DOS, it was two Operating Systems running side by side

  Batch 16:47 PM 07 Nov 12
Answer

I'm using XP and both styles of accessing long filenames works in batch files / CMD prompt.E.g.

testfilename.doc

and

testfi~1.doc

  caccy 20:40 PM 07 Nov 12

Thanks for your answers. Will try to get the grey cells working again.

  caccy 20:41 PM 07 Nov 12

Thanks for your answers. Will try to get the grey cells working again.

Advertisement

This thread is now locked and can not be replied to.

OnePlus 2 UK release date, price, specification rumours: We're just hours away from the OnePlus 2 l2…

Why Vodafone’s frequency choice should interest you: The benefits of 800MHz

Motoman robots: from killing The Terminator to samurai swordmanship

Why Apple's being criticised for everything, even the good things