Link to home
Start Free TrialLog in
Avatar of mytfein
mytfein

asked on

Windows XP: Mapped Drive Reconnect at Logon is not happening even though checked off reconnect at logon

Hi EE,

Does anyone now why when I login to computer after first:
      - mapping a network drive with reconnect at login checked off
      - ctl/alt/delete    +  logoff

that the drives were NOT created?

Tx for your ideas and advice, sandra
ASKER CERTIFIED SOLUTION
Avatar of inetman
inetman
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mytfein
mytfein

ASKER

Hi Inetman,

a) tx for replying... it worked...

b) For EE public,
           the .bat file should contain this:
                             net use x: \\computer name\share name    /persistent:yes

c) just wondering why the reconnect at login of map network drive does not work
d) will put (c) as a scheduled task, and see if pc connects at login

will be back... tx, s
Avatar of mytfein

ASKER

Hi Sameer,

tx for writing...

possible that what you wrote above applys to me
you see, when i click on the .bat file the drives are created
         -however-
when i put them in task scheduler, to run when i log in, i see the .bat file running
                  -but-  the drives are not created

maybe i need to add domain? will give it a try... tx, s
Avatar of mytfein

ASKER

Hi Samir,

i tried adding, /USER:domainName to end of line
     and the dos file just stopped and waited for me to enter a password
         so i exitted the dos run
               removed /user:domainname
                    and .bat file runs fine manually

how can i have it run as a scheduled task at log on?
or is it better to put in start up folder? tx, s
Avatar of mytfein

ASKER

hi,

i disabled the task in scheduled tasks
and instead, copied it to AllUsers/startup folder

logged off, signed in,
   i see the .bat file run - but the network connections have not been made

a)Does anyone know what command i could put in the .bat file to pause it so that i could
see if there are any error msgs, bec. the .bat file disappears so fast?

b) does anyone know the diff bet. logoff and restart other than that logoff  brings up the signin screen
    pretty quickly?

tx, s
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mytfein

ASKER

Hi Sameer,

a) ok, would like to be prompted for the password
    USER[Domain name\    <-  USER is followed by a bracket  or a colon?

b) tx very much for the screenshots - yes , that's the way i did it
   
maybe i'm doing a) incorrectly

here is my code:
   net use Z: \\aaa\bbb "/persistent:yes"
 
aaa and bbb rep. real values not sure if am allowed to put the real values on the internet.
can you pls add to the above sentence how to type the domain part

tx, s
Avatar of mytfein

ASKER

hi,
did more research using google
    and for now, put the .bat file that creates the share
               in another .bat that calls the scripts that uses the network drive
below is the bat file.

Also in the code window below, is the bat file that creates the share

tx everyone for your help... s

Will close out this post, and post a new question relating to:

Still puzzled why putting the .bat file in startup or with scheduler does not work.
i read on the internet that if server recognizes your user/pswd, do not have to explicitly provide that
info...

call C:\ARG_99_Scripts\ARG_99_01_MasterScript\batCreateShare.bat

rem pause

CALL :\ARG_99_Scripts\ARG_99_03_DailyElective_Availability_script\bat001_TotalScriptRun_ElectivesAvailability.bat
CALL :\ARG_99_Scripts\ARG_99_07_DailyElective_CatalogM3M4_script\bat001_TotalScriptRun_ElectiveCatalog_M3M4.bat
CALL :\ARG_99_Scripts\ARG_99_08_DailyElective_CatalogM1M2_script\bat001_TotalScriptRun_ElectiveCatalog_M1M2.bat


@echo off
net use z: /delete

Echo Mapping the Z: Drive
net use Z: \\aaa\bbbb /persistent:yes

Open in new window