News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Win 7 File Permission Hell

Started by RWSurvey, June 08, 2011, 01:49:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RWSurvey

New Windows 7 system, went through this in the past with Vista and another Win 7 system. I am the administrator, the directory owner and have full permissions yet keep getting "Error: A disk file could not be opened." when writing to file using: "open, "i", 1, "FileName.txt"".

Gary E.

Rob S

What folder are you writing to?

Windows 7 does not permit writing anything to any program files folder, other folders "should" be OK.
User since forever

Lar

RW,

I never got that while using a macro (I always output, can't remember ever inputting) but I normally can't save directly in the C drive. Have to create a folder and save in the folder. If I think I'm saving to C it actually goes to my folder under C:\Users.

Lar

RWSurvey

Users/username/documents/DesignCad 3D Max 21

Have tried several different directories both under the programfiles32/IMSI directory and under the documents directory structure. Also tried "*\filename.txt" with the same result.

Arrrggghhhh!!

Dr PR

Try a folder that you are certain has no program files in it. Use an unambiguous path. Something like:

C:\test
DesignCAD user since 1987

RWSurvey

Have tried that PR. Normally work in MyDocuments\MyMacros\.

Thanks though!

dcadRob

#6
Have you tried c:\users\public\documents ?

And that's a typo in your open statement, right? There is no comma after the OPEN. And "i" means 'input' so you can't write to it.
Quoteopen, "i", 1, "FileName.txt"
You probably mean:
QuoteOPEN "o",1,"filename.txt"

RWSurvey

dcadRob,

you are a genius!!

got bitten by the thing we learned in debugging 101: debug the code, not the comments. Couldn't see the forest for the trees...

Not enough hours, too busy for too long...

Thank you thank you thank you

Lar

Gzood catch, dcadRob.

Quote from: Lar on June 08, 2011, 02:06:55 PM
I never got that while using a macro (I always output, can't remember ever inputting) ... ...

Wow, I was so close to the solution I wasn't looking for.

Lar

RWSurvey

Thanks for everyones responses!

I was so sure it was Win 7 permissions I couldn't see the obvious, if it had been a snake......

uh dcad...do you always look so glum??

dcadRob

Last time I tried to download a picture of 'myself', a trojan tried to hijack my computer.

Rob S


So, are you telling us this scary picture acts as you antivirus protection?

I can see where any hacker would think twice before approaching your computer  ;D
User since forever

bdeck

The thought of Kurt Cobain writing macro code scares me.

Glad its DcadRob behind that avatar.

BD

PS Liked his music though.


dcadRob

Kurt Cobain code is scary, eh. Well okay, I will no longer hide behind a mask. Let the truth be revealed.

Wow that feels really liberating! ;D

bdeck

#14
dcadRob,

I think I speak for all of us when I say, "Bring back Kurt."

BD