Search found 6 matches

by adda01
09 Sep 2012 11:08
Forum: DOS Batch Forum
Topic: Batch file to attach remote shared drive and copy file?
Replies: 8
Views: 5144

Re: Batch file to attach remote shared drive and copy file?

ok I will do that friend. thank you, I will post back when I know.
by adda01
09 Sep 2012 03:48
Forum: DOS Batch Forum
Topic: Batch file to attach remote shared drive and copy file?
Replies: 8
Views: 5144

Re: Batch file to attach remote shared drive and copy file?

ok could I have some help on the loop please? Im a little stuck as to the detailed syntax. This is what I have so far, I know that its not right though or near complete: @echo off md "c:\files" 2>nul for p in (c:\foldername\list.txt) do pushd "\\remoteserver\share" if exist \*050...
by adda01
09 Sep 2012 03:02
Forum: DOS Batch Forum
Topic: Batch file to attach remote shared drive and copy file?
Replies: 8
Views: 5144

Re: Batch file to attach remote shared drive and copy file?

ok thanks foxidrive, I will try and add a loop myself, I 'll try a "FOR" loop, might post the code back here. I'm really hoping that I don't need to authenticate, but in case I do, is there any chance you are familiar with NET USE? could you post the equivalent of your code above but using...
by adda01
08 Sep 2012 10:04
Forum: DOS Batch Forum
Topic: Batch file to attach remote shared drive and copy file?
Replies: 8
Views: 5144

Re: Batch file to attach remote shared drive and copy file?

Also, I forgot to mention, there will be two files in the shared directory for each serve that end with that text "050912.rpt.zip" so would your code copy both files? or would it only work for one?
by adda01
08 Sep 2012 09:42
Forum: DOS Batch Forum
Topic: Batch file to attach remote shared drive and copy file?
Replies: 8
Views: 5144

Re: Batch file to attach remote shared drive and copy file?

cool thanks, I will try this when I'm at work on Monday, unfortunately I am unable to now as I don't have access to the network. Just a few questions: 1.) Can the code that you posted above can just totally replace mine? I don't need to use the "NET USE" way of doing it? 2.) Will this work...
by adda01
08 Sep 2012 07:16
Forum: DOS Batch Forum
Topic: Batch file to attach remote shared drive and copy file?
Replies: 8
Views: 5144

Batch file to attach remote shared drive and copy file?

I need a batch file that when run attaches a shared drive / directory on a server and copies a file from that server. So say I want to run the batch file on my box, batch file should create a new drive letter on this local box say named "V:" and give me access to a directory on a remote se...