I have path in a variable from registry that looks like this :
SET dirpath="D:\Veritas\product\7.5.0.2\bin\DBBACKEX.EXE BACKUPDIR"
I need output only upto bin folder using windows batch command that should look this: D:\Veritas\product\7.5.0.2\bin
I used a simple VBScript within the batch command like in below code which did the job, but i need it using batch command only without the use of another file.
FOR /F "usebackq tokens=*" %%p in (`CSCRIPT //nologo regpath.vbs %dirPath%`) DO SET VPath=%%p
I don't see much string manipulation functions in batch commands, I want to remove the CSCRIPT line in above code and use only batch command. Can someone please help.