Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
if %PROCESSOR_ARCHITECTURE%==x86 ( copy file.dat %systemroot%\system32) else ( copy file.dat %systemroot%\sysnative)
copy filename.dat %systemroot%\system32
Because on the x64 system, this line. . .copy filename.dat %systemroot%\system32Copies to sysWOW64
not the real system32 where I need it to.
I tested my code and it didn't work so I'm hoping yours will.