PDA

View Full Version : PCSBAT.exe startet Stapeldatei-Editor, Win 7 Pro



lossin
19-03-14, 14:33
Hallo zusammen,

auf einem Win7-Pro-PC (64bit) startet beim Aufruf einer -BCH-Datei die PCSBAT.exe die einzelnen Sessions, sondern einen Stapeldatei-Editor. Neuinstallation ClientAccess hat nichts gebracht. Die Löschung aller Dateiendungsverknüpfungen auch nicht. Nachdem ich die Dateiendung .BCH der üblichen PCSBAT.exe zugeordnet habe, startet wieder der Editor.
Weiß jemand Rat ?

Danke im voraus !

Fuerchau
19-03-14, 15:09
Das Problem ist, dass es den Dateityp-Editor seit Windows Vista nicht mehr gibt.
Ggf. wird die Standard-Einstellung für "Öffnen" mit Bordmitteln nicht überschriieben (ggf. Super-ADMIN-rechte erforderlich).
Vielleicht hilft dir folgender Link weiter:
http://www.nirsoft.net/utils/file_types_manager.html
Damit kannst du die Endungen wieder vernünftig bearbeiten.

Fuerchau
19-03-14, 15:15
Das Problem ist der Kommandoparameter:
C:\Program Files (x86)\IBM\Client Access\Emulator\pcsbat.exe "%1" /r
So kann Windows 7 das selber (bei öffnen mit als Standard festlegen) nicht eintragen.
Obiger Editor bedarf keiner Installation (korrekte Version x64 beachten) und kann direkt aufgerufen werden.

lossin
20-03-14, 11:00
Danke, ich habe jetzt eine eigene .bat geschrieben, die die .ws-Dateien nacheinander startet.
Das kann ich einfacher verteilen.

Da wir jetzt von XP auf Win8 umsteigen, werde ich das Programm jetzt ja wohl standardmäßig haben.

Fuerchau
20-03-14, 11:30
Nach einer korrekten Installation von CA werden die Dateiendungen korrekt registriert.
Leider ist dafür auch Admin erforderlich!
Es gibt auch keine Startoption, die Dateiendungen korrekt neu zu registrieren.
Man kann allerdings über regedit.exe die Schlüssel in eine ".rgs" exportieren und jederzeit (als Admin ausführen), diese .rgs wieder importieren.

TARASIK
20-03-14, 12:40
Hallo,
ich vermute hier ist die Lösung:
PC5250 Batch Session Files Open in the Editor after Change in File Association
Technote (troubleshooting)

Problem(Abstract)

This document discusses an issue where the PC5250 Batch (.bch) session files open in the editor instead of executing.
Resolving the problem

This document discusses an issue where the PC5250 Batch (.bch) Session files open in the editor instead of executing.

Generally, this happens after the Windows File Association was changed for the PC5250 Batch Session files of .bch to be opened with a different Windows application and not Access for Windows PC5250 emulator. Usually, this will be Wordpad or Notepad because the user was going to edit that file in a text editor.

The standard Windows tools are used to tell a .bch file in Windows to be opened with the Access for Windows PC5250 Batch Session executable of PCSBAT.EXE to resolve this. The .bch files are no longer opened in the Windows editor. They are opened with the Access for Windows PC5250 Batch Session application; however, they are opened in edit mode.

This is because the same executable of PCSBAT.EXE is used to run and edit the files. There is a switch that is passed to differentiate between run and edit mode.

When Access for Windows PC5250 is initially installed, the Windows file association is correctly set for .bch file to call PCSBAT.EXE in run mode. However, when a normal file association is made, it is for the default of PCSBAT.EXE which is edit mode.

The file association needs to be changed in Windows using REGEDIT.

To change the file association in REGEDIT you should do the following:
1. Go to the following path:

HKEY_CLASSES_ROOT\Applications\pcsbat.exe\shell\op en\command

The entry likely looks like this:

Default = "C:\Program Files\IBM\Client Access\Emulator\pcsbat.exe" "%1"
2. Change the entry to the following:

Default = "C:\Program Files\IBM\Client Access\Emulator\pcsbat.exe" "%1" /r

Fuerchau
20-03-14, 13:30
Schön, dass IBM das mit dem "/r" auch gefunden hat :). Siehe meinen Kommantar oben.