Search found 2 matches

by dupuis2387
27 May 2019 08:28
Forum: DOS Batch Forum
Topic: Need help with command line string replacement
Replies: 3
Views: 5623

Re: Need help with command line string replacement

@="cmd /c pushD \"C:\\Program Files (x86)\\Google\\Chrome\\Application\\\" & for /f \"tokens=1,2*delims=:.\" %%i in (\"%1\") do for /f \"tokens=1-3delims=?#\" %%a IN (\"%%i:// www.%%k\") DO (if \"%~x1\"==\".php\" (chrome.exe %%a#%%c?%%b) else (chrome.exe %1) )&popD " Thanks for that, pieh-ejdsch ! ...
by dupuis2387
25 May 2019 09:15
Forum: DOS Batch Forum
Topic: Need help with command line string replacement
Replies: 3
Views: 5623

Need help with command line string replacement

Hello, I'm a bit new to the batch/dos programming world and was wondering if there was a way to do string replacement, at a command prompt, as opposed to inside a batch file? A little background, a while ago I needed to register a custom URI protocol that would forward the invoked url, to chrome, vi...