Note that there are some explanatory texts on larger screens.

plurals
  1. POpushd - handling multiple drives from cmd
    primarykey
    data
    text
    <p>I'm trying to figure out how to install some programs where the components reside on two different drives on a networked path. However whenever I use <code>pushd \\xyz\c$</code> I get a mapped drive which means I cannot use any knowledge of using for example <code>c:\install e:\mycomponents.dll</code>. Is there anyway that I can do this once I have used the pushd command?</p> <p>How can I ensure that I keep the drives the same for example. I'm in the process of installing services. So it seems that when I install the service, I need to keep the path as the same as the actual location of the .exe which means that I'm running into issues.</p> <p>Is there a way to simply use pushd but at the sametime not actually map drives? As when installing services, when I've been using <code>net use</code>, I've found that there is an issue with installing on drives which are mapped, as the service whilst can be installed doesn't find the actual .exe when it comes to starting up the service. </p> <p>So to expand this, is there a way to solve this using <code>net use</code> or <code>pushd</code> or a combination that lets me install a service as such: <code>c:\windows\..\installutil e:\mynode</code>?</p> <p>So to clarify, I need to somehow be able to see both drives on the remote machine by their relative drives i.e. E:\ and C:\ - if I use a mapped drive letter then it means installing service is a pain because I cannot use the path.</p> <p><strong>Issue 1:</strong></p> <p>If I use pushd, then I cannot see both drive letters on the server.</p> <pre><code>net use i: %Machine1PathFRM% pushd %Machine1PathZIP% i:\installutil /username=ABC /password=abc %ZMN% popd </code></pre> <p><strong>Issue 2:</strong></p> <p>If I use <code>net use</code> then I whilst I can use this for say the install utils, when it comes to running the service, windows cant find the local file because it has performed some kind of file mapping process which is very very annoying indeed.</p> <pre><code>REM Install Processes Machine 1 REM net use e: %Machine1PathZIP% REM net use i: %Machine1PathFRM% REM i:\installutil /username=ABC /password=abc e:\%ZMN% REM i:\installutil /username=ABC /password=abc e:\%ZPL% </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload