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
How to pass a url to a batch script
Moderator: DosItHelp
Re: How to pass a url to a batch script
Your discription of your issue is very short, so i'm unsure what you want to do.
Could it be that you are you looking for something like that:
penpen
Could it be that you are you looking for something like that:
Code: Select all
@echo off
setlocal enableExtensions enableDelayedExpansion
set "TasklId=24"
echo TaskID : %TasklId%
set "url=http://<server>/tasks?action=get&json=false&crit=id=%TasklId%"
set url
goto :eof