Re: random filenames
- Posted by Jason Gade <jaygade at yahoo.com> Mar 19, 2007
- 505 views
Thanks, Christian. I'll check it out. I've seen the solution to this in *nix shell scripts -- basically the script grabs the PID (process ID) of it's own process and uses that (maybe with a random or iterative number added on). I don't know how easy it is to get the PID under Windows though. I found some tools online to do so but I didn't see if there was anything already "built-in" to Windows to do it (like with system()), without calling into the OS itself. -- "Any programming problem can be solved by adding a level of indirection." --anonymous "Any performance problem can be solved by removing a level of indirection." --M. Haertel "Premature optimization is the root of all evil in programming." --C.A.R. Hoare j.