| 1. |
Solve : URI using registry keys? |
|
Answer» Hello I already have a batch file which does this, however i was looking to see if it was possible to do it without the batch file. YES ... however with so many CHOICES of how to do this without batch, we would need to know what language / format = ( Scripted ... compiled on the fly like a Perl Interpreter for a .PL file or Compiled from .CPP to .EXE like with C++ ) you want it in. Curious as to why your looking for an alternate scripted or compiled solution since batch works fine for you and you already have a batch solution that matches everything you need it to do? Batch is probably the most compatible with systems if sharing with others, as for when you start programming it into a language you then have to worry about dependencies. Additionally the batch file to do this is quite small compared to the many lines of code to pull off the same process in say C++ where you have to have file open and file close declarations etc. My first choice for a problem like this if I didnt have the batch solution already available to me would be to CREATE it in batch. Not unless it was for a school project or a program that I plan to SHARE with others and slap my name on it would I go into anything more professional looking in say C++ etc.Unfortunately the Registry key parameter format is rather inflexible- I don't believe it is even capable of performing the string manipulations of batch to strip out portions of the string. I'm not 100% sure if it doesn't support that- if it does, you ought to be able to use %1:~5,0% |
|