I did a bunch of searches for this, but it seems like like nobody has really thought of putting these two together. I've been doing some scouring on the Internet and ran into the wonderful code on dostips to help me with some of the conversions details. So has no one really tried doing this before?
I found a really quick and dirty way to trim spaces from a for variable by using %~nF. Even though ~n is reserved for filenames, it does a great job of stripping out white space. This one-liner will take care of both left and right trimming of spaces: ----------begin screen capture--------- C:\CMD>...
I hate to bump such an old thread, but I have to add some experience that I used in the late 1990s for mass converting mp3s. What I had created was a n-scalable batch file for mass parallel encoding files. So you have a source batch file on a file server with your files to be encoded. This batch fil...
OK, I simplified my bat script to only map drive "S" instead of the rest of the actions. You see below how I map the drive...It states that it's already in use, even though it doesn't appear it's being used anywhere. C:\Users\fred\Downloads\BAT-Files>NET USE S: \\SERVER\netty\star /persis...
I found a really quick and dirty way to trim spaces from a for variable by using %~nF. Even though ~n is reserved for filenames, it does a great job of stripping out white space.
The only way I could think of doing that is if you could somehow run a second instance of the browser. I don't know, but there may be a way to feed an html file to start with the target parameter in there. Try that and see what happens.
grep and awk are both unix commands so they don't work in dos. Now, I know there are "unix-for-dos" libraries out there that will add these features to dos. Then you can just use your script as is.