Questions tagged [subst]
42 questions
0
votes
2 answers
Ansible to SUBST a drive machine-wide
I've set up Ansible to connect to a Windows Server 2019 using WinRM certificate method. I need to map D drive to simply mirror C. With SUBST I can do SUBST D: C:\ but...
When I run the command with Ansible using win_shell Remote Desktop does not…

Bijou Trouvaille
- 8,794
- 4
- 39
- 42
0
votes
1 answer
Converting DOS Batch file commands to VBA Function
I have created and am using the following function to map and shorten the path-length of a network drive using SUBST command to work with my tool that implements ADO.
Function MapBasePathToDrive(FullDirectory As String, strDrive As String,…

sifar
- 1,086
- 1
- 17
- 43
0
votes
1 answer
Drive created by SUBST (Windows 10) Not Reporting Full Path to QueryDosDevice()
EDIT - LOOKS LIKE I FOUND THE PROBLEM
Sorry. Apparently it was all my fault. See my self-written answer below for details.
I'm working on a test for a SUBST-ed drive that's included as a part of a larger method that tests a string to ensure that…

G_Hosa_Phat
- 976
- 2
- 18
- 38
0
votes
3 answers
How to add space after '}' char in a big PHP string?
I have a big .css file which is all coded inline. That makes it very inelegant and hard to find the elements accurately. I want to paste it into a PHP function which gives a space after each "{" bracket, cause if I would do it manually it would take…

Renato Araújo
- 27
- 6
0
votes
1 answer
'subst' command used with variable
I have following batch:
subst D: /d
subst D: C:\folder\folder2
pause
And it works fine.
So I tried something different:
set p2=folder2
set p1=C:\folder\%p2%
subst D: /d
subst D: %p1%
pause
Although when run in console they both look exactly the…

Piotrek
- 169
- 3
- 17
0
votes
1 answer
Make return error 127
Am trying to match specific string after doing subst on a variable ; substitution is ok but while trying to match make returns error 127.
Does anyone know what's going on here ? why make should return error ?
$> make -f strsearch.mk
CODE :…

Ramu
- 3
- 1
- 5
0
votes
1 answer
How to catch subst exceptions in TCL
Here is a code example:
set my_ref {$undefined_array(some_key)}
set my_val [subst $my_ref]
which returns:
can't read "undefined_array(some_key)": no such variable
while executing
"subst $my_ref"
According to http://wiki.tcl.tk/1501
Looks like…

Eugeniu Rosca
- 5,177
- 16
- 45
0
votes
0 answers
subst drive - DirectoryNotFoundException
I'm trying retrieve the sub directory list of a subst drive (D:) using C# - DirectoryInfo.GetDirectories() but a DirectoryNotFoundException is thrown.
Does this not work with subst drives?
Is it possible to create/mount a folder on my server as the…

Adam
- 2,632
- 8
- 34
- 60
0
votes
3 answers
oracle 8 extract strings from string
I have
"This is <>sample<> text. Need to extract <>smth1<> and <>smth2<> and many others."
in a column of oracle database.
I need to get:
sample
smth1
smth2
Any help?

babboon
- 683
- 3
- 20
- 45
0
votes
1 answer
how to silently unmap mapped network drives
I have a local running PHP script in which I do this
exec('subst T: C:\\Development');
but in case T: is already mapped or subst' to some other location I want to unmap it first. so I do this
exec('net use T: /DELETE /y');
exec('subst T: /D');
but…

mtijn
- 3,610
- 2
- 33
- 55
0
votes
2 answers
What does this "subst" invocation do?
I would like to know what this command does in a batch script:
subst Q: /D 1>nul 2>nul

iDev
- 2,163
- 10
- 39
- 64
-1
votes
1 answer
Map drives with subst on Windows Server 2012
I have configure Windows Sever 2012 as build machine for Visual Studio solutions for the first time.
On the machine the UAC is set to Minimum and I’m using subst to map drives and use them during the build.
The problem is that if I map the drive…

Epligam
- 741
- 2
- 14
- 36