User User name Password  
   
Friday 15.11.2024 / 03:37
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > software, operating systems and more > windows - software discussion > batch run all files of one filetype.
Show topics
 
Forums
Forums
Batch run all files of one filetype.
  Jump to:
 
Posted Message
YoMaMMa18
Newbie
_
16. May 2009 @ 18:29 _ Link to this message    Send private message to this user   
I have a batch file that is creating files using redirect output:
ex.
ECHO shutdown -a > shutdownabort.bat
however i need tons of then, and all seperatly named, so i have
ECHO shutdown -a > shutdownabort%RANDOM%.bat
is there a way to run all files in the current directory with a certain extension?
ex. running all .bat or .vbs files in a folder with a command.
YoMaMMa18
Newbie
_
20. May 2009 @ 23:33 _ Link to this message    Send private message to this user   
Problem Solved:
FOR %%a (*.bat) DO start %%a
Will start all bat files in current directory.
Unless i wrote the code wrong. Did it was from memory.
afterdawn.com > forums > software, operating systems and more > windows - software discussion > batch run all files of one filetype.
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2024 by AfterDawn Ltd.

  IDG TechNetwork