Edit File... on .bat files runs file instead of opening

If you are having a problem using SourceOffSite, post a message here.

Moderator: SourceGear

Post Reply
pcoats
Posts: 2
Joined: Wed Apr 07, 2004 7:01 pm

Edit File... on .bat files runs file instead of opening

Post by pcoats » Wed Apr 07, 2004 7:08 pm

I am using SourceOffsite 4.0.

I have .bat files in source control. I have notepad.exe set as the External Program for Viewing and Editing files.

If I try to "Edit File..." on any other files, then Notepad launches fine. But, if I try to "Edit File..." on .bat files, then the batch file starts to run (instead of being opened in Notepad.exe).

(Note: in Windows, doing a right-click Edit opens the file in Notepad)

How do I get SourceOffSite to Edit .bat files ?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Thu Apr 08, 2004 2:23 pm

Thanks for reporting this. There seems to be a bug in the way SOS selects the application with which to open a file for editing.

When you select the Edit command, SOS uses the default system application for the file, rather than the application configured in Tools->Options->External Programs.

The workaround is to enable the Command Dialog for Edit and View under Tools->Options->Command Dialogs. This will cause the dialog to come up when you choose Edit, and you will have the option to user Notepad instead of the default system app (which in this case runs the .bat file).
Linda Bauer
SourceGear
Technical Support Manager

pcoats
Posts: 2
Joined: Wed Apr 07, 2004 7:01 pm

Post by pcoats » Thu Apr 08, 2004 3:06 pm

that works perfectly. thanks.

Post Reply