You need to include PA as part of your parameters string "S:\\24x7_scripts\\utils\\BindCPUw.exe 4 S:\\systems\\linc\\abadb\\SMPLRPT2.EXE \"PA 00ABA_SPECREQ Y\"" BindCPU recognizes 3 parameters as described in program help screen First parameter is used to specify the CPU binding. Second parameter is used to specify the program to start. Third parameter is to pass all other parameters to the program specified in the second parameter. From BindCPU point of view all your program parameters are considered as a single string (and as a single parameter to BindCPU). If you have multiple parameters separated by spaces you need to enclose the entire thing in double-quotes then Windows will treat it as a single string which in the end will be passed to command line of your program. RunAndWait "S:\\24x7_scripts\\utils\\BindCPUw.exe 4 SMPLRPT2.EXE PA 00ABA_SPECREQ Y", "S:\\systems\\linc\\abadb", 0, Run_return_value : From the script I would build the line into a string : variable like this: Set Run_command : "S:\\24x7_scripts\\utils\\BindCPUw.exe 4 : S:\\systems\\linc\\abadb\\SMPLRPT2.EXE PA 00ABA_SPECREQ Y" : But because I need the exact number of spaces in the : parameter following the 00ABA_SPECREQ, I tried this : (putting the parameter inside double quotes): Set Run_command : "S:\\24x7_scripts\\utils\\BindCPUw.exe 4 : S:\\systems\\linc\\abadb\\SMPLRPT2.EXE PA ""00ABA_SPECREQ : Y""" : That didn't work either. : I run this command through the RunandWait command: RunandWait Run_command, : Start_dir, 0, Run_return_value : What do I need to do to get the BindCPUw to run my : Linc report using the parameter given and keeping the : spaces (the Y must to appear in the 21st position : of the parameter)?
|