Hi,
I've got an application which runs a .bat file using the OS-COMMAND statement, it's called a number of times within in the application.
The path was hardcoded previously, however due the number of times it's called and now that I want it to run a different .bat file depending on the value of another parameter. I thought it's best to add variable to the start of the path reducing the amount of times I need change the path going forward etc.
Example of current line of code which works, I've just replaced the .bat file with one of my own which goes to a website.
	
	
	
		
My attempted amendment that doesn't work.
	
	
	
		
Any suggestions please.
Thanks,
Hassam
				
			I've got an application which runs a .bat file using the OS-COMMAND statement, it's called a number of times within in the application.
The path was hardcoded previously, however due the number of times it's called and now that I want it to run a different .bat file depending on the value of another parameter. I thought it's best to add variable to the start of the path reducing the amount of times I need change the path going forward etc.
Example of current line of code which works, I've just replaced the .bat file with one of my own which goes to a website.
		Code:
	
	OS-COMMAND SILENT "C:\Temp\HT\Website.bat".My attempted amendment that doesn't work.
		Code:
	
	DEFINE VARIABLE cDir4Control AS CHARACTER NO-UNDO INITIAL "C:\Temp\".
OS-COMMAND SILENT cDir4Control + "HT\Website.bat".Any suggestions please.
Thanks,
Hassam
 
	