Network disk

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
robyf1
Posts: 3
Joined: 13 Dec 2013 04:39

Network disk

#1 Post by robyf1 » 13 Dec 2013 04:46

Hello everyone (sorry for my english)..

I have this problem:

1 - I connected a network disk drive x:

2 - My program copy file from local to x:

3 - All ok



but if the machine is restarted:

the copy not success



or better the copy success if I before I click on of unit X from windows.



Thanks in advance

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Network disk

#2 Post by foxidrive » 13 Dec 2013 05:24

What do you need to do? Your second last line is difficult to understand.

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: Network disk

#3 Post by Squashman » 13 Dec 2013 06:46

is the drive mapped from a login script or did you do it manually?
Do you have is set to reconnect at login?

robyf1
Posts: 3
Joined: 13 Dec 2013 04:39

Re: Network disk

#4 Post by robyf1 » 13 Dec 2013 13:13

Yes i have set to reconnect at login!!
manually works... if I click on unit x: I can browse the unit.
the problem is .... when my program use the command copy .... copy works only if I have clicked


Works:
1) click on unit x:
2) run my program
3) file copied


Don't Works:
1) restart Pc
2) run my program
3) file not copied

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Network disk

#5 Post by Ed Dyreen » 13 Dec 2013 16:19

Write to the drive before performing the actual copy, copying from a networked drive fails on one of my systems if the drive hasn't been touched yet. With me it's most likely a driver issue ( my system evolved this issue after a reinstall ). I am curious which OS u are running.

robyf1
Posts: 3
Joined: 13 Dec 2013 04:39

Re: Network disk

#6 Post by robyf1 » 14 Dec 2013 10:11

I use win 7

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: Network disk

#7 Post by Squashman » 14 Dec 2013 10:58

Why use the drive letter. Just use the UNC path.

Post Reply