Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Copying single file from USB/network drive to multiple folders on C:

- - - - -

  • Please log in to reply
2 replies to this topic

#1
acrahe1

acrahe1
  • Member
  • 2 posts
  • Joined 23-August 12
  • OS:Windows 7 x64
  • Country: Country Flag
Was given a challenge by a friend at a company I used to work at. They are attempting to automate an installation across their network, which involves copying a networked .dll file to the various folders after installation. They are trying to work on a script (I believe they are trying to use a batch script now) to copy that file from the server (or a USB if it came to it) to the various folders with a single command that could be executed on reboot after installation. Here's a snippet of their current idea:

@echo off
set /p "answer=Are you ready to transfer files to local installation? [y/n] "
if /i "%answer%" neq "y" goto :eof
echo.
ECHO This will move the necessary files to the proper folders to complete the installation.
echo.
xcopy /y /q /u "OMAz001\IT\Software\Common\dll\32-bit\comlib.dll" "C:\Path\Dir\Patch"
...


It continues with all the different folder locations within in the installation on the C: for Program Files and Program Files (x86). Is there a better way of doing this without having to specifically map the server path, should they decide to have the tech do it from a flash drive while on location installing the software? Often times, each computer is slightly different in regards to what users have what paths mapped already, so there is not going to be a consistent drive mapped computer to computer.

While I'm still interested in helping him find a solution to their problem, I'm throwing in the towl and asking for reinforcements. Any help would be greatly appreciated.


How to remove advertisement from MSFN

#2
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,587 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Homework Alert!

#3
acrahe1

acrahe1
  • Member
  • 2 posts
  • Joined 23-August 12
  • OS:Windows 7 x64
  • Country: Country Flag

Homework Alert!


Can you point me in the right direction to a resource where I could study up on this? I don't work in a position where I write enough code to be proficient anymore so I've lost the edge. :wacko:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users