Search found 18 matches

by sweener
27 Sep 2010 10:59
Forum: DOS Batch Forum
Topic: Need help using the Call command
Replies: 3
Views: 4706

Re: Need help using the Call command

This SHOULD work, but I have run into some things like this before. It could be as simple as an "exit" command or something. Does this first repl_eagan_4_to_5_cwc.cmd script have an "exit" command in it? If not, what happens when you run this script by itself? I put a "pause...
by sweener
21 Sep 2010 11:12
Forum: DOS Batch Forum
Topic: Changing Sound Volume using DOS
Replies: 4
Views: 5691

Re: Changing Sound Volume using DOS

Well, I did a bit more hunting and it turns out the best way to do this via simple automated means callable from DOS is to write a vbscript. Here's a little something I threw together based on some other stuff I found on ye olde internet: 'volControlvbs volUp=WScript.Arguments(0) sender="{UP &q...
by sweener
21 Sep 2010 06:18
Forum: DOS Batch Forum
Topic: Changing Sound Volume using DOS
Replies: 4
Views: 5691

Re: Changing Sound Volume using DOS

Hmmm... which only gets me wondering, "How do third party tools do it?". I may give that a shot if nothing else pops up.
Thanks
by sweener
20 Sep 2010 18:27
Forum: DOS Batch Forum
Topic: Changing Sound Volume using DOS
Replies: 4
Views: 5691

Changing Sound Volume using DOS

Hey, I did do a search on this in the forum and I saw a SendKey method can be used to mute the volume, but I am interested in controlling the volume via batch, not just muting and unmuting.

Any ideas?

Thanks!
by sweener
29 Jan 2010 13:16
Forum: DOS Batch Forum
Topic: Dir command Output into a Text file
Replies: 2
Views: 4513

Re: Dir command Output into a Text file

You could try something like this: SET directory=\\server\data\jan-2010 FOR /F "tokens=*" %%I in ('dir %directory% /ad /b') DO dir "%directory%\%%I" /a-d /b >> dir.txt You could even play with the /s switch in the dir command to parse through layers of subfolders. Is this any help?
by sweener
29 Jan 2010 12:59
Forum: DOS Batch Forum
Topic: Manual vs. automated execution problems
Replies: 2
Views: 4185

Manual vs. automated execution problems

I have an audit process that I developed and I made a tweak to it and now it doesn't work as expected when run as a scheduled task. I search for a string in a file and save the output in a temporary file. Here's what I see in the output when automated: ---------- D:\PATH\FILE.TXT: 0 but when run man...
by sweener
19 Jan 2010 07:59
Forum: DOS Batch Forum
Topic: strLen Subroutine in Windows 2000 doesn't work
Replies: 7
Views: 10334

Why didn't I think of that? I guess because I was too hung up on making the bitwise work. But looking at it, it looks logical, although I'll bet it is not as fast as the bitwise operation but I would only need to check smaller stings (up to 40 - 50 chars at most).

Thanks!
by sweener
18 Jan 2010 08:00
Forum: DOS Batch Forum
Topic: strLen Subroutine in Windows 2000 doesn't work
Replies: 7
Views: 10334

SETLOCAL ENABLEEXTENSIONS was already in my script. It may just be a variance between DOS 5.0 (Server 2k) and DOS 5.1 (Win XP). Any ideas?
by sweener
16 Jan 2010 11:14
Forum: DOS Batch Forum
Topic: strLen Subroutine in Windows 2000 doesn't work
Replies: 7
Views: 10334

That is what appears to be the case. I have only had issues with bitwise operations using SET /A. Is it possible that Server 2000 and XP also have different CMD.EXE, and both systems understand "SET /A ...", but in different ways ? If the two work differently, I'll have to find a work arou...
by sweener
16 Jan 2010 07:34
Forum: DOS Batch Forum
Topic: SPAM ALERT via P.M.
Replies: 6
Views: 8848

Thanks alan_b,

I got the same thing, I ignored it and wondered if it were directed to more than myself. I'll drop a note to an admin
by sweener
14 Jan 2010 08:59
Forum: DOS Batch Forum
Topic: Clear Contents of a Log File using Batch Script
Replies: 3
Views: 8413

Was it just a command process that piped into the log? What you have is potentially a prompt like 'Overwrite File(Y/N)?' in a background process, so what I have done is use TSKILL after finding the PID associated with the log. You can try QUERY PROCESS * to list all active processes and their IDs (N...
by sweener
11 Jan 2010 13:05
Forum: DOS Batch Forum
Topic: Check, obtain IP and open internet explorer by batch file
Replies: 7
Views: 9415

Hmmm, do you get a blank page when you try it without 'forum' as an argument to the batch? And when you do it with 'forum' does it say "Page Not Found" followed by some other info? It works for other websites... Replace Dostips.com in your script with another known URL... I dunno if it is ...
by sweener
09 Jan 2010 20:46
Forum: DOS Batch Forum
Topic: Task Kill
Replies: 4
Views: 6405

That is a really cool resource! But all I was saying is that in an effort to kill some hanging background processes on a server at work, I came across TASKKILL but it was useless to me because it was not a recognized command on Windows Server 2000. Same thing with my home edition XP. But TSKILL work...
by sweener
09 Jan 2010 11:10
Forum: DOS Batch Forum
Topic: Task Kill
Replies: 4
Views: 6405

You would have to use TSKILL if using a home version of Windows XP... or in Windows Server 2000 at least that's been my experience. TSKILL is a bit different from TASKKILL

If !k's suggestion isn't enough, I can help. Or at least make an attempt.
by sweener
09 Jan 2010 10:28
Forum: DOS Batch Forum
Topic: Check, obtain IP and open internet explorer by batch file
Replies: 7
Views: 9415

You could do something like this but there are several approaches: @ECHO OFF nslookup dostips.com 8.8.8.8|findstr "Address:" > tmp.txt FOR /F "tokens=2 skip=1 delims=: " %%d in (tmp.txt) do SET targetip=%%d ::NOTE the <SPACE> in the delims part "%IEXPLORERPATH%\IEXPL...