Cuestion about an action in a software package

(imported topic written by esv_ban91)

I have just done a software package using the wizard. It’s a simple software package. Its action is as following:

download http://SRVBFIXIVWBA01.xxxxxxxxxx:52311/Uploads/0812898bc4e92400d3af67c5e518d8fadef25c07/XQPA.tmp

continue if {(size of it = 5023 AND sha1 of it = “0812898bc4e92400d3af67c5e518d8fadef25c07”) of file “XQPA.tmp” of folder “__Download”}

extract XQPA.tmp

wait “{pathname of system folder & “\cmd.exe”}” /c “{(pathname of client folder of current site) & “__Download\setup.bat”}”

The setup.bat file contains:

md d:\pch2003.dir\XQPA

copy XQPA*.* d:\pch2003.dir\XQPA*.*

The directory is created but no files are copied in.

Please, could you help me with this issue?

Thanks in advance

(imported comment written by NoahSalzman)

Using relative paths in any scripting exercise is usually a red flag. Try specifying a full path to XQPA*.* or explicitly change directories or do some trouble shooting to figure out where you are executing from at that moment.

(imported comment written by esv_ban91)

Thanks for the suggestion. I have just tried changing the setup.bat as following:

copy %ProgramFiles%\BigFix Enterprise\BES Client__BESData\actionsite__Download\XQPA*.* D:\pch2003.dir\XQPA*.*

The result has been equal.

(imported comment written by esv_ban91)

Thanks for your help.

I changed my script as following and it works:

md d:\pch2003.dir\XQPA

c:

cd\

cd "%ProgramFiles%\BigFix Enterprise\BES Client__BESData\actionsite__Download\XQPA

copy

.

d:\pch2003.dir\XQPA*.*

Now, I’ll try to develop a new script more “elegant”

(imported comment written by NoahSalzman)

Yay! I’ll take “working” over “elegant” any day. :slight_smile: