Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Local vs. network file Date: Sun, 24 Jun 2012 14:12:29 -0400 Organization: A noiseless patient Spider Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 24 Jun 2012 18:12:37 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="03ebLEozl+tXCe7JS60Feg"; logging-data="5877"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RLkYUMDNkBFFuDEUARZcR" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: Cancel-Lock: sha1:qBPKfMmuR8vwXV3KRxLBetrwWN0= Xref: csiph.com comp.lang.java.programmer:15563 On 6/24/2012 2:01 PM, Qu0ll wrote: >[...] > I have a requirement to limit a program which is licensed as "stand > alone" to not be run from a network location so I figured if I could > tell whether the launch directory was a network share then I could block > it. Is there another way I could implement this? I think you need to go back to the people who imposed the requirement, and get them to supply a precise definition of "network share." Does a NAS count? It's certainly on a network but not necessarily shared. What about iSCSI? What about InfiniBand, for that matter? What about today's favorite buzzphrase, "the Cloud?" -- Eric Sosman esosman@ieee-dot-org.invalid