Batch files and file name length

  caccy 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 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 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 07 Nov 12

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

  caccy 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.

Should I upgrade to Windows 10? 8 reasons why you should upgrade to Windows 10... and 2 why you…

We are being sold the ability to spend money we don't have. And we love it

IKinema aims to banish droopy shoulders and wonky spines in animated CG characters

How to use Apple Music in the UK: Complete guide to Apple Music's features

We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message