Search found 160 matches

by MKANET
27 May 2012 13:58
Forum: DOS Batch Forum
Topic: Looking for a way to show Splash Screen logo
Replies: 6
Views: 16756

Looking for a way to show Splash Screen logo

Im looking for a third party utility that can display a logo image before starting the batch file. ABF Splash Screen does this perfectly however the registered version is impossible to get. Splash Screen Machine is also abandoned by the author. Im hoping for an open source app that does this. Anythi...
by MKANET
23 May 2012 16:25
Forum: DOS Batch Forum
Topic: find command not working as expected
Replies: 10
Views: 7173

Re: find command not working as expected

It worked brilliantly.. Thanks aGerman!!
by MKANET
23 May 2012 16:16
Forum: DOS Batch Forum
Topic: find command not working as expected
Replies: 10
Views: 7173

Re: find command not working as expected

Thanks. I'd like to test it out. But, but I still need to somehow specify the tab key twice in "string 2" Is it sufficient to count the found lines? Untested set /a n=0 for /f %%i in ('mt.exe mediastatus tape0^|findstr /c:"string 1" /c:"string 2"') do set /a n+=1 echo %...
by MKANET
23 May 2012 15:53
Forum: DOS Batch Forum
Topic: find command not working as expected
Replies: 10
Views: 7173

Re: find command not working as expected

Could you show me please? I have no idea how to do that. Im not sure how to do && conditional execution. Lets supposed I first need to check for "Capacity" string from the output. If that's true, then to check whether "write protected :NO" was found or not (from the same ...
by MKANET
23 May 2012 15:47
Forum: DOS Batch Forum
Topic: find command not working as expected
Replies: 10
Views: 7173

Re: find command not working as expected

aGerman, that was a great idea! Hexedited the output that was saved to a file. There are two tab spaces exactly

"Write ProtectedTABTAB: No"
by MKANET
23 May 2012 15:01
Forum: DOS Batch Forum
Topic: find command not working as expected
Replies: 10
Views: 7173

Re: find command not working as expected

Hi aGerman, it looks like there is something else wrong. The firststr can't find that string of text either. Is it because there's a tab in between? However, when I copy and paste that string of text; I only get spaces, I dont get a tab. So, if there's tabs there, they are invisible to me. If it is ...
by MKANET
23 May 2012 14:38
Forum: DOS Batch Forum
Topic: find command not working as expected
Replies: 10
Views: 7173

find command not working as expected

The below command-line produced the following respective output Command-line: mt.exe mediastatus tape0 Output: Capacity (Bytes) : 0x32f2800000 (218816839680) Remaining (Bytes) : 0x31bfd00000 (213671477248) Block Size : 0x00000200 (512) Partition Count : 0x00000000 (0) Write Protected : No Current Pa...
by MKANET
18 May 2012 21:20
Forum: DOS Batch Forum
Topic: Interactive Remote command execution through wmic
Replies: 7
Views: 17376

Re: Interactive Remote command execution through wmic

Edit: For whatever reasons, there seems to be some limitations using microsoft's psexec.exe and even WMI. The problems may be either related to permissions/timing during redirected output, etc. My solution.... remote execution with the help of windows scheduler! Command execution is much more reliab...
by MKANET
18 May 2012 17:33
Forum: DOS Batch Forum
Topic: Interactive Remote command execution through wmic
Replies: 7
Views: 17376

Re: Interactive Remote command execution through wmic

AGerman, I think that error must come from wmi. Maybe Microsoft's Psexec.exe uses wmi as well? I guess it also very important what's being sent to the remote console that needs to be echoed back. One of the commands I send to psexec has a comma in it. It appears that the wmi command gets confused ev...
by MKANET
18 May 2012 15:08
Forum: DOS Batch Forum
Topic: Interactive Remote command execution through wmic
Replies: 7
Views: 17376

Re: Interactive Remote command execution through wmic

Thanks for the quick reply aGerman. I just used finding a file as an example to make things simpler to explain. Since I have your attention, maybe you can still help. I am ultimately trying to to execute commands on remote machines conveniently. I thought psexec would work (System Internals utility)...
by MKANET
18 May 2012 12:21
Forum: DOS Batch Forum
Topic: Interactive Remote command execution through wmic
Replies: 7
Views: 17376

Re: Interactive Remote command execution through wmic

In case there's no way to do what I want within wmic, I would like to make something that does it for me; however, I'm still running into a problem... I can't take the result from call :Remoteexec and redirect it to the find command. call :RemoteExec "dir c:\" | find file.txt REM REMOTE EX...
by MKANET
18 May 2012 11:48
Forum: DOS Batch Forum
Topic: Interactive Remote command execution through wmic
Replies: 7
Views: 17376

Interactive Remote command execution through wmic

I'm very new to using wmic. I would like to redirect the output of a remotely executed command to my local PC. Currently, I have to write to a temp file located on the remote machine in order to see the result. wmic /node:S8DCAB1 process call create "cmd.exe /c dir c:\ >C:\Windows\Temp\result.t...
by MKANET
17 May 2012 22:09
Forum: DOS Batch Forum
Topic: psexec and ERROR: Input redirection...
Replies: 1
Views: 4357

psexec and ERROR: Input redirection...

I'm not sure if this post is outside the scope/expertise of the gurus here. So, I thought I would ask anyway. I've been using psexec.exe alot in my scripts latetly to conveniently execute processes on remote servers. However, recently, I received the error message when running my batch file. However...
by MKANET
12 May 2012 22:15
Forum: DOS Batch Forum
Topic: How to sort numbers in a text file?
Replies: 19
Views: 16925

Re: How to sort numbers in a text file?

It turned out being easier to just change a single line. Surprisingly this worked! If I wasn't able to find such a quick solution, I would have to abandon using the forfiles command and add more lines of code to take it's place. for /f tokens^=1^,2^ eol^=^"^ delims^=^" %%a in (files.txt) A...
by MKANET
12 May 2012 21:47
Forum: DOS Batch Forum
Topic: Getting free space of a mapped network drive in GBs
Replies: 17
Views: 15423

Re: Getting free space of a mapped network drive in GBs

It looks like there might be something wrong with MB conversion. When the original value in bytes is too low, converted MB value is rounded off to a whole number: freespace=5999999 I get 11.01MB's freespace=4999999 The result is 9.00MB's freespace=4494567 The result is 8.00MB's freespace=3599999 The...