Windows subst command

149 views
Skip to first unread message

Frederick Jensen

unread,
Nov 29, 2012, 4:31:13 PM11/29/12
to jenkins...@googlegroups.com

I'm a Jenkin's newbie so don't beat me up too much although my last name is Jensen which some people mistake for Jenkins so I got that going for me. :)

My Jenkins slaves are windows boxes.
I have a Jenkins job that is using the DOS/Windows subst command to map a drive to a path:
ie

> subst Y: C:\some\long\path

I iterate over most of the alphabet to find a drive letter that is available.
It seems that on some jobs on 1 host all the jobs use the same drive (E for example) but jobs on anther host
will use several drives as they can 'see' that drive letter's are in use (by some other job)

Can ya explain to me why on 1 box the jobs can all use the same drive letter, but on another box
My guess is that it has something to do with the environment, maybe a new login session of something. I think the subst command is only active for a
login session.
I have not been successful in searching for the answer to this.

Thanks for any info,
Fred Jenkins

Neerenberg, Aaron

unread,
Nov 29, 2012, 4:44:31 PM11/29/12
to jenkins...@googlegroups.com

Subst only takes effect for the process tree that issued the operation and below.

 

-Aaron

Reply all
Reply to author
Forward
0 new messages