.NET

.NET

Reply
Distinguished Contributor
a7v1n
Posts: 216
Registered: ‎10-02-2008
Message 1 of 4 (150 Views)

running a routine to 1 computer only

150 Views, 3 Replies
03-18-2011 05:07 PM

hi. is there any way to make a routine written in .NET run on one machine only? If its loaded on a machine, no other machine can load it at the same time. thanks!

Active Member
elliottpd1
Posts: 6
Registered: ‎01-07-2010
Message 2 of 4 (119 Views)

Re: running a routine to 1 computer only

03-20-2011 07:13 AM in reply to: a7v1n

If I was doing this, I would have the program check the System.Environment.MachineName and exit if it is not the designated computer.  You could do the same thing if it is meant for aa particular user:  check the System.Environment.UserName for the designated user.

Regards, Pete

Distinguished Contributor
a7v1n
Posts: 216
Registered: ‎10-02-2008
Message 3 of 4 (96 Views)

Re: running a routine to 1 computer only

03-21-2011 02:08 PM in reply to: elliottpd1

this is possible only if i know the computer name or user name. i want to be able to run it in only 1 random computer. is this possible? thanks!

Distinguished Contributor
a7v1n
Posts: 216
Registered: ‎10-02-2008
Message 4 of 4 (94 Views)

Re: running a routine to 1 computer only

03-21-2011 02:12 PM in reply to: a7v1n

what i meant is that the dll file is licensed. only 1 machine can run it. is this possible in .nET? Thanks!

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.