Search found 10 matches
- 07 Jun 2018 19:34
- Forum: DOS Batch Forum
- Topic: remove quotes from url in .bat file
- Replies: 7
- Views: 5796
Re: remove quotes from url in .bat file
Thanks for your reply Sqashman. I too get the same. But this url comes from another application, so I refer to that url as echo "%AnalysisDeepLink%" >> E:\sample.out I could see the output in the sample.out as the url with double quotes So, when I try the other codes, I am expecting the the double q...
- 07 Jun 2018 10:25
- Forum: DOS Batch Forum
- Topic: remove quotes from url in .bat file
- Replies: 7
- Views: 5796
remove quotes from url in .bat file
Hi, I am trying to remove a double quotes from a URL but I am unable to remove it I tried the following code and more things but I am not able to remove the double quotes from the url. Could you please help me on how to remove the double quotes from url. Also the url is something like this and the s...
- 05 Jun 2018 01:57
- Forum: DOS Batch Forum
- Topic: Batch file could not be found
- Replies: 3
- Views: 4112
Re: Batch file could not be found
thanks for your inputs. I used the set variable for -w %PPI% to fix the the issue.
- 04 Jun 2018 09:14
- Forum: DOS Batch Forum
- Topic: Batch file could not be found
- Replies: 3
- Views: 4112
Batch file could not be found
Hi, I am trying to execute the below batch file but not sure why I keep getting the error " The batch file cannot be found ". @echo on &setlocal setlocal ENABLEDELAYEDEXPANSION SETLOCAL ENABLEEXTENSIONS set PPI="C:\PPI" %PPI%\ppi.exe -c %PPI%\vce.conf -e "Domain=sam;Severity=MAJOR;FreeText=https://g...
- 26 Mar 2018 03:25
- Forum: DOS Batch Forum
- Topic: How to pass a url to a batch script
- Replies: 1
- Views: 2391
How to pass a url to a batch script
Hi, I want to pass a url to a batch script for example:
echo TaskID : %TasklId%
If the task id contains a value of 24 I want to pass that task id value to the below url
http://<server>/tasks?action=get&json=false&crit=id=24
Thanks,
Dinesh
echo TaskID : %TasklId%
If the task id contains a value of 24 I want to pass that task id value to the below url
http://<server>/tasks?action=get&json=false&crit=id=24
Thanks,
Dinesh
- 08 Jan 2018 23:24
- Forum: DOS Batch Forum
- Topic: Get the output from a .csv file
- Replies: 10
- Views: 8330
Re: Get the output from a .csv file
From the below code, how to get the output of the 3rd delimiter "ANET/PROD/WEB - MINT, PINT, RINT FrontEnd/wl55sms12345/Microsoft Windows 2008" The 3rd output is the node name in the above case it is wl55sms12345 @echo on &setlocal pushd "C:\VISA\PPI" for %%a in ("E:\Evolven\Netcool\Reports\*.csv") ...
- 07 Jan 2018 21:32
- Forum: DOS Batch Forum
- Topic: Get the output from a .csv file
- Replies: 10
- Views: 8330
Re: Get the output from a .csv file
I have a output that comes as follows as well "Environment Path","Consistency","Impact","When","Flagged as Suspect","Operation","Path","Parameter","Source" "AND/PROD/SP - Echo Notify Details/ wl7301234 /Microsoft Windows 2012","Inconsistent","Non critical","September 07, 2017 00:44:06","false","Elem...
- 27 Nov 2017 09:20
- Forum: DOS Batch Forum
- Topic: Get the output from a .csv file
- Replies: 10
- Views: 8330
Re: Get the output from a .csv file
Thank you Steffan it works perfect. But, I have one more question when I tried to execute the following it throws an error @echo on &setlocal for %%a in ("E:\Evolven\Netcool\Reports\*.csv") do ( for /f usebackq^ skip^=1^ tokens^=1^,3^,5^,7^,9^,11^,13^,15^,17^ delims^=^" %%A in ("%%~fa") do ( echo %%...
- 26 Nov 2017 23:41
- Forum: DOS Batch Forum
- Topic: Get the output from a .csv file
- Replies: 10
- Views: 8330
Re: Get the output from a .csv file
Let me explain. 1. The .bat file should parse the .csv file setlocal EnableDelayedExpansion FOR /D %%a in ("E:\Evolven\Netcool\Reports\*.csv" ) do ( echo full folder path: %%a echo Folder name: %%~nxa ppi.exe -c ppi4vce.conf -e "Domain=%Environment Name%;OriginSeverity=MAJOR;FreeText=%Operation% %Pa...
- 26 Nov 2017 09:20
- Forum: DOS Batch Forum
- Topic: Get the output from a .csv file
- Replies: 10
- Views: 8330
Get the output from a .csv file
Hi Friends, I have a requirement: 1. I need to read a .csv file. 2. The .csv file gets generated whenever there is a change in a particular file (its kind of monitoring) 3. When the .csv file gets generated, I need to read the .csv file and the contents of the .csv file is as shown below "Environmen...