-
Notifications
You must be signed in to change notification settings - Fork 883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run JsonExtractor Without any other file #36
Comments
What i want to do |
You mean by passing the string directly or as part of a bat file? |
i mean, being able to merge the json exectutor with my main batch script by calling it as a function example: @echo off
REM calling the function to parse the json value
call :JsonExtractor file.js "name"
pause >nul
exit /b
:JsonExtractor
REM The hybrid batch "Json Executor" function here.
REM Basically being able to call a label instead of calling a file
goto :EOF
|
try like this:
|
I mean |
Because of the way the hack works - the jscript code allays should be at the end. Think for the |
i mean |
Help? |
Additionally to already answered. Long reading: https://www.dostips.com/forum/viewtopic.php?f=3&t=5543 JScript example: @set @dummy=0 /*
@echo off
rem Your batch script is here...
cscript /nologo /e:jscript "%~f0" %*
exit /b
*/
// JScript code
WScript.Echo(123) Or 0</* :
@echo off
rem Your batch script is here...
cscript /nologo /e:jscript "%~f0" %*
exit /b
*/
// JScript code
WScript.Echo(123) VBScript example: ::'�@echo off
::'�rem You batch script is here...
::'�cscript /nologo /e:vbscript "%~f0" %*
::'�exit /b
' VBScript code
WScript.Echo 123 The |
No description provided.
The text was updated successfully, but these errors were encountered: