Vb script Using Execute Resoure


#1

Greetings Professionals ,

I am trying to Install an agent where setup file is a VBscript . Im trying to run that file using execute resource but it fails,

Can any one please help me how to execute a VBscript file below is the recipe im trying to execute

execute ‘InstallService.vbs’ do
cwd 'C:\Program Files (x86)\machineagent-bundle-64bit-windows-4.4.0.498\InstallService.vbs’
command 'cscript /nologo InstallService.vbs’
end

Thanks
Prash


#2

what error you are getting?
your cwd argument should be the parent directory of the script, not the script path


#3

Hi Ranjib,
Please find the screenshot attached .

Thanks
Prashanth


#4

Ranjib,
this works thank you for your help…!