Need a little help getting a file.cmd to work

(imported topic written by chrism91)

So i’m trying to do the upgrade for netbackup and need a little help.

I grab the whole upgrade folder/directory and deploy that to the server under the __Download then from there i want to run the silentpatch.cmd file.

This is what i have for my command. Shouldn’t this work? What am i doing wrong?

extract NBUv655maint.tmp

waithidden cmd /C __Download\NBUv655maint\silentpatch.cmd

Thank you in advance for any help

chris

(imported comment written by BenKus)

Add “cd __Download” as the first line of the cmd file and see it that helps…

Ben

(imported comment written by chrism91)

So i would be looking at something like this with the quotes:

extract NBUv655maint.tmp

waithidden cmd /C “cd__Download\NBUv655maint\silentpatch.cmd”

Thank you Ben for your help.

(imported comment written by BenKus)

Hi Chris,

Actually, I meant change the silentpatch.cmd to include a line “cd __Download” as the first line in the file.

Ben

(imported comment written by chrism91)

Thanks for the help. We saw this http://forum.bigfix.com/viewtopic.php?id=4671 that you posted a solution for back in Feb. talking about the netbackup silentpatch.cmd file.

This is what i ended up with that worked for us.

extract NBUv655maint.tmp

createfile until END

@echo off

cd “C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\actionsite__Download”

call “silentpatch.cmd”

END

copy __Createfile runme.bat

waithidden cmd.exe /C runme.bat

(imported comment written by BenKus)

Hi Chris,

It is better to use:

cd __Download

rather than

cd “C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\actionsite__Download”

Ben