Faydra
30th July 2009, 03:06 PM
I have a ton of shares sitting on Computer A.
I have a perl script ftp'ing files to and from Computer B to Computer A.
The problem: Shares sit on the C drive of ComputerA, and they need to move to the D drive.
The .bat files that start this process have a NET USE statement that maps everything to the C drive.
I wanted to move them over slowly - one share at a time, but I can't do that because the NET USE statement on all these .bat files does this:
NET USE Y: \\ComputerA\c$\Inetpub (file://\\ComputerA\c$\Inetpub)
Is there a way to clear a drive setting for your session only? If these .bat files could unmap and then remap the drives I'd be okay, but I'm not sure what would happen when 2 bat files try to map Y to something different at the same time.
I'm pretty much hosed, aren't I? I have to either modify the perl script to check for the presence of the directory on C and if it can't find it, move to D OR I have to do the whole thing at once.
Anyone have a more elegant solution?
I have a perl script ftp'ing files to and from Computer B to Computer A.
The problem: Shares sit on the C drive of ComputerA, and they need to move to the D drive.
The .bat files that start this process have a NET USE statement that maps everything to the C drive.
I wanted to move them over slowly - one share at a time, but I can't do that because the NET USE statement on all these .bat files does this:
NET USE Y: \\ComputerA\c$\Inetpub (file://\\ComputerA\c$\Inetpub)
Is there a way to clear a drive setting for your session only? If these .bat files could unmap and then remap the drives I'd be okay, but I'm not sure what would happen when 2 bat files try to map Y to something different at the same time.
I'm pretty much hosed, aren't I? I have to either modify the perl script to check for the presence of the directory on C and if it can't find it, move to D OR I have to do the whole thing at once.
Anyone have a more elegant solution?