Author Topic: wntAddDrive with @DEFAULT not working  (Read 3068 times)

jtrask

  • Jr. Member
  • **
  • Posts: 71
wntAddDrive with @DEFAULT not working
« 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.

jtrask

  • Jr. Member
  • **
  • Posts: 71
Re: wntAddDrive with @DEFAULT not working
« Reply #1 on: June 10, 2015, 01:57:02 pm »
@NONE is no good either.

....IFICantBYTE

  • Full Member
  • ***
  • Posts: 122
Re: wntAddDrive with @DEFAULT not working
« Reply #2 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.
Regards,
....IFICantBYTE

Nothing sucks more than that moment during an argument when you realize you're wrong. :)

td

  • Tech Support
  • *****
  • Posts: 3490
    • WinBatch
Re: wntAddDrive with @DEFAULT not working
« Reply #3 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.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

jtrask

  • Jr. Member
  • **
  • Posts: 71
Re: wntAddDrive with @DEFAULT not working
« Reply #4 on: June 11, 2015, 08:55:54 am »
Thank you for clearing that up.  I'll see what I can figure out.

jtrask

  • Jr. Member
  • **
  • Posts: 71
Re: wntAddDrive with @DEFAULT not working
« Reply #5 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.