News:

Happy New Year!

Main Menu

C:\bar.emf ??

Started by mothballs, June 11, 2010, 02:23:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mothballs

Hi, I'm having trouble with visio 2007.  The software I'm developing uses Visio & Word automation to copy the visio drawing and pasting it to word.  For some reason, it seems at some point a file named bar.emf is written to the root ( C:\ ).  Is this normal behaviour?  Is there any way to change it to maybe use the user's temp directory?

Thanks!

Paul Herber

Yes, it's quite normal, I've found this file produced as well (though I didn't know the cause). A bit of a security hole in my opinion. On any machine used by multiple users this file is visible to all.

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

mothballs

Thanks Paul, do you know of a way to change this?  Folks will be running this via terminal services and do not have access to C:, which may cause some errors...

Paul Herber

#3
Nothing that I know of, I would guess that the path and file name are hard-coded into the software.

http://visguy.com/vgforum/index.php?topic=643.0
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

Visio Guy

Random thought, I swear that that bar.emf file is a ThinkPad issue...? I may be confusing memories, though.

USA tying England 1-1 bliss?
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Paul Herber

Quote from: Visio Guy on June 12, 2010, 09:47:17 PM
USA tying England 1-1 bliss?
It's just not cricket is it!
(not that I care a hoot for football)
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

test

i have database drawing in visio.
Select table, Ctrl+C, and file appears on c:\bar.emf :D
if you remove access to it, then it doesn't produce any errors

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 257 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1129KB.
Tokens: post-login.
Cache hits: 13: 0.00142s for 26,587 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]