View Single Post
Old Nov 11th, 2007, 11:24 AM   #8
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Re: RND batch file example

It turns out that command extensions are on by default, so the SHIFT with a parameter will definitely fail.

Explain what you're trying to accomplish, and what parameters you will be passing and what they're for.

Your original post asks for a random number and doesn't explain your goal. Your script seems to be wanting to use TIME for random generation. Given the output of TIME, it seems like a relatively poor choice for anything but the ugliest generation of a variable file name.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote