ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: Run bat files transparently

<< < (3/3)

Hirudin:
Hi,

In Fbsl you just have to do that :

--- ---StrPipe( "CMD.exe /K test.bat", SW_HIDE )

Into the bat file you can do such code :

--- ---@echo off
Echo Hello World! > log.txt

Your bat will be executed silently and without any console output thanks to thr SW_HIDE parameter :)

The StrPipe has more extends in Fbsl, you can redirect the piped process to any valuable Handle, that is to say it's very handy to grab a result from something that writes into stdout :)

Enjoy ;)
-Gerome (February 15, 2006, 05:55 PM)
--- End quote ---
I think this is definately the way to go if all you want is a log of what was done. You don't need to program anything, you don't need to use another program, all you have to do is add something like "> log.txt" to the end of the commands in your batch file.

From the little I've used this, it pretty much puts whatever would be "written" in the DOS window into a file instead.

Here's some more info, directly from Microsoft.

Navigation

[0] Message Index

[*] Previous page

Go to full version