Search found 187 matches

by Fawers
05 Jun 2012 12:13
Forum: DOS Batch Forum
Topic: DOS and VBScript - A Better Interaction?
Replies: 18
Views: 14879

Re: DOS and VBScript - A Better Interaction?

@Squashman I've done some quick reading on a few PowerShell tutorials, and it looks really interesting. I'll probably want to get more acquainted to it in the future. Right now I'm studying Python, and it also offers GUI support. Besides, it's cross-platform (which is very interesting). Anyway, all ...
by Fawers
04 Jun 2012 14:00
Forum: DOS Batch Forum
Topic: **Dialog pop-up box after Install**
Replies: 21
Views: 15924

Re: **Dialog pop-up box after Install**

Thanx for the response Fawers ... after some Googling I rediscoverd the pipe command that does what I need to run all my files in sequence.. :Execute programs simultaneously with the pipe (|) symbol and as oneliner. XviD-Dec.exe /S | ping -n 1 127.0.0.1 >nul | taskkill /f /im XviD-Dec.exe>nul start...
by Fawers
04 Jun 2012 09:59
Forum: DOS Batch Forum
Topic: **Dialog pop-up box after Install**
Replies: 21
Views: 15924

Re: **Dialog pop-up box after Install**

1.I know my script may be a little over the top but it does not require a file name for my .exe 2.The Supressmsgbox switch is from m 3.and CD because once everything in my directory is working I will then create a SelF eXtracting (SFX) Archive File using WinRAR or 7-Zip for my silent unattended ins...
by Fawers
03 Jun 2012 21:53
Forum: DOS Batch Forum
Topic: **Dialog pop-up box after Install**
Replies: 21
Views: 15924

Re: **Dialog pop-up box after Install**

/SUPPRESSMSGBOXES=%CD%

What on Earth is that? Why is the current directory the value for "supressmsgboxes"?
by Fawers
03 Jun 2012 18:16
Forum: DOS Batch Forum
Topic: DOS and VBScript - A Better Interaction?
Replies: 18
Views: 14879

Re: DOS and VBScript - A Better Interaction?

And the other 2 links (forum allows only 2 URLs/post)
http://dl.dropbox.com/u/2332600/Scripts ... msgbox.txt - Standard MsgBox
http://dl.dropbox.com/u/2332600/Scripts ... output.txt - Output (using inputBox)

The reason I get the current code page and run CHCP 1252 is because I write my codes directly in OEM code page (which means, output would be only messed text if special characters exist)
by Fawers
03 Jun 2012 18:07
Forum: DOS Batch Forum
Topic: DOS and VBScript - A Better Interaction?
Replies: 18
Views: 14879

Re: DOS and VBScript - A Better Interaction?

The ones I wrote work in a similar way, foxidrive. The main difference is that I use a Wscript.ECHO to get any output.

Edit: links to the source-codes (in .txt files)
http://dl.dropbox.com/u/2332600/Scripts ... choice.txt - Choice
http://dl.dropbox.com/u/2332600/Scripts ... sinput.txt - Input
by Fawers
03 Jun 2012 14:33
Forum: DOS Batch Forum
Topic: DOS and VBScript - A Better Interaction?
Replies: 18
Views: 14879

Re: DOS and VBScript - A Better Interaction?

I've read somethings about Powershell, Squashman, and it looks very promising.
But I thought it was a console-like language. Does it have support for graphical interfaces?
by Fawers
03 Jun 2012 11:50
Forum: DOS Batch Forum
Topic: DOS and VBScript - A Better Interaction?
Replies: 18
Views: 14879

Re: DOS and VBScript - A Better Interaction?

Well, it's an old new thing to combine Batch with other languages but it was never that popular. In my opinion the interaction via keyboard is much faster than flailing with the mouse cursor. Interaction is not a matter for me to use it. Also it wastes a lot of time to call a VBScript. There are ot...
by Fawers
03 Jun 2012 09:56
Forum: DOS Batch Forum
Topic: DOS and VBScript - A Better Interaction?
Replies: 18
Views: 14879

DOS and VBScript - A Better Interaction?

Hello, all. In this topic I'd like to talk about user interaction: making us of both .bat or .cmd files with .vbs scripts. I'm thinking of some methods to make users interact with a Visual Basic Scripting message box or even with an input box within a batch file. There are 2 (two) questions and 2 (t...
by Fawers
02 Jun 2012 22:22
Forum: DOS Batch Forum
Topic: error in for loop
Replies: 18
Views: 12364

Re: error in for loop

Since his %tab% has only one space, he doesn't even need to store it in a variable, nor define a delimiter, as a blank space is the default delimiter in a FOR /F.
by Fawers
01 Jun 2012 23:07
Forum: DOS Batch Forum
Topic: How to use output of last command
Replies: 7
Views: 5386

Re: How to use output of last command

Squashman wrote:
Fawers wrote:True.

0 :mrgreen:

I C what you did there. :P
by Fawers
01 Jun 2012 16:12
Forum: DOS Batch Forum
Topic: Echoing text in same position on screen
Replies: 2
Views: 3086

Re: Echoing text in same position on screen

Maybe you can use strLen to extract both strings lenght, and then calculate more or less the amout of spaces you need.

edit: link to strLen: http://www.dostips.com/DtCodeCmdLib.php#Function.strLen
by Fawers
01 Jun 2012 16:08
Forum: DOS Batch Forum
Topic: How to use output of last command
Replies: 7
Views: 5386

Re: How to use output of last command

skwirrel wrote:it's always cooler when you can run something you made yourself :).

True.
by Fawers
31 May 2012 14:13
Forum: DOS Batch Forum
Topic: Batch Files! What is the most absurd you've seen?
Replies: 7
Views: 6395

Re: Batch Files! What is the most absurd you've seen?

foxidrive wrote:

Code: Select all

@echo off
echo Hello World>nul

That's most like "Hello void/null". heheh
by Fawers
31 May 2012 14:11
Forum: DOS Batch Forum
Topic: Batch Files! What is the most absurd you've seen?
Replies: 7
Views: 6395

Re: Batch Files! What is the most absurd you've seen?

Code: Select all

@echo off
echo %cd%^>echo Testing
echo Testing