WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: jtrask on June 10, 2015, 01:52:25 PM

Title: wntAddDrive with @DEFAULT not working
Post by: jtrask on June 10, 2015, 01:52:25 PM
I want to connect to a network share without being too particular about the credentials, but @DEFAULT doesn't appear to be a valid constant. It didn't turn blue, nor does it work.
Title: Re: wntAddDrive with @DEFAULT not working
Post by: jtrask on June 10, 2015, 01:57:02 PM
@NONE is no good either.
Title: Re: wntAddDrive with @DEFAULT not working
Post by: ....IFICantBYTE on June 10, 2015, 05:34:26 PM
@DEFAULT and @NONE did not get highlighted in blue for me either, but they worked when trying to map a shared (with everyone) folder on a server to a drive letter.
Title: Re: wntAddDrive with @DEFAULT not working
Post by: td on June 11, 2015, 06:59:01 AM
@DEFAULT and @NONE are extender constants and extender constants are not necessarily added to WBS's context highlighting system but they are both supported by and work with the extender.  The OP's problem has some other cause than the constants not working.
Title: Re: wntAddDrive with @DEFAULT not working
Post by: jtrask on June 11, 2015, 08:55:54 AM
Thank you for clearing that up.  I'll see what I can figure out.
Title: Re: wntAddDrive with @DEFAULT not working
Post by: jtrask on June 11, 2015, 11:31:51 AM
As usual, this was the result of me doing something stupid.  I was passing \\Server\Share as the share.  Once I trimmed it down to just the share name, it worked.  I simply jumped to a conclusion when my constants didn't change blue.