Search found 8 matches

by viroid
18 Jan 2010 01:52
Forum: DOS Batch Forum
Topic: Net Command Help
Replies: 2
Views: 4494

Under Windows 7, I simply input the password after the username and it accepted it. It did not prompt twice. The syntax is;

net user %username% Password


...v
by viroid
17 Jan 2010 22:00
Forum: DOS Batch Forum
Topic: Newbie needs help for perfect bootdisk
Replies: 1
Views: 3479

I think you are asking how to make it launch the program "bios.exe" on start, correct?

In the autoexec.bat file, prefix "bios.exe" with the drive letter of the cd-rom drive. (i.e. r:\bios.exe)
by viroid
17 Jan 2010 21:31
Forum: DOS Batch Forum
Topic: Need to create a 60 minutes delay in my DOS script
Replies: 9
Views: 14046

Windows 2003 and above all have a command called WAITFOR that can be used to pause for up to 99999 seconds. Its actually used to have server1 wait for a process on server2 to finish, once server2 finishes its process, it broadcast the 'signal' across the network to server1 and then server1 begins/co...
by viroid
17 Jan 2010 18:28
Forum: DOS Batch Forum
Topic: Assistance using Arrays
Replies: 1
Views: 3697

Assistance using Arrays

Hey guys, I'm trying to figure out how to use 'arrays' and I'm having some trouble. I wasn't able to get the :getipconfig function to work under Windows 7; I was using some sample code from another post that pulled .IPAddress from the array call:getIPConfig arr echo.%arr[1].IPv4Address% echo.%arr[2]...
by viroid
12 Jan 2010 20:15
Forum: DOS Batch Forum
Topic: Obtain IP Address (and parse Octets) and Gateway from DOS
Replies: 1
Views: 5821

Obtain IP Address (and parse Octets) and Gateway from DOS

This is really useful for running domain login scripts based on IP Subnet. Six months ago when I was trying to figure out how to do this, I couldnt. Most results on google returned the use of a third party application that needed to be installed on every workstation in the domain in order to process...
by viroid
05 Jan 2010 17:35
Forum: DOS Batch Forum
Topic: Help please
Replies: 7
Views: 8116

I got it working using FOR ...

:LOOP

FOR /F "skip=3 usebackq tokens=1" %%i in (`TASKLIST /FI "IMAGENAME eq CALC.EXE"`) DO (
IF NOT "%%i"=="" Echo Process is Running
SLEEP 1
)

GOTO LOOP
by viroid
05 Jan 2010 16:37
Forum: DOS Batch Forum
Topic: Help please
Replies: 7
Views: 8116

I just attempted to perform a similar function using TASKLIST, it didn't appear to return a different errorlevel when the filter found the task.
by viroid
04 Jan 2010 16:04
Forum: DOS Batch Forum
Topic: Help please
Replies: 7
Views: 8116

I was under the impression that if ELSE was used with IF then it needed to be formatted with parrenthesis... IF ERRORLEVEL 1 (DO ONE) ELSE (DO TWO) IF ERROR LEVEL 1 ( DO ONE ) ELSE ( DO TWO ) Also, I've had issues using GOTO statements within if statements. I've often done something like ECHO. &...