Re: Using Net Use command...

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You could get a permissions error, sure. But you wouldn't get a syntax error. A syntax error means there's something wrong with the command itself, not the result of the command.

grep

Eric wrote:
Ok, so I think I got it, but my next question would be, if I do just "net use x: \\dakota\dept" and still get a "syntax error is incorrect" message. might that have to do with my permissions on the share itself? I ask because I'm pretty sure I tried "net use x: \\dakota\dept" already.

"grep" wrote:


Eric,

Again, you can't use net user with a folder. You can only map a drive to a share, not a folder. So you can't do net use x: \\dakota\dept\1stlevel, but you could do net use x: \\dakota\dept.

If you're sure you can't actually do (from the x: drive) cd 1stlevel, to reach your data, then you'd probably be best off creating a share on dakota called 1stlevel, for example, that is *on* the dept\1stlevel folder. Then, instead of mapping to dept, you'd map like this:
net use x: \\dakota\1stlevel, and that would put you right where you want.

grep

Eric wrote:

Last question I promise...When I do a "net logon" command is says I'm currently logged as as my username. So I'm on my network, but is there another way to just browse to a directory? The computer is Dakota, the share is dept, and in there is a folder called 1stlevel. So I use net use x: \\Dakota\dept\1stlevel and get the invalid syntax error.

But "cd" does network in the DOS "like" windoew I'm in. Is there some other way to try and get to that directory? Also, if I'm on a nother computer that works and I'm actually booted into windows and use command prompt, the net use command works fine.


"grep" wrote:



I'm not sure about how Ghost will handle it, but I think you should be able to point to the folder for the file, without a problem. If you can't then just go back to your server and create a new share on the folder that actually contains the file. Then there should be no problem at all. It should work exactly the same.

grep

Eric wrote:


I appreciate the answer, now I only have one more question. Now my boot disc installs some networking components that allow me to connect to my network, but I'm not booted into windows accessing command prompt. I'm in a DOS like windows, so I can connect to the share on the network then access my Ghost image to pull down to the computer.

Is the process going to be the same?

"grep" wrote:




You can only map a drive to a share, not to a folder off the share.

So let's say your share is SHARE1 and your folder is A. You could do:
net use x: \\dakota\SHARE1, but you can't use:
net use x: \\dakota\SHARE1\A

The way to get to folder A is to go to the x: drive, and then CD to A. Alternately, you could create a new share on folder A (I'll call it SHARE2) and then map your drive to it as:
net use y: \\dakota\SHARE2

Note that SHARE2 (aka y:) *points* to the same place as x:\A

grep

Eric wrote:



Hello, I have an image cd which is bootablef or my Compaq computer. I get to a dos like prompt after the cd boots so I can log into my network with my user credentials, which works fine.

Once I'm in I should be able to use net use command. Evertytime I use "net use x: \\dakota\...\..." whihc the (..) represent actual diectories - I get an error saying, "syntax is incorrect, please use net help or net use /?".

What am I doing wrong, or is it a DNS issue or could it be permissions with my account?

.



Relevant Pages

  • Re: Network help please
    ... 'net' is not recognized as an internal or external command, ... some of the help articles said changing the value fixed the ... I have two Thinkpads on the network and neither have ... Perhaps something has interfered with the shared folder share name? ...
    (microsoft.public.windowsxp.newusers)
  • Re: Using Net Use command...
    ... Last question I promise...When I do a "net logon" command is says I'm ... So I'm on my network, ... "grep" wrote: ... able to point to the folder for the file, ...
    (microsoft.public.windows.server.networking)
  • Re: Using Net Use command...
    ... "grep" wrote: ... A syntax error means there's something wrong with the command ... you can't use net user with a folder. ...
    (microsoft.public.windows.server.networking)
  • Re: copy folder to a network share???
    ... that I wanted to copy data from WindowsXP PCs to a network share. ... And the SET info from one of the PCs: ... If this command is run from any of the PCs for the first time it will create ... a folder in the %HOMESHARE% folder on the network, ...
    (microsoft.public.scripting.vbscript)
  • Re: Windows 7 My user folder is invisible
    ... ("What's a Syntax Error? ... Microsoft Windows MVP ... I stumbled on a "fix" for the problem of finding my user folder (though I ... In an elevated Command Prompt window, you should be able to use the Dir ...
    (microsoft.public.windows.vista.file_management)