Posts Tagged ‘cmd’


Throwback Thursday: Making batch files into executables

Thursday, October 30th, 2014 by Alex Riedel
PrimalScript 2014 can make a variety of script files into executable files. We call that packaging. This feature is mostly used by VBScript and PowerShell administrators to wrap their scripts into an executable file that can be shipped to end users and prevent prying eyes from seeing what makes the magic happen. For the aforementioned VBScript and PowerShell scripts this usually means a package that executes the code in memory, without the use of a temporary file. We did however receive quite a number of requests lately to also package Batch or CMD files. Here is where the “Throwback Thursday”…   More »

Code pages, batch files and localization

Thursday, June 30th, 2011 by Alex Riedel
PrimalScript 2011 treats everything as Unicode files, so when you open an ASCII file it will be converted to Unicode and then converted back to ASCII when saving. Any conversion to and from Unicode requires a code page, which tells the converter which characters get converted to what. The default Windows code page is 1252 ( and usually this back and forth conversion goes unnoticed. An ASCII VBScript file for example which gets saved with this conversion will not produce any problem, as CScript and WScript use the same code page when writing to the console. So basically the characters…   More »

Up a Tree

Tuesday, March 24th, 2009 by Jeffery Hicks
One of the first CMD commands I fell in love with (yes I'm that geeky) was TREE. When executed from a command prompt it would give you a nice graphical representation of the directory structure. Never being satisfied I wrote a VBScript version years ago. I decided to dust it off and tweak it some. Here is TREE.VBS.   More »

Shell me, Bash me

Wednesday, December 10th, 2008 by Alex Riedel
In the last blog posts you have already seen that PrimalScript 2009 will have an integrated PowerShell command window. With PowerShell storming the charts, command line environments experience a bit of a renaissance. From a script development perspective it makes perfect sense to have a prompt ready in order to try out a command. If you are using any shell scripting language, this can be very convenient. A PowerShell instance As much as we love PowerShell, we did not want to limit you to one specific shell only. So instead of PowerShell you can have good old CMD.exe as your…   More »

Registry queries the easy way

Thursday, February 7th, 2008 by Jeffery Hicks
Another topic that I’ve seen resurface in the forums I frequent is reading remote registries. If you know exactly what you’re looking for it doesn’t get any easier than using REG.EXE from the command line. Here’s how to use it and a batch file ready for you to use.   More »