copy to c:\program files or c:\program files (x86)
:In wisescript editor i have created this script to check if it is c:\program files or c:\program files (x86)
Get Registry Key SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE place in Variable CPUARCH
If CPUARCH Equals "x86" then
Set Variable PROGFILES to c:\Program Files
Else
Set Variable PROGFILES to c:\Program Files (x86)
End
Set Variable FILEPATH to %CTEMP%\Source
Set Variable DEST to %PROGFILES%\test
Copy local file from %FILEPATH%\testscript.vbs to %DEST%\testscript.vbs
but if i run it he copy it to c:\program files (x86)\
This is strange, or i don't see the fault
can you help me
kind Regards
Steven
Get Registry Key SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE place in Variable CPUARCH
If CPUARCH Equals "x86" then
Set Variable PROGFILES to c:\Program Files
Else
Set Variable PROGFILES to c:\Program Files (x86)
End
Set Variable FILEPATH to %CTEMP%\Source
Set Variable DEST to %PROGFILES%\test
Copy local file from %FILEPATH%\testscript.vbs to %DEST%\testscript.vbs
but if i run it he copy it to c:\program files (x86)\
This is strange, or i don't see the fault
can you help me
kind Regards
Steven
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.