pushd - handling multiple drives from cmd
Posted
by
user673600
on Stack Overflow
See other posts from Stack Overflow
or by user673600
Published on 2013-10-22T17:54:24Z
Indexed on
2013/10/25
15:54 UTC
Read the original article
Hit count: 210
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 pushd \\xyz\c$
I get a mapped drive which means I cannot use any knowledge of using for example c:\install e:\mycomponents.dll
. Is there anyway that I can do this once I have used the pushd command?
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.
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 net use
, 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.
So to expand this, is there a way to solve this using net use
or pushd
or a combination that lets me install a service as such: c:\windows\..\installutil e:\mynode
?
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.
© Stack Overflow or respective owner