Batch files

Apr 25, 2008 2 Replies

Anyone remember enough about batch files to know how to handle modern _long_ filenames?



I want to execute...



C:\\NewsProxy\\NewsProxy.exe



then execute...



C:\\Program Files\\Agent\\agent.exe



...Jim Thompson



-- | James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 | | | Voice:(480)460-2350 Fax:Available upon request | Brass Rat | | Web E-mail at

formatting link
| 1962 | America: Land of the Free, Because of the Brave


I think you just use put the file name in inverted commas, e.g:

"C:\\Program Files\\Agent\\agent.exe"

----------------------------------------------------------------------- To reply to me directly: Replace privacy.net with: totalise DOT co DOT uk and replace me with gareth.harris

Easy, assuming the names were not used before or similar names wre not used.. C:\\NewsPr~1\\NewsPr~1 ((note the .exe is not needed)) C:\\Progra~1\\Agent\\agent ((note the .exe is not needed)) Now, if ther were previous "duplicates" it may be ~2 or so. Use the DOS DIR command to determine that, or log to the directories by hand and execute something like DIR NEWSP*.* > DO_NEWS.BAT and then edit that batch file, and move it to where it is best useable. Ditto for Agent.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required