View Single Post
  #7  
Old 12th July 2017, 19:38
rahul ingale rahul ingale is offline
Member
 
Join Date: May 2011
Location: Hyderabad
Posts: 33
rahul ingale is on a distinguished road
Baan: baan infor - DB: sql - OS: windows xp
@lebowski
@echo without space parameter %~1
pause
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).
__________________
IRL
Reply With Quote