I have found that a lock violation means you don't have sharing installed
I think,
On Tuesday, December 11, 2012, Marcos Favero Florence de Barros wrote:
> Hi,
>
> We are facing a difficulty with the 'copy' command in the
> network of our Health Center.
>
> We occasionally need to copy files from the server to the local
> disks of client machines.
>
> I have been doing these copies by means of file managers such as
> Navigator, NDN or Connect, and it is straightforward.
>
> However, we want to spare the users the trouble of learning how
> to use a file manager. So I wrote a simple batch file to do the
> copying. To my surprise, it failed, with the error message "Lock
> violation" or something to that effect.
>
> The 'copy' command also fails for files unrelated to the
> database.
>
> A 'copy' command manually issued at the prompt also fails, with
> the same error message.
>
> I do not believe there are any locks placed on files, otherwise
> the file managers would not be able to copy them either.
>
> The only temporary solution I could find so far is to simulate
> the file manager operation. I wrote a batch file that starts a
> file manager, and uses the 4DOS 'keystack' command to simulate
> all the keypresses I would manually use to select the files and
> copy them. I tested it at home (without a network), and it
> works.
>
> But I feel that using 'keystack' is a last-resort thing. In
> addition, this copying scheme is itself a workaround for another
> difficulty we are facing: DataPerfect reports are not running in
> client machines. So we are dealing with a workaround for a
> workaround here. I would like to have a more elegant solution if
> possible :-)
>
> The server is running (a legal copy of) MS-DOS, because, as we
> discussed in a thread a few months ago, under FreeDOS it freezes
> when a user in a client machine presses and holds the up-arrow
> or down-arrow key for a few seconds. All client machines
> (currently seven) run FreeDOS with 4DOS.
>
> Otherwise the system is running beautifully, and is highly
> valued by the team of doctors, nurses and their staff.
>
> Regards,
>
> Marcos
>
>
> --------------------------------------
> Marcos Fávero Florence de Barros
> Campinas, Brazil
>
>
>
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net <javascript:;>
> https://lists.sourceforge.net/lists/listinfo/freedos-user
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user