Search found 442 matches

by orange_batch
12 Dec 2011 14:16
Forum: DOS Batch Forum
Topic: How to get access to a system without typing system pasword?
Replies: 2
Views: 3113

Re: How to get access to a system without typing system pasw

BartPE and Ultimate Boot CD are both capable of removing passwords on user accounts. I don't know if it works on anything higher than XP, you'll have to look yourself.
by orange_batch
12 Dec 2011 14:06
Forum: DOS Batch Forum
Topic: Renaming files using another file name
Replies: 4
Views: 4554

Re: Renaming files using another file name

%i:~0,16% %%i:~0,16% This isn't acceptable syntax @echo off&setlocal enabledelayedexpansion del digfiles.txt dir diagram*-content.html /B /O :N >digfiles.txt FOR /F "tokens=1, 2, 3*" %%i in (digfiles.txt) do ( echo %%i %%j %%k %%l set "i_var=%%i" echo.!i_var:~0,16! dir ..\im...
by orange_batch
12 Dec 2011 13:58
Forum: DOS Batch Forum
Topic: Running a batch in Windows Vista, 7 and higher (Future)
Replies: 1
Views: 2922

Re: Running a batch in Windows Vista, 7 and higher (Future)

Some command outputs are different, such as reg. You'll have to test for errors.

Also, newer Windows have more tools. May be missing some old ones but I'm not sure.
by orange_batch
12 Dec 2011 13:54
Forum: DOS Batch Forum
Topic: I'm new and need help. Running a remote file
Replies: 1
Views: 3214

Re: I'm new and need help. Running a remote file

Share the folder you download the update to over your network. On the other computers, without need of credentials, it's as easy as: "\\Server Name\Share\update.exe" It can't interact with any update agreements or clicking yes though, but you could write a VBScript to go with the batch if ...
by orange_batch
12 Dec 2011 13:46
Forum: DOS Batch Forum
Topic: Speed Writing a File
Replies: 17
Views: 18254

Re: Speed Writing a File

Yeah, long scripts. It should speed up the goto command at least.

My current project keeps fluctuating as I add and remove modules but at the moment the main script is 30,984 bytes (921 lines) including comments, blank lines and all.
by orange_batch
11 Dec 2011 13:44
Forum: DOS Batch Forum
Topic: use ie to google all running tasks (for tokens delims)
Replies: 3
Views: 4307

Re: use ie to google all running tasks (for tokens delims)

for /f "delims=, tokens=1" %%a in ('tasklist /fo csv /nh') do start iexplore "http://www.google.com/search?q=%%~a" My version of IE is 7 because I don't use it. Maybe newer versions support multiple websites via arguments like Firefox does. In that case, I would use this: @echo ...
by orange_batch
11 Dec 2011 02:46
Forum: DOS Batch Forum
Topic: String encrytion and decryption
Replies: 11
Views: 16159

Re: String encrytion and decryption

Thanks Dave, I really didn't have the time or patience for this one. :P

I'll be writing another complex encryptor/decryptor myself fairly soon I think.
by orange_batch
10 Dec 2011 11:17
Forum: DOS Batch Forum
Topic: Help with context menu
Replies: 6
Views: 7022

Re: Help with context menu

It requires a context menu handler, which is a C++ programmed DLL. I've looked into it extensively myself, it only confused the heck out of me why it's so complex. It's beyond my capability. There's only 3 things you can do currently: 1. Keep it as-is, the 6 menu items (non-cascade). 2. Put shortcut...
by orange_batch
10 Dec 2011 04:24
Forum: DOS Batch Forum
Topic: String encrytion and decryption
Replies: 11
Views: 16159

Re: String encrytion and decryption

I see, however your for loops are still broken in the above code. I suppose they should be like?: for /f "tokens=1 delims=:" %%a in ('"findstr /n /c:"^%chr%" etable.etb"') do ( set val=%%a set /a val+=%encrypt_type% ) for /f "tokens=2 delims=þ" %%b in ('findst...
by orange_batch
10 Dec 2011 03:23
Forum: DOS Batch Forum
Topic: String encrytion and decryption
Replies: 11
Views: 16159

Re: String encrytion and decryption

I don't recommend using ! " ^ % in your encryption table. Also, your for s are broken. Format: for /f "..." %%a in ('command') do ( Code goes here. ) Also, '"findstr /n /c:"^%chr%" etable.etb"' should be 'findstr /n /c:"%chr%" etable.etb' I can't follow w...
by orange_batch
10 Dec 2011 02:46
Forum: DOS Batch Forum
Topic: Finding and replace an string in a text file
Replies: 3
Views: 4703

Re: Finding and replace an string in a text file

Did you try replacing the inner text with a quotation mark? Such as set "find="" or set "replace=""

In the second script, it had a bug but I fixed it.
by orange_batch
09 Dec 2011 21:58
Forum: DOS Batch Forum
Topic: String encrytion and decryption
Replies: 11
Views: 16159

Re: String encrytion and decryption

It depends how you encrypt it and your method of doing so. We can't help without code examples.
by orange_batch
09 Dec 2011 21:57
Forum: DOS Batch Forum
Topic: XCOPY folder wildcard?
Replies: 13
Views: 22274

Re: XCOPY folder wildcard?

K, I'll test it myself. Oh man. I overwrote the path environment variable. Code fixed. PS: If C:\Backup doesn't exist and you want to avoid xcopy from asking if it's a file or directory, change xcopy to echo(d|xcopy and add >nul after all the switches. This is safe even if Backup does exist.
by orange_batch
09 Dec 2011 20:26
Forum: DOS Batch Forum
Topic: Trouble with ftp batch file.
Replies: 6
Views: 5922

Re: Trouble with ftp batch file.

Is there more to your script? What you've given doesn't have any indication of being problematic.
by orange_batch
09 Dec 2011 19:47
Forum: DOS Batch Forum
Topic: XCOPY folder wildcard?
Replies: 13
Views: 22274

Re: XCOPY folder wildcard?

Oh pff, it's the second set of arrays too. I overlooked it. Edited again. Wildcard for drive letters too... Ok, here's your new script: @echo off&setlocal enabledelayedexpansion for %%x in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do ( if exist "%%x:\Users\" ( set /a drives...