View Single Post
Old 12th July 2017, 19:38
rahul ingale rahul ingale is offline
Join Date: May 2011
Location: Mumbai
Posts: 57
rahul ingale is on a distinguished road
Baan: baan infor - DB: sql - OS: windows xp
@echo without space parameter %~1
put above line in test file batch.

call this file as wherever the path like
f:\test\test.bat "test job" this will give output as
without space parameter test job

replace %1 to %~1 in batch file where it is used.

the tilde sign after percentange.
this will remove quotes from parameter.

call every job like startjob.bat "test job".

cons:-make sure you call job with quotes (space or without space job name).
Reply With Quote