.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

copy dll from server to local to run ...opinions

4 REPLIES 4
Reply
Message 1 of 5
mpropst
581 Views, 4 Replies

copy dll from server to local to run ...opinions

I found that dotnet apps don't want to run from server without some tweaking of gac or some other things i don't understand, and don't want to mess with server settings..

 

what is the typical way of deploying a dot net app in a small office? 3-4 users

i was considering this lisp to copy latest server version to local drive,

opinions?

 

(defun LoadAppFromServer()
 (setq ServerCopy "Path to server copy\\app.dll")
 (setq LocalCopy "C:\\Local path\\app.dll")

;Delete local copy to ensure latest version
 (vl-file-delete LocalCopy)

;Try to copy server copy to local drive
 (if(vl-file-copy ServerCopy
           LocalCopy)
  (progn
   (setq FileName LocalCopy)
   (princ (strcat "\ncopied source file " ServerCopy " from server"))

   (if (findfile Filename)
     (command "netload" Filename)
    (princ(strcat("\nFile not found" Filename)))
   )
  )
  (progn
   (princ (strcat "Failed to copy source file " ServerCopy " from server"))
     )
 )
 
)
;(LoadAppFromServer

4 REPLIES 4
Message 2 of 5
caddzone
in reply to: mpropst

The easiest way is to add some scripting to the user's login script that

compares file timestamps and copies newer files from the server to

the local system.



AcadXTabs for AutoCAD
Supporting AutoCAD 2000-2011


Message 3 of 5
mpropst
in reply to: caddzone

i don't currently have login scripts, though i could research that.

would it be functionally equivalent if i  just putting that lisp in acad.lsp so it just runs once per session?

pros / cons ?

did that lisp code look ok? it works here so far but are there obvious flaws?

(other than it's not checking dates so i have to add that) but as far as deleting the old and copying the new?

thanks

Message 4 of 5
andrewpuller3811
in reply to: mpropst

You might want to check the server file exists before you delete the local file.



If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.

Andrew Puller
Maitland, NSW, Australia
Windows 10 Enterprise 64bit
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2021
Message 5 of 5
mpropst
in reply to: andrewpuller3811

Andrew, good point, I know it does, but should add that to the code, thanks

mark

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost