Re: .bat files for login

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Pegasus \(MVP\) (I.can_at_fly.com)
Date: 01/27/05


Date: Thu, 27 Jan 2005 23:10:33 +1100


"Tx2" <tx2newscollection@hotmail.com> wrote in message
news:MPG.1c62def881111360989fc3@news.individual.net...
>
>
> I've been given the opportunity to 'play' with a Windows 2000 server
> that requires an extra disk for storage due to the current one having
> bee almost filled up.
>
> I know squat all about servers, but this one is rarely used, and then
> only for video files, so I'm being given the opportunity to play as it
> matters not how long it is offline et al.
>
> Each user on the network (domain) utilises a batch file when logging in,
> and as i see it, this batch files tells their system to 'see' some share
> folders on the server as network drives.
>
> (can anyone post a sample batch file of this type, or point me to
> examples?)
>
> When i add the new disk to this server, i am going to create a few
> folders, but i have no idea how to re-write a .bat file to do this, as
> in adding the new share folder paths so users see them as drives.
>
> Can anyone help, or point me to a resource?
>

This is usually done like so:

@echo off
net use P: \\SomeServer\%UserName%

The batch file assumes that you created a share for each
user, e.g.

\\SomeServer\JSmith
\\SomeServer\PBrown

Some respondents might tell you that batch files cannot
handle this type of basic task. They obviously can, and
some of the more demanding stuff too.



Relevant Pages

  • Re: NTFS Compression
    ... > would be required to uncompress all the folders. ... >> disable compression on NTFS volumes, ... Create a batch file using the compact.exe command to uncompress all ... >> and folders on the data volume on your server e.g.: ...
    (microsoft.public.windows.server.setup)
  • Re: SPBackup utility failing
    ... generates a batch file that, when run on a server running Windows SharePoint ... backs up changed site collections using the Stsadm.exe tool. ... >> Mike Walsh, Helsinki, Finland ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Access Denied Error -- Reading Text File in .BAT program
    ... without seeing the whole batch file I am unable to offer any further ... echo Start %date% %TimeMarker%>> c:\test.txt ... on the server console. ... It is strange the file disappears completely after using the NET FILE ...
    (microsoft.public.scripting.wsh)
  • RE: Windows 2003 Server Terminal Services
    ... I tried the first .bat idea, and though it worked, it left the batch file ... accessing applications which they should run. ... MCSE, CCEA, Microsoft MVP - Terminal Server ... Terminal Server role and the Terminal Services Licensing ...
    (microsoft.public.windows.terminal_services)
  • Re: Access Denied Error -- Reading Text File in .BAT program
    ... Since you can't post the whole batch file, I can only offer some hints: ... echo Start %date% %TimeMarker%>> c:\test.txt ... on the server console. ... It is strange the file disappears completely after using the NET FILE ...
    (microsoft.public.scripting.wsh)