MOQINFRA
asked on
VB Script
I wanted to open write a wrapper (VBS)
When i define Application as this in the first line
objAppName = """mmc %SystemRoot%\system32\dsa. msc"""
It works fine for me.
However i need to open another msc (mmc console application) which is located in E: and has spaces in the path
objAppName = """mmc E:\Program Files (x86)\Microsoft Configuration Manager Console\AdminUI\bin\adminc onsole.msc """
This doenst Work
Is there anyway i can make it work
I tried adding " at various places but i am not able to make it work as it doesnt recognize the path correctly i believe the space between Program and Files is causing issue
When i define Application as this in the first line
objAppName = """mmc %SystemRoot%\system32\dsa.
It works fine for me.
However i need to open another msc (mmc console application) which is located in E: and has spaces in the path
objAppName = """mmc E:\Program Files (x86)\Microsoft Configuration Manager Console\AdminUI\bin\adminc
This doenst Work
Is there anyway i can make it work
I tried adding " at various places but i am not able to make it work as it doesnt recognize the path correctly i believe the space between Program and Files is causing issue
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Are you able to run mmc "E:\Program Files (x86)\Microsoft Configuration Manager Console\AdminUI\bin\adminc onsole.msc " from a command promt?
ASKER
Ok I figured out the best way to do it
When i used objAppName = """mmc \""E:\Program Files (x86)\Microsoft Configuration Manager Console\AdminUI\bin\adminc onsole.msc \"""""
My script worked after that.
thanks for all your help.
When i used objAppName = """mmc \""E:\Program Files (x86)\Microsoft Configuration Manager Console\AdminUI\bin\adminc
My script worked after that.
thanks for all your help.
ASKER