Batch files and file name length

  caccy 15:48 07 Nov 2012
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 07 Nov 2012

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 07 Nov 2012
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 07 Nov 2012

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

  caccy 20:41 07 Nov 2012

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

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

Elsewhere on IDG sites

OnePlus 5 review

Alice Saey's mesmerising animation for Dutch singer Mark Lotterman

iPad Pro 10.5in (2017) review

Comment booster votre iPhone ?