Topic
  • 4 replies
  • Latest Post - ‏2013-05-05T11:03:11Z by ddbug
ddbug
ddbug
7 Posts

Pinned topic How to assign file viewer in Windows?

‏2013-04-29T12:30:25Z |
Hello Synergy experts,
Does anyone know how to assign file viewer in Windows?

Synergy client for Windows (my version is 7.1.0.3 on Win7 x64)  has a dangerous habit  of running batch files when user does view.

I've added to ccm.user.properties following lines:
windows.tool.view.BAT="C\:\\windows\\notepad.exe" "%file1"
windows.tool.edit.BAT="C\:\\windows\\notepad.exe" "%file1"

or simply

windows.tool.view.BAT=notepad.exe "%file1"
 
but it doesn't have any effect.  What is the correct way to assign viewer for .bat files?

Thanks,

dd.

Updated on 2013-04-29T12:31:08Z at 2013-04-29T12:31:08Z by ddbug
  • Cynthiawang
    Cynthiawang
    13 Posts
    ACCEPTED ANSWER

    Re: How to assign file viewer in Windows?

    ‏2013-05-03T07:45:08Z  
    • ddbug
    • ‏2013-05-02T21:12:47Z

    Thank you for your attention, Cynthiawang.

    Yes, my file names are like XXX.BAT but not uppercase.

    I have tried  following variants:

    windows.tool.view.BAT="C:\\windows\\notepad.exe" "%file1"

    windows.tool.view.BAT="C\:\\windows\\notepad.exe" "%file1"

    windows.tool.view.bat="C:\\windows\\notepad.exe" "%file1"

    windows.tool.view.bat=notepad.exe "%file1"

    but none of them works.

    There are no signs that the Synergy client cannot access ccm.user.properties file.

    Can you reproduce opening notepad for .bat files on your setup?

    Thanks again,

    dd.

    What type is the bat file defined in Synergy?

     

    Try start Synergy classic client GUI mode to check the "Type Definition" (Admin -> Type Definition).

    By default, the bat file is defined as "shsrc" type. To confirm it, you may click "Browse Types" -> Click  "shsrc" -> Click "Type" in the menu -> Click "Modify Migrate Rules".

    Is ".*\.[Bb][Aa][Tt]$" in the list of "File Match Patterns"?

     

    If it is, you may edit your ccm.user.properties like this:

    windows.tool.view.shsrc="C\:\\windows\\notepad.exe" "%file1"

     

    Or else, you may check what type is bat defined as, then try this:

    windows.tool.view.<type_name>="C\:\\windows\\notepad.exe" "%file1"

     

     

    It will work when you view the bat file after you restart your Synergy Java client.

    Hope above information helps.

     

     

     

     

  • Cynthiawang
    Cynthiawang
    13 Posts

    Re: How to assign file viewer in Windows?

    ‏2013-05-01T01:15:28Z  

    Is your file name XXX.BAT?

    And have you tried following settings?

    windows.tool.view.BAT="C:\\windows\\notepad.exe" "%file1"

    In addition, ccm.user.properties only works on local Synergy Java GUI client. 

    You may also check your system environment to confirm if any process stop Synergy reading from this configuration file or stop popping the notepad windows out. 

     

    Hope these information helps.

  • ddbug
    ddbug
    7 Posts

    Re: How to assign file viewer in Windows?

    ‏2013-05-02T21:12:47Z  

    Is your file name XXX.BAT?

    And have you tried following settings?

    windows.tool.view.BAT="C:\\windows\\notepad.exe" "%file1"

    In addition, ccm.user.properties only works on local Synergy Java GUI client. 

    You may also check your system environment to confirm if any process stop Synergy reading from this configuration file or stop popping the notepad windows out. 

     

    Hope these information helps.

    Thank you for your attention, Cynthiawang.

    Yes, my file names are like XXX.BAT but not uppercase.

    I have tried  following variants:

    windows.tool.view.BAT="C:\\windows\\notepad.exe" "%file1"

    windows.tool.view.BAT="C\:\\windows\\notepad.exe" "%file1"

    windows.tool.view.bat="C:\\windows\\notepad.exe" "%file1"

    windows.tool.view.bat=notepad.exe "%file1"

    but none of them works.

    There are no signs that the Synergy client cannot access ccm.user.properties file.

    Can you reproduce opening notepad for .bat files on your setup?

    Thanks again,

    dd.

    Updated on 2013-05-02T21:14:05Z at 2013-05-02T21:14:05Z by ddbug
  • Cynthiawang
    Cynthiawang
    13 Posts

    Re: How to assign file viewer in Windows?

    ‏2013-05-03T07:45:08Z  
    • ddbug
    • ‏2013-05-02T21:12:47Z

    Thank you for your attention, Cynthiawang.

    Yes, my file names are like XXX.BAT but not uppercase.

    I have tried  following variants:

    windows.tool.view.BAT="C:\\windows\\notepad.exe" "%file1"

    windows.tool.view.BAT="C\:\\windows\\notepad.exe" "%file1"

    windows.tool.view.bat="C:\\windows\\notepad.exe" "%file1"

    windows.tool.view.bat=notepad.exe "%file1"

    but none of them works.

    There are no signs that the Synergy client cannot access ccm.user.properties file.

    Can you reproduce opening notepad for .bat files on your setup?

    Thanks again,

    dd.

    What type is the bat file defined in Synergy?

     

    Try start Synergy classic client GUI mode to check the "Type Definition" (Admin -> Type Definition).

    By default, the bat file is defined as "shsrc" type. To confirm it, you may click "Browse Types" -> Click  "shsrc" -> Click "Type" in the menu -> Click "Modify Migrate Rules".

    Is ".*\.[Bb][Aa][Tt]$" in the list of "File Match Patterns"?

     

    If it is, you may edit your ccm.user.properties like this:

    windows.tool.view.shsrc="C\:\\windows\\notepad.exe" "%file1"

     

    Or else, you may check what type is bat defined as, then try this:

    windows.tool.view.<type_name>="C\:\\windows\\notepad.exe" "%file1"

     

     

    It will work when you view the bat file after you restart your Synergy Java client.

    Hope above information helps.

     

     

     

     

  • ddbug
    ddbug
    7 Posts

    Re: How to assign file viewer in Windows?

    ‏2013-05-05T11:03:11Z  

    What type is the bat file defined in Synergy?

     

    Try start Synergy classic client GUI mode to check the "Type Definition" (Admin -> Type Definition).

    By default, the bat file is defined as "shsrc" type. To confirm it, you may click "Browse Types" -> Click  "shsrc" -> Click "Type" in the menu -> Click "Modify Migrate Rules".

    Is ".*\.[Bb][Aa][Tt]$" in the list of "File Match Patterns"?

     

    If it is, you may edit your ccm.user.properties like this:

    windows.tool.view.shsrc="C\:\\windows\\notepad.exe" "%file1"

     

    Or else, you may check what type is bat defined as, then try this:

    windows.tool.view.<type_name>="C\:\\windows\\notepad.exe" "%file1"

     

     

    It will work when you view the bat file after you restart your Synergy Java client.

    Hope above information helps.

     

     

     

     

    Thank you, Cynthiawang.

    In our setup, bat files are defined as "ascii". The following change in ccm.user.properties did what is needed:

    windows.tool.view.ascii="C:\\Windows\\Notepad.exe" "%file1"
    windows.tool.edit.ascii="C:\\Windows\\Notepad.exe" "%file1"
     

    So it appears that specific fie extensions (such as .bat or cmd) do not work. Can it be because of some other local or global setting?

    Regards,

    - dd

    Updated on 2013-05-05T11:28:01Z at 2013-05-05T11:28:01Z by ddbug