Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
aw_muench Respected Contributor.
Respected Contributor.
830 views

Calling C$SYSTEM with openfiles.exe

Jump to solution

Hi,

we have the following environment:

Windows SBS 2011 with 64bit

The cmd-command calls c:\windows\system32\cmd.exe and shows

Microsoft Windows [Version 6.1.7601]

The command c:\windows\system32\openfiles.exe in this mode works perfectly.

We tried to call this program via C$SYSTEM with flags 192 with 32bit-runtime 9.2.5 and get the error

The target system must be running a 32 bit OS

We have tried

openfiles.exe
c:\windows\system32\openfiles.exe
cmd /c c:\windows\system32\openfiles.exe
cmd /c openfiles.exe

but get always the same error.

Thanks in advance for all suggestions.

0 Likes
1 Solution

Accepted Solutions
aw_muench Respected Contributor.
Respected Contributor.

RE: Calling C$SYSTEM with openfiles.exe

Jump to solution
Hi Chris,

thanks for your answer, it works perfectly.

View solution in original post

0 Likes
2 Replies
GMCfourX4
New Member.

RE: Calling C$SYSTEM with openfiles.exe

Jump to solution
When running in a 32-bit process on a 64-bit OS, and calling a process which must be run as 64-bit, you have to use "SysNative", which is a pointer to the C:\Windows\System32 directory (when you use that directory from a 32-bit process on Win64, it automatically maps to C:\Windows\SYSWOW64\).
We use this:
%WINDIR%\SysNative\cmd.exe /c openfiles.exe

The only hitch is you either have to detect 64-bit OS, or use MKLINK /D %WINDIR%\SysNative %WINDIR%\System32 to create the SysNative symbolic link on 32-bit machines.

-Chris
0 Likes
aw_muench Respected Contributor.
Respected Contributor.

RE: Calling C$SYSTEM with openfiles.exe

Jump to solution
Hi Chris,

thanks for your answer, it works perfectly.

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.