system
November 17, 2010, 6:28pm
1
(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
Noah
November 17, 2010, 9:21pm
2
(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.
system
November 18, 2010, 11:11am
3
(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.
system
November 18, 2010, 11:31am
4
(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”
Noah
November 18, 2010, 5:37pm
5
(imported comment written by NoahSalzman)
Yay! I’ll take “working” over “elegant” any day.