Search found 7 matches

by psyghotic
03 Mar 2009 11:50
Forum: DOS Batch Forum
Topic: Creating folders provided by text file
Replies: 5
Views: 8315

This did the trick. so thanks for all the advice @echo off for /f "tokens=*" %%A in (adsusers.txt) do ( if not exist c:\test\Home\%%A ( echo %date%,%time% : No ADS-Homefolder found for %%A >> log.txt ) else if NOT exist c:\test\Notesprofiles\%%A ( echo. echo Creatin...
by psyghotic
03 Mar 2009 05:12
Forum: DOS Batch Forum
Topic: Creating folders provided by text file
Replies: 5
Views: 8315

Hi, I got it so far that it reads the first line of the textfile and performs all commands. But I can't get it to loop trough all names in the textfile. code : @echo off for /f "tokens=*" %%A in (adsusers.txt) do ECHO set /p arg=<"adsusers.txt" if not exist c:\test\Home\%...
by psyghotic
03 Mar 2009 04:04
Forum: DOS Batch Forum
Topic: Creating folders provided by text file
Replies: 5
Views: 8315

Creating folders provided by text file

Hi, I created a batchfile that creates a folder and copies a file in it. I have to run it like this : makenotes jdoe Then it creates a folder on server called jdoe and copies a file in it. if I have 10 users i have to perform this action 10 times. the code is : if not exist \\server\Home\%1 goto :no...
by psyghotic
02 Mar 2009 10:43
Forum: DOS Batch Forum
Topic: Copy multiple files to different directorys
Replies: 7
Views: 9874

Hi,

I got it running.
Just copied the information about the not copied file into a logfile.


Thanks for the help !! :wink:
by psyghotic
02 Mar 2009 10:04
Forum: DOS Batch Forum
Topic: Copy multiple files to different directorys
Replies: 7
Views: 9874

Hi, Thanks, this works. But it is not easy to overview this when it is used to copy for example 100 files. I get the following in my cmd window : For each id file I see the complete coding. Set "f=bla" If Exist c:\test\bla (Copy /v bla.txt c:\test\!f! ) Else (echo The Folder bla Does not E...
by psyghotic
02 Mar 2009 08:09
Forum: DOS Batch Forum
Topic: Copy multiple files to different directorys
Replies: 7
Views: 9874

Hi, I got it working now. but still one issue. If I copy the id files to the folders on the server (these folders allready exist). If the folders on the server do not exist, the id file can't be copied and I need an overview of the id files that haven't been copied. SETLOCAL ENABLEEXTENSIONS SETLOCA...
by psyghotic
02 Mar 2009 03:42
Forum: DOS Batch Forum
Topic: Copy multiple files to different directorys
Replies: 7
Views: 9874

Copy multiple files to different directorys

Hi, I have got a directory, where i place users id files. These id files have to go to the users own folder on server. the source is c:/id files that can be in this folder : joe.id jane.id blabla.id These files need to be copied to \\server\NotesProfiles\username\ So for joe.id \\server\NotesProfile...