Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file with filename of 12 char instead of only 8 ?

Status
Not open for further replies.

cgkeller

Programmer
Apr 12, 2000
200
CA
In the good old DOS days, I used a very good program called "Brief" with which I was able able to create batch files, but the filename was limited to 8 char, like
586-AMD5.bat.

Does a similar program exist which would allow me to make batch files with filenames of 12 char in lenght or longer?

Your input would be very much appreciated.

Charles.


 
I'm not sure I understand..

For real DOS, filenames can only be 8 characters in length, no more. That's an OS limitation that cannot be circumvented.

For Windows command prompts (from win98 to Vista) you can have longer filenames by just saving therm with longer filenames, and address them with the "~X" notation.
Where X is a number.

That is: Suppose your filename is twelvecharac.bat

You would access the bat file like:

twelve~1.bat

That's the default collapse of filenames to the 8.3 standard. the "~1" part is to discriminate amongst files that start with the same first 6 characters.

Like filenamehis.bat and filenamemine.bat

would be filena~1.bat and filena~2.bat.






----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Wow... "Brief"... haven't thought of that program in ages :) very powerful, if you could memorize the dozens of keystroke combinations needed to do anything!

If I'm understanding your question correctly, to make a batch file, just use Notepad.
 
Thank you Vacunita, Linney and Guitarzan,

Your inputs were very valuable to me. I liked the abbreviation suggested by Vacunita "twelve~1.bat", I did
not know that. The articles suggested by Linney (Batches by Fred Langa were good, so is Autoit. I noticed that Notepad suggested by Guitarzan works well for simple batch files. You solved my problems.
Charles.
 
Brief sure brings back memories. Found this ShareWare that may also work for you.

HTH RuralGuy (RG for short) acXP winXP Pro
Please respond to this forum so all may benefit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top