Search found 10 matches

by 97browng
09 Aug 2012 04:42
Forum: DOS Batch Forum
Topic: Batch file to copy folder to several PCs (SOLVED)
Replies: 29
Views: 24503

Re: Batch file to copy folder to several PCs

Thanks guys for the info but if it fails on 1 file then I am happy for it to show as a fail for everything. I only copy a few files over at a time and if one of them fails I want a list so that I can try it again (the files I copy are locked when the users are using them or if they have not logged o...
by 97browng
08 Aug 2012 08:11
Forum: DOS Batch Forum
Topic: Batch file to copy folder to several PCs (SOLVED)
Replies: 29
Views: 24503

Re: Batch file to copy folder to several PCs

You must be an American then? If so you should try eating some British chocolate and you will soon change your mind :)

Can I just say a big thank you to both of you. This has really helped and my batch scripting has come on a long way.

How can I set this thread as solved?

Thanks
Gary
by 97browng
08 Aug 2012 07:53
Forum: DOS Batch Forum
Topic: Batch file to copy folder to several PCs (SOLVED)
Replies: 29
Views: 24503

Re: Batch file to copy folder to several PCs

That is great, just been testing now and it is working.

I bet you want chocolate with your dessert :)
by 97browng
08 Aug 2012 07:40
Forum: DOS Batch Forum
Topic: Batch file to copy folder to several PCs (SOLVED)
Replies: 29
Views: 24503

Re: Batch file to copy folder to several PCs

Thats what I want, I want it to show an error even if 1 file fails.

Where should I create the success.txt and failure.txt ?
by 97browng
08 Aug 2012 07:34
Forum: DOS Batch Forum
Topic: Batch file to copy folder to several PCs (SOLVED)
Replies: 29
Views: 24503

Re: Batch file to copy folder to several PCs

Could I possibly then adapt this and copy another file to the required location lets say I call it the date so 08082012.txt and then after I have run the first part of the script run another part to check if the location contains the file 08082012.txt. If it does then do nothing and if it does not l...
by 97browng
08 Aug 2012 07:18
Forum: DOS Batch Forum
Topic: Batch file to copy folder to several PCs (SOLVED)
Replies: 29
Views: 24503

Re: Batch file to copy folder to several PCs

Thanks guys,

It is all working now. My final question is how can I find out which ones it worked on or more importantly which ones it did not work on?
by 97browng
08 Aug 2012 06:45
Forum: DOS Batch Forum
Topic: Batch file to copy folder to several PCs (SOLVED)
Replies: 29
Views: 24503

Re: Batch file to copy folder to several PCs

Thanks squashman but when I write it as the below it does not work;

For /F "tokens=*" %%a in ("\\mainserver\support\ICT Desktop Systems\Software\Trial\PC_list.txt") Do (
by 97browng
08 Aug 2012 06:21
Forum: DOS Batch Forum
Topic: Batch file to copy folder to several PCs (SOLVED)
Replies: 29
Views: 24503

Re: Batch file to copy folder to several PCs

Thanks for that. I have sort of got it working however there seems to be a problem when I try and put the full path in. If I run it like this it works fine; For /F "tokens=*" %%a in (C:\PC_list.txt) Do ( However if I try this it does not work; For /F "tokens=*" %%a in (\\mainserv...
by 97browng
08 Aug 2012 05:34
Forum: DOS Batch Forum
Topic: Batch file to copy folder to several PCs (SOLVED)
Replies: 29
Views: 24503

Re: Batch file to copy folder to several PCs

Thanks for that I will give it a go. The assets are actually different and range from A20700 to a20795. Obviously I can change your code to match this, but as PCs fail and we need the replace them the assets will change. So we have have A20700-A20751 (with A20752 and A20753 removed due to failure) t...
by 97browng
08 Aug 2012 04:42
Forum: DOS Batch Forum
Topic: Batch file to copy folder to several PCs (SOLVED)
Replies: 29
Views: 24503

Batch file to copy folder to several PCs (SOLVED)

Hi All, This is my first post so please be gentle. I am very new to batch files so please have some patience with me. I have done a little bit of VB but am trying to learn a bit of batch for my job. Basically I want to create a batch file that copiers 3 files from a server to several PCs (about 95 i...