Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Help with loop
Name: JackInDaBox Date: May 16, 2007 at 07:59:36 Pacific OS: XP Pro CPU/Ram: FX 64 \ 2GB RAM Product: Home made
Comment:
Hello, I am trying to run all SQL scripts (with no params) in the same folder as the batch file is. I have not done much with batch files before but I think I have gotten close. It seems to work if I hard code the FILENAME.sql but will of course only work for the file I hard coded. What I need is to get the present file name from the loop and put it in to the FILENAME.sql so it will run that sql script. Hope this makes some sense. Here is what I have so far:
@echo off
SET ServerName= SET /P ServerName= Please enter the Server Name: SET DatabaseName= SET /P DatabaseName=Please Enter Database Name:
for /f %%a in ('dir /b *.sql') do call :process goto :eof
Summary: Hi, I was wandering if anybody here could help me out with a programming assigment i have to do. I'm not asking for the total solution, I really want to learn this stuff, but i need some help with ...
Summary: having a little trouble with my code this is for a class so maybe more suggestion help then direct unless its a small mistake thank you! im making a loop to generate a random number between 2-128 then...
Summary: My program will not output the second part : where it has to add the even numbers and show the sum. I did not code the third part with letters yet... Please help with this... //***********************...