Search found 10 matches
- 07 Aug 2012 02:47
- Forum: DOS Batch Forum
- Topic: Batch job to utilise two data sources?
- Replies: 4
- Views: 3758
Re: Batch job to utilise two data sources?
If for example my on input file has the data already combined as per Liviu's resolution, is there any simple way to modify the original batch script so it uses the two parameters. some lines of the code.bat contain syntax that requires the two parameters whereas some don't. icacls x:\homedrives\%1 /...
- 06 Aug 2012 01:40
- Forum: DOS Batch Forum
- Topic: Batch job to utilise two data sources?
- Replies: 4
- Views: 3758
Re: Batch job to utilise two data sources?
thanks, that certainly solves part of my problem.
how would/could the script I'm using change to call on both of these items?
how would/could the script I'm using change to call on both of these items?
- 05 Aug 2012 15:05
- Forum: DOS Batch Forum
- Topic: Batch job to utilise two data sources?
- Replies: 4
- Views: 3758
Batch job to utilise two data sources?
Hello, I'm working on a script that resets user permissions to their homedrive folder based on an export (of SAM id's) from another batch script. The batch job consists of two files: go.bat which executes the job for /f %%i in (users.txt) do @cmd-series %%i contents of user.txt is: username1 usernam...
- 30 Jul 2012 05:56
- Forum: DOS Batch Forum
- Topic: Striping variable text out of a text file?
- Replies: 12
- Views: 7489
Re: Striping variable text out of a text file?
even better - nice one 

- 30 Jul 2012 04:04
- Forum: DOS Batch Forum
- Topic: Striping variable text out of a text file?
- Replies: 12
- Views: 7489
Re: Striping variable text out of a text file?
Spot on - awesome - thanks 

- 30 Jul 2012 02:52
- Forum: DOS Batch Forum
- Topic: Striping variable text out of a text file?
- Replies: 12
- Views: 7489
Re: Striping variable text out of a text file?
do you know how the same result could be obtained if the data I wanted was at the end of a line of text like: \\domain.com\customer\region\site\folder\username1 \\domain.com\customer\region\site\folder\username2 \\domain.com\customer\region\site\folder\username3 \\domain.com\customer\region\site\fol...
- 30 Jul 2012 01:36
- Forum: DOS Batch Forum
- Topic: Striping variable text out of a text file?
- Replies: 12
- Views: 7489
Re: Striping variable text out of a text file?
Perfect works a treat - cheers all 

- 27 Jul 2012 09:45
- Forum: DOS Batch Forum
- Topic: Striping variable text out of a text file?
- Replies: 12
- Views: 7489
Re: Striping variable text out of a text file?
yep, the actual file contents are as follows, each line has the '>' symbol at the beginning:
>cn: John Smith
>homeDirectory: \\server\username1
>sAMAccountName: username1
>cn: John Smith
>homeDirectory: \\server\username1
>sAMAccountName: username1
- 27 Jul 2012 08:23
- Forum: DOS Batch Forum
- Topic: Striping variable text out of a text file?
- Replies: 12
- Views: 7489
Re: Striping variable text out of a text file?
Hi,
I'm just doing a :
type adoutput.txt | find "sAM"
to get me that output
I'm just doing a :
type adoutput.txt | find "sAM"
to get me that output
- 27 Jul 2012 07:57
- Forum: DOS Batch Forum
- Topic: Striping variable text out of a text file?
- Replies: 12
- Views: 7489
Striping variable text out of a text file?
Hi, I've got a script which is outputting a load of user attributes from an Active Directory. I've got to it to a point where i have the contents of the text file as follows: >sAMAccountName: username1 >sAMAccountName: username2 >sAMAccountName: username3 >sAMAccountName: username4 >sAMAccountName: ...