I want to set *64.exe if the environment is 64 bit architecture. How can I achieve it?
I could get 64 or 86 bit environment in the ${processor_architecture} variable.
If the variable contains the number 64, I want to set ***64.exe. And if it contains 84, I want to use ***.exe.
| | ${processor_architecture}= | Get Environment Variable | PROCESSOR_ARCHITEW6432
Please give me your advise. Thank you very much.
BRs/ Toda
it could be done easier but if you want to do it like so next thing you should do is check if cpu arch type is in string and set an aprorpriate exe like so: #First take your method and return cpu arch
${cpu_arch} Check processor architecture #Then set correct exe name for apropriate arch if we have an 64 bit cpu variable will be 64.exe otherwise 32.exe
${exe_filename_end} Set Variable If ${cpu_arch}==“AMD64” 64.exe 32.exe
${exe_filename_start} Set Variable yourgreatexename
${full_filename} Catenate SEPARATOR= ${exe_filename_start} ${exe_filename_end}