Search found 51 matches

by born2achieve
20 Mar 2019 07:46
Forum: DOS Batch Forum
Topic: Files sync Help
Replies: 7
Views: 4586

Re: Files sync Help

Thank you for the reply and would you be able to modify my script and provide the clean script for my requirement.
by born2achieve
20 Mar 2019 06:34
Forum: DOS Batch Forum
Topic: Files sync Help
Replies: 7
Views: 4586

Re: Files sync Help

Thanks for the reply and in that case can i run the batch script on both the server. Server A: If new file or any file changed, take the file and look in server B. if not found add it else replace it. Server B If new file or any file changed, take the file and look in server A. if not found add it e...
by born2achieve
19 Mar 2019 19:04
Forum: DOS Batch Forum
Topic: Files sync Help
Replies: 7
Views: 4586

Files sync Help

Hello Friends, i need to sync a file b/w two folders in network path bi directionally. for example, if new file /modified file on server A automatically transferred to ServerB and vise versa. i tried to look the solution online and robo copy an be used for this. i tried. but i am not getting what i ...
by born2achieve
09 Dec 2016 12:09
Forum: DOS Batch Forum
Topic: Rename question
Replies: 3
Views: 996

Rename question

I have bat file and i need to rename files in the folder of one server from another server. Below the sample i tried and didn't work. Ren "\\178.70.140.230\Development\Company\*.txt" "*.bak" but it's not changing the extension Any suggestion please how to achieve this.
by born2achieve
20 Oct 2015 16:09
Forum: DOS Batch Forum
Topic: I want to use secure FTP in a script
Replies: 4
Views: 1208

Re: I want to use secure FTP in a script

Hi Squashman, thanks for your reply. Here is my try I tried to make below code with the file name as "connection.txt" # Automatically abort script on errors option batch abort # Disable overwrite confirmations that conflict with the previous option confirm off # Connect with username and p...
by born2achieve
19 Oct 2015 20:00
Forum: DOS Batch Forum
Topic: I want to use secure FTP in a script
Replies: 4
Views: 1208

I want to use secure FTP in a script

Hi, I have my vendor's ftp url over SSL. it's like m and i have username and password. So please help me on writing batch script t o downlod the file from my vendor repository. If this is not possible in dos script, please suggest me opensource tool. But i would love the solution in dos script as i ...
by born2achieve
07 Sep 2015 06:35
Forum: DOS Batch Forum
Topic: Using PowerShell to check if URLs are valid
Replies: 16
Views: 12278

Re: Using PowerShell to check if URLs are valid

Hi Meerkat,

thanks for the reply and it worked but this logic takes more time. assume i have 10000 urls in the text file. i tried with foxidrive's sample and it took about a minute to run completely. Is there any better way to speed up this
by born2achieve
07 Sep 2015 04:58
Forum: DOS Batch Forum
Topic: Using PowerShell to check if URLs are valid
Replies: 16
Views: 12278

Re: Using PowerShell to check if URLs are valid

One quick question,

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,
thnks
by born2achieve
06 Sep 2015 21:20
Forum: DOS Batch Forum
Topic: Using PowerShell to check if URLs are valid
Replies: 16
Views: 12278

Re: Using PowerShell to check if URLs are valid

Finally am able to achieve. instead of "-eq" i need to use "ne" which is not equal. Great and thanks everyone for the wonderful help.
by born2achieve
06 Sep 2015 21:10
Forum: DOS Batch Forum
Topic: Using PowerShell to check if URLs are valid
Replies: 16
Views: 12278

Re: Using PowerShell to check if URLs are valid

Hi Foxidrive,
thanks now it works. But i wanted to capture invalid urls. But the logic in the code has outputs the valid urls. I have 10*1000 urls in file and i just need to output the invalid url's only. Any suggestion please
by born2achieve
06 Sep 2015 20:40
Forum: DOS Batch Forum
Topic: Using PowerShell to check if URLs are valid
Replies: 16
Views: 12278

Re: Help Needed in PowerShell

thanks squashMan.

It would be great if we have any workaround this solve this.
by born2achieve
06 Sep 2015 20:22
Forum: DOS Batch Forum
Topic: Using PowerShell to check if URLs are valid
Replies: 16
Views: 12278

Re: Help Needed in PowerShell

Hi Meerkat, Thanks, I copied your code and made it as .bat file. I have the text file links.txt in the same directory where the .bat file exists. then i hit the the .bat file and nothing is happening. Am i missing anything here. I am having powershell version 1.0 and working in windows7 OS. Any help...
by born2achieve
06 Sep 2015 12:39
Forum: DOS Batch Forum
Topic: Using PowerShell to check if URLs are valid
Replies: 16
Views: 12278

Re: Help Needed in PowerShell

Hi Yury, thanks for the reply and this what i tried based on your input. I created .bat file and pasted the code as below @powershell "gc 'E:\CheckImageExits\mm.txt'|%%{if($(Try{(iwr $_).StatusCode}Catch{}) -eq 200){$_}}|sc 'True_URL.txt'" but nothing is happening. any suggestion please
by born2achieve
06 Sep 2015 11:23
Forum: DOS Batch Forum
Topic: Using PowerShell to check if URLs are valid
Replies: 16
Views: 12278

Re: Help Needed in PowerShell

apologize for the inconvenient guys. I thought if someone know about that would help me. not a problem. I am trying with different approach.

thanks
by born2achieve
05 Sep 2015 18:29
Forum: DOS Batch Forum
Topic: Using PowerShell to check if URLs are valid
Replies: 16
Views: 12278

Using PowerShell to check if URLs are valid

Hello Guys, I am trying to check the URL exists logic. I have text file contains 10000 url's and i wanted to check if some url broken because of no image exists on the directory. I tried with Wget and it took 3 hours to check it and response which url doesn't have image. I browsed through and found ...