Archive: File not extracted to dynamically created drive


File not extracted to dynamically created drive
Hi all!

I experienced something, and hope maybe it can be solved. In my install script I map a drive to another server (this causes no problem) and then I try to extract a file to this drive and it doesn't work. However if the map to the drive was already created before running the installer I can extract the file. How could I avoid this? thanxs.

cheers,
alej


I had the same problems with Windows Remote Terminal service - hardware configuration updates appears after re-login only. Can you test situation with new drive - run "dir", for example. Or do this job in two steps (2 execs).


Or add Sleep 3 sec between drive mapping file copy.


I tried with sleep 5 and no chance. The steps are done in two exes. Takhir, what are y<ou suggesting with 'dir'?


You can try to understand, was drive mapped after first exec or not. Run any Windows utility, working with file server - dir f:\ (new drive letter from "net" parameters) or fc, "more f:\file" :) and check up this way valid drive letter (f:\ for example)
BTW, most of Win programs work fine directly with network path (I had one problem long ago, but I cannot remember what it was .. )

E:\Documents and Settings\takhir>copy \\bar\takhir\install.sh .
1 file(s) copied.


I made alot of tests and the drive is mapped. The network path doesn't work because I need to specify another username and password, unless there's a way to specify it apart from mapping a drive.


It works now. I placed the map drive command just after the user input and the extracting of files is after. I just hope it works all times.