almoes
4th June 2004 16:53 UTC
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
Takhir
4th June 2004 18:32 UTC
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).
Takhir
5th June 2004 11:30 UTC
Or add Sleep 3 sec between drive mapping file copy.
almoes
7th June 2004 10:02 UTC
I tried with sleep 5 and no chance. The steps are done in two exes. Takhir, what are y<ou suggesting with 'dir'?
Takhir
7th June 2004 10:24 UTC
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.
almoes
7th June 2004 11:03 UTC
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.
almoes
7th June 2004 11:12 UTC
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.