Files and directories user permissions on Windows XP

DOS - Windows Batch Files, Tips No Comments »

You may have some troubles while using a network share on windows because of access restriction errors. Don’t panic, just use CACLS on windows XP.

Read the rest of this entry »

Determine which Windows OS version is running

DOS - Windows Batch Files, Tips No Comments »

Many DOS commands in the 32-bit versions of Windows are similar but support different parameters, different commands or using different registry key name. Thus, if you wish to write a batch file that can run on different types of machines, it may prove beneficial to determine the version of Windows on which the batch file is running. This way the batch file can execute commands appropriate to the operating system.

Read the rest of this entry »

CLI workaround for Windows XP : Doing a pause in a batch script

DOS - Windows Batch Files, Tips 1 Comment »

In our list of “CLI workaround for Windows XP“, a missing command is SLEEP or WAIT. For fixing this I suggest you two solution, first is simply a batch workaround using PING command, the second solution use the Windows Server 2003 Ressource Kit tools.

With PING you can produce a fixed delay by testing the loopback address. This can be really usefull if you don’t want (or if you can’t) install extra software.

# Doing an approximative pause of 60 seconds

PING -n 61 127.0.0.1>nul

Second way is to install the Windows Server 2003 Resource Kit tools from microsoft.com. You will get a SLEEP.exe that will do all the requested stuff.

# Doing a pause of 60 seconds

SLEEP 60

Enjoy. ;-)

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login