3
I’m making a small bat to break a branch over an application I’m mounting, where it should run sql scripts within the Mysql database. The problem is that I have to edit this bat every time I insert a new script and it ends up getting boring...
Is there any way to make through the prompt I can pick up the name of all the files inside a folder and from this run a command at the prompt for each file?
Which command will you run at the prompt?
– rray
mysql -u root < %cd% scripts\ sql filename.
– LeandroLuk