Hi there, sounds simple, but I'd like to make clear what I am trying to do.

net view, net share and net use did not work for me through a DOS command.

I know how to create a share with net use,

But what I need is a way to use a DOS command to

1.check to see if the user has access to a network share
2.If not, then return some type of code

If I can get some type of return on a code, then I can use that and pass it into a variable for logic.

0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


If you *must* use DOS (any sane person would probably use VBScript, but the same principle applies), try to create a file on the share. If the error returned is 5, that's 'Access Denied'.
Answered 03/25/2010 by: VBScab
Red Belt

Please log in to comment
Never mind, I figured it out. It was quite simple.

I used

if exist \\server\\path echo connection established >> c:\temp\connection.txt

Then I just used Wise to read the lines from the text file and continued with logic.

problem solved.

Sorry for the unnecessary post.
Answered 03/25/2010 by: TheInfamousOne
Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity