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.
Batch programming for loop help
Name: Sushmitha Date: March 5, 2009 at 15:22:57 Pacific OS: Windows XP Subcategory: Batch
Comment:
I have DE, TX, NC folders in C:\Program Files\RMS\RiskLink\Data\USData\Flood\HiresTest
SET SOURCEFLOODPATH=C:\Program Files\RMS\RiskLink\Data\USData\Flood\HiresTest FOR /D %%a in ("%SOURCEFLOODPATH%\*.*") DO ( SET FOLDERNAME=%%a SET FOLDERNAME
SET TMPSTATE=%FOLDERNAME:~-2% SET TMPSTATE )
using the the above code i have expected the TMPSTATE to be DE, TX and NC. But it is always showing ~-2. Please help me to get the expected result
Summary: I'm probabbly one of the least skilled people at writing batch files but I have been practicing making a maintenance batch file for our XP machines at work (all 495 of them) in which I don't have the ...
Summary: Line 13 is actuall on one line so shouldn't need the ()s. I tried them and they don't help, neither does putting a CALL in front of !THECALL! (I know, I know, bad var name). !THECALL! gets set to %0 a...
Summary: Hi, I need to run a particular se of commands repetatively for some number of times provided by userin for loop. I am doing it this way user input the no of arguments and arguments i.e 3 d:\\input.txt...