Re: Mapped drives while users are logged out?



Pardon me for jumping in. I need to do something that requires drive
mapping and run as service on XPs
1. So I can ignore the documentation that it can not be used to run batch
file?
the article http://support.microsoft.com/default.aspx?scid=kb;en-us;137890
says
"The Windows NT Resource Kit provides two utilities that allow you to create
a Windows
NT user-defined service for Windows NT applications and some 16-bit
applications
(but not for batch files). "
------------------
If not, what about vbscript file

2. Assuming we can use batch file, once a service is installed by the use of
Instsrv.exe and Srvany.exe, the registry keys updated, can one not user the
service applet to change the user and password used to run the service?

"Luc R" <lucraymondNOSPAM@xxxxxxx> wrote in message
news:F7946F84-1816-45D5-814A-6723786BB61F@xxxxxxxxxxxxxxxx
>
> it's possible, you can use SRVANY.EXE to run any program as a service.
>
> So you create a batch file which will look like this:
>
> @echo off
> net use K: \\servername\sharename <password> /user:<username>
> <applicationname.exe>
>
>
> then program srvany to run the batch file. It should work
>
> read this to know how to use SRVANY.EXE (which is free in the res kit)
> http://support.microsoft.com/default.aspx?scid=kb;en-us;137890
>
>
>
>
> --
> Luc R
> MCSE/MCDBA
>
> http://www.woxxom.com
>
>
> "Matt Gibson" wrote:
>
>> Hey everyone!
>>
>> I doubt this is possible, but we're dealing with another application
>> provider who doesn't seem to know what they're doing. They've got an
>> application running on one of our servers that needs to access a mapped
>> drive. However...this program is running as a service. While there's a
>> user logged in, it runs fine, as the mapped drive is visible. However,
>> as
>> soon as the user logs out, it starts bombing, because it can't see the
>> mapped drive anymore.
>>
>> Sadly enough, the program doesn't support UNC paths, so we can't do it
>> that
>> way. It wants to see a drive letter, and there's no way around this.
>>
>> So, is there anyway to give a service a mapped drive?
>>
>> Thanks!
>>
>> Matt Gibson - GSEC
>>
>>
>>


.



Relevant Pages

  • Re: Automaticaly Restart Application on Error or Termination
    ... a progam as a service and comes with the windows nt resource kit but you can ... will monitor and restart services should they fail. ... > looking for a utility or batch file that will automatically restart an ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Fix for: Server Application Unavailable Error after Applying Security Update for IE
    ... I've run the batch file, and now the login is failing for aspnet. ... > Internet Explorer security patch and ASP.NET V1.0 running on Windows XP. ... > Deletes and recreates the ASPNET account with a known temporary password ... This creates a new random password for the account ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Subst question
    ... > In a batch file, the @ symbol at the beginning of a line will hide the ... which you can see at a command prompt when you type ... > also limit it to one easily if you type in: echo %OS% ... is this say if the OS is NOT Windows NTgo to logoff or IS Windows ...
    (microsoft.public.scripting.vbscript)
  • Re: Help with deletion of files in XP at bootup
    ... erase Cookies, Temp, History, and Temp. ... autoxec.bat *is* a batch file. ... Windows 98, and doing anything similar remains a bad thing to do in Windows ...
    (microsoft.public.windowsxp.general)
  • Re: Building 4DOS.COM? [Solved]
    ... Including the batch file in the patch package itself would be best, ... But you're free to write a setup batch file yourself, if you feel it is really necessary. ... under Windows 98 safe mode simply because Windows interferes the system too much. ... If I do become the only contributor left, I would hand the website maintenance to other person who dwells in this newsgroup longer than me, a long time 4DOS user, already has a 4DOS dedicated web page and knows to handle website better than me. ...
    (comp.os.msdos.4dos)