born2achieve
New member
- Local time
- 5:34 PM
- Messages
- 36
Hello Friends,
I am having bunch of url and trying to check whihc url has broken. Finlly endup with creating powershell command. below the code working fine.
But, Is there any way to print the running url? Right now i don't see what's happening on the screen. it's blank. But the process is running. I would like see which url is getting checked. Any suggestion please,
thanks
I am having bunch of url and trying to check whihc url has broken. Finlly endup with creating powershell command. below the code working fine.
Code:
@echo off
powershell -command "gc 'links.txt'|%%{if($(try{[int][Net.WebRequest]::Create($_).GetResponse().Statuscode}Catch{}) -eq 200){$_}}|sc 'True_URL.txt'"
pause
But, Is there any way to print the running url? Right now i don't see what's happening on the screen. it's blank. But the process is running. I would like see which url is getting checked. Any suggestion please,
thanks
My Computer
- Computer type
- PC/Desktop
- OS
- windows7 64 bit