(An error occurred while sending the request.) In exception handing it gives following messageĮxception: One or more errors occurred. I tried to create logging and trace in WCF service but it is not creating any. We have observed that the service is not responding after few calls. We have developed WCF service and hosted as windows service. Need your advise as where i am going wrong and what can be done to stop the unwanted sub folders showing up. But i am not able to identify where to place the exit or stop the loop. I assume the issue is due to the "exit" not available after the first for loop. The system cannot find the path specified. (until here the code updates the string for the given path)īut the issue is, the code also checks for other sub-folders and adds the output as below: Sample output: C:\TEST-01\DEV\Market1\cfg\update1.iniĬ:\TEST-01\DEV\Market2\host_env_setup2.cmdĬ:\TEST-01\DEV\Market2\host_env_setup3.cmd ![]() The desired output is obtained through the above code.īut the problem is in addition to the given path, it is also checking for the other sub-folders that is not mentioned and going in loop. If defined line set "line=!line:%FIND_STR%=%REPL_STR%!" ![]() I have a requirement to check for a string and replace it with the different string using a batch script for the given path alone.įor /f "delims=" %%i in ('type "%%a" ^| find /v /n "" ^& break ^> "%%a"') do (
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |