Create a txt file using batch file in a specific folder

rajeshkumar created the topic: Create a txt file using batch file in a specific folder

@echo off
echo.>”d:\testing\dblank.txt”
This creates a file containing a blank line (CR + LF = 2 bytes).

If you want the file empty (0 bytes)

@echo off
break>”d:\testing\dblank.txt”
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Registering DLLs and MergeMod in batch mode

msiexpert created the topic: Registering DLLs and MergeMod in batch mode
Hello,

I moved to Windows 7 from WinXP and try to build my product on the new platform.
I have several DLLs, which are auto-registered during setup, using ‘Extract registration info from native library’ option with Synchronization at Buildtime.
When I run Advanced installer in normal mode, it build the package without errors, but DLLs are not registered.
When I run it in ‘Run as administrator’ mode they are registered correctly, but then I have another problem.

When I build the package via command line: AdvancedInstaller.com /build myproduct.aip
I’m receiving the following error:
‘Exception – You do not have MergeMod COM server installed on your computer. Please read in Help how to install it.’

I’ve installed all possible SDKs, tried to register several different versions of mergemod.dll (they registered successfully), but nothing helped.

1. Do I really have to run AI in administrative mode?
2. How can I force it work in batch mode?

Tagged :

Batch Program to Shutdown and restart the computer.

batch-program-to-shutdown-restart-computer

Batch Program to Shutdown and restart the computer. 

Restart

echo off

D:\Temp\tmp\SHUTDOWN.EXE /L /R /Y /C

pause  

Shutdown

echo offd:\tmp\SHUTDOWN.EXE /L /Y /C

pause

Tagged : / / / / / / / / / / / /