Copying files from one machine to another
        Posted  
        
            by 
                arex1337
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by arex1337
        
        
        
        Published on 2012-12-10T09:43:36Z
        Indexed on 
            2012/12/10
            11:09 UTC
        
        
        Read the original article
        Hit count: 293
        
I'm currently generating documentation on one machine, and publishing it to a web server using the following commands in a script:
net use "\\someShare" PASSWORD /user:username
del /S /Q "\\someShare"
xcopy /E /Y Documentation\html\* "\\someShare\"
However, it feels like a really bad idea to have a password as plain text in the script, so I'm looking for alternatives to my current solution. Ideas?
I definitely would appreciate a solution that uses some kind of access control, as many different people should be allowed to publish their own documentation to the web server, but not mess with each other's docs.
© Server Fault or respective owner