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
Contact Forum Editor

Send an email to our Forum Editor:


PLEASE NOTE: Your name is used only to let the Forum Editor know who sent the message. Both your name and email address will not be used for any other purpose.

Tech Helproom


It's free to register, to post a question or to start / join a discussion


 

Batch files and file name length


caccy
Resolved

Likes # 0

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 .

Like this post
woodchip

Likes # 0

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

Like this post
Batch

Likes # 0

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

Like this post  
caccy

Likes # 0

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

Like this post
caccy

Likes # 0

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

Like this post

Reply to this topic

This thread has been locked.



IDG UK Sites

Best Christmas 2014 UK tech deals, Boxing Day 2014 UK tech deals & January sales 2015 UK tech...

IDG UK Sites

Chromebooks: ready for the prime time (but not for everybody)

IDG UK Sites

Hands-on with Sony's latest smartglasses

IDG UK Sites

The 13 most inspirational Tim Cook quotes