Batch files and file name length

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

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

  caccy 20:41 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? Why upgrade to Windows 10? Is Windows 10 good? The pros and cons of!…

1995-2015: How technology has changed the world in 20 years

Illustrator Rachel Lillie discusses how she draws, and the beauty of quietness

macOS Sierra vs Windows 10 comparison: Apple and Microsoft's latest OS releases go head to head |…