×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

dos question
3

dos question

dos question

(OP)
Hi all,
I'm creating a batch file to empty Temp and backup folders, as I've always done. When renaming the created batch to .bat, the .txt extension remains, not allowing the file to execute.  ex. filename.bat.txt?? Never seen this before. Any suggestions? Thanks

RE: dos question

Hotiron,

Are you working in WinXP? If so, files that used to be *.bat files must how be *.cmd


Regards,
Mike Tompkins

RE: dos question

(OP)
miket000. Thanks for the post.
Changing the extension to .cmd has no effect. Double clicking on the file or shortcut opens the file for edit. I believe the last place I was at was using XP as well. I used .bat extensions there with no problem(?)Also, when renaming .txt files to .bat(or .cmd) shouldnt i get a message asking if I relly want to do this?

RE: dos question

Tty opening Windows Explorer, then select Tools -> Options -> View and clear the checkbox labeled "Hide extensions for known file types".

Eric

RE: dos question

After doing what EEnd described, in NotePad you have to change the SaveAs Type to *.*

Then add the .bat extension with the filename.

Ken

RE: dos question

(OP)
Thanks for the help,
I forgot to unhide file extensions. Stars to all

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources