How can I write a batch file in dos using long filenames?

I need to write a batch file that changes directories and backs up files using long file names.  I have heard that using quotes works but I can't quite make it happen.

Please help
CatDivaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

callrsCommented:
See my final example here:
http://www.experts-exchange.com/Q_21979216.html     how to specify a path with spaces in a batch file

callrsCommented:
Try also the better xxcopy: www.xxcopy.com. E.g. to copy an entire drive or folder tree:

xxcopy c:\  d:\abackupfolder /clone

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tmateosian1Commented:
A little off topic, but if you want a very robust command line shell you can download and install Cygwin [http://www.cygwin.com].  Cygwin is a Linux-like environment for Windows.  You'll find that you can easily do so much more in terms of scripting (including handle long file names) than you ever can with a DOS batch file.  I know that wasn't your exact question, but I just thought you should know that you can get a lot of productivity out of a free and very easy to install program.  
kbens0nCommented:
For actual "long filename support" you should run NTFDOS:

http://www.sysinternals.com/Utilities/NtfsDos.html

If you run NTFSDOS under DOS 7.0, NTFS drives will support long filename calls even before Windows starts. To propagate this support into Windows 95, NTFSDOS automatically has Windows run the NTFSHLP.VXD VxD device driver. No changes to SYSTEM.INI or the registry are necessary for this to occur - NTFSDOS will detect when Windows 95 starts and load the driver without user-intervention. You need NTFSHLP.VXD only if you will be running NTFSDOS with Windows 95.
CatDivaAuthor Commented:
I am using windows xp.

Thanks for the xxcopy info - it's a great solution
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Miscellaneous

From novice to tech pro — start learning today.