Search found 11 matches

by InterociterOperator
24 May 2012 19:09
Forum: DOS Batch Forum
Topic: batch login system help :)
Replies: 12
Views: 17178

Re: batch login system help :)

You have to have the "Choice" command available from the command prompt for the code to work.
by InterociterOperator
29 Aug 2011 19:59
Forum: DOS Batch Forum
Topic: easiest way to recursively copy C: to E: ?
Replies: 2
Views: 3967

Re: easiest way to recursively copy C: to E: ?

Try...

XCOPY C:\*.* E:\*.* /v /s /e /c /g /h /k /r /y /z

but good luck with sharing violation messages... :)
by InterociterOperator
29 Aug 2011 19:50
Forum: DOS Batch Forum
Topic: replace a string in a file and then save file with new name
Replies: 4
Views: 6927

Re: replace a string in a file and then save file with new n

What if we save the file with a new name and THEN replace a string? I would cheat and program in Edlin, which has been part of DOS since the beginning. Make a copy of your original file with a copy command and work from it. copy Members.txt Names.txt Now say we want to find "Harry" in our ...
by InterociterOperator
29 Aug 2011 19:17
Forum: DOS Batch Forum
Topic: batch file does not run under task scheduler
Replies: 3
Views: 4756

Re: batch file does not run under task scheduler

Double check complete path to executable for typos.
by InterociterOperator
11 Mar 2011 17:18
Forum: DOS Batch Forum
Topic: file splitting
Replies: 16
Views: 17468

Re: file splitting

Oh geez. The Submit button is so smart. As soon as I hit it the answer pops up. Data file with two occurrences of DDAN Directory of Y:\DDAN\Desktop Backups\2010-02-27 26/08/2009 09:53 AM 4,707,780 101_0159.AVI 26/08/2009 09:54 AM 6,794,386 102_0213.AVI 2 File(s) 11,502,166 bytes Directory of Y:\SJOH...
by InterociterOperator
11 Mar 2011 16:57
Forum: DOS Batch Forum
Topic: file splitting
Replies: 16
Views: 17468

Re: file splitting

aGerman,

You got the username to filename perfectly, but does it capture multiple directories with the same user name in one file?

"If the user name is repeated it needs to append to the same file."

What do we have to tweak to get it to do that.
by InterociterOperator
09 Mar 2011 21:28
Forum: DOS Batch Forum
Topic: file splitting
Replies: 16
Views: 17468

Re: file splitting

dang.... up at the top...

Code: Select all

if exist file?.txt del file?.txt


would be ...

Code: Select all

if exist file*.txt del file*.txt


. ... also.
by InterociterOperator
09 Mar 2011 21:19
Forum: DOS Batch Forum
Topic: file splitting
Replies: 16
Views: 17468

Re: file splitting

You guys make my head hurt. The closest I could come to what you want is to figure out the shortest user name (4 characters) and use that in a revised set command. Instead of if defined dest set dest=!dest:~-1! I used if defined dest set dest=!dest:~16,4! ...which counts from the left 16 characters ...
by InterociterOperator
08 Mar 2011 12:46
Forum: DOS Batch Forum
Topic: batch login system help :)
Replies: 12
Views: 17178

Re: batch login system help :)

What is the best way to get the length of a variable for later manipulation?
by InterociterOperator
28 Feb 2011 21:45
Forum: DOS Batch Forum
Topic: batch login system help :)
Replies: 12
Views: 17178

Re: batch login system help :)

In the editor, the following line wraps. Disregard the remark above about it wrapping choice /n /t:-,99 /c:ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890- "-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" looks like... choice /n /t:-,99 /c:ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890- "-XXX...
by InterociterOperator
28 Feb 2011 21:41
Forum: DOS Batch Forum
Topic: batch login system help :)
Replies: 12
Views: 17178

Re: batch login that shows "*"'s

If you have the CHOICE.com program on your machine, here is one bit of trickery to get *'s that we used. It isn't very secure really - more for fun than anything else. Copy it to notepad and give it a run. A bit long, but it doesn't echo your entire password to the screen. A-Z (except "x")...