|
Is the PC on a Server 2003 domain with AD?
"We are all repositories for genetically-encoded information that we're all spreading back and forth amongst each other, all the time. We're just lousy with information."
- Neal Stephenson
|
|
|
|
|
At the start of a pc every one will give a password to login(its not mandatory) where that password will store in that pc?....
|
|
|
|
|
|
I need a menu that will axiomatically close after 10 seconds but if you press enter then it lunches other batch file...
I did this for now:
@ECHO OFF<br />
TITLE Menu<br />
:MENU<br />
ECHO ----------------------------------------<br />
ECHO Press "ENTER" to enter setup menu...<br />
ECHO ----------------------------------------<br />
ECHO .<br />
ECHO Type Q to Quit immediately<br />
ECHO .<br />
<br />
set INPUT=<br />
Set /P INPUT=">"<br />
If "%input%"=="" goto runother<br />
If /I "%input%"=="Q" goto QUIT<br />
<br />
:runother<br />
CLS<br />
batchmenu2.bat
All of this works but i need a delay that after 10 seconds this automatically closes...
Anny one can help? :->
|
|
|
|
|
I dont think you will be able to do that directly from cmd commands inside the bat file.. But you could make it run some VB scripts which then sleep for 10 secs and then closes the cmd.exe process or alike (! if there are never any others..)
It was a long time ago i worked with *.vbs files from within cmd but i do remember you can do stuff like sleep, emulate keys etc so it should be possible one way or another
//Johannes
|
|
|
|
|
|
please tell me in easy way how to build a windows mobile os. Is the required tool platform builder?
|
|
|
|
|
|
any software I can use to scan workstations in my network for illegal/privated software? We want to make sure all software installed are licensed and we've paid for them
recommendation?
|
|
|
|
|
Well, you won't be able to scan a machine for pirated software, because how do you know what's pirated and what isn't?
What you really need to do is keep a database of all the licenses you purchase, then use a scan tool to compare install count of applications against your database.
I've previously used HP's Enterprise Discovery and Assetcenter to do this. Most systems management tools will be able to collect installed software information from a machine.
|
|
|
|
|
This can not be a one-step process.
1) You need to ensure comparing inventory with Add Remove Programs Applet
2) Network MOnitoring in case some installed Spyware sends network info.
3) A Windows Service to scan additional EXEs can help.
|
|
|
|
|
Hello allof U
When I want to update my Antivirus software,error occured as follow ..
Failed to initialize comman Update subsystem.make sure
the McAfee Framework services is running.
McAfee comman Framework returned error fffffd1f@3
Please Give me solution .
Thanks for this .
nilesh
|
|
|
|
|
Try To rebot or reinstall, and check firewall
|
|
|
|
|
|
Hi I want to monitor a "DIRECTORY" if any log file is writing to it: "Error : xxx" - if located, a specified Exe can be triggered to execute.
Anyone suggest a tool with which this objective can be accomplished?
I also tried to accomplish the same by:
<br />
for /f "eol=; tokens=*" %%x in (C:\temp\*.log) do if "%%x" CONTAINS "error" LogMonAction.exe<br />
Basically I tried to monitor all log files in C:\temp directory, if any log file created/updated since last night, execute "LogMonAction.exe" or another log file.
Problem with above script is, there's no such comparison operator "CONTAINS", and you cant do this on a DIRECTORY. And let aside the additional requirement - only files updated/created since last night.
Reference:
(a) If statement: http://www.robvanderwoude.com/if.html
(b) Textlog Monitor: http://www.sharewareconnection.com/text-log-monitor.htm
|
|
|
|
|
|
Hey know how to do this? It's a MS DOS batch file, I'm having trouble computing "Yesterday" and xcopy /D date command - I want all files updated since yesterday.
<br />
SET YESTERDAY= %DATE% -1 ----- how do I compute *yesterday*?<br />
SET USERNAME=someguy<br />
xcopy %LOGFILEDIR% %SHAREDIR%\%YESTERDAY%\%USERNAME% /e /I /C /K /D:%YESTERDAY%<br />
Bolded part is where the problem is ... Also /D switch takes the following format:
<br />
/D:8-29-2007
Reference: xcopy
|
|
|
|
|
Wow that is long as you said I found this our "examples" on our dev server at work and I don't remember where it is from...
for /f "tokens=2" %%g in ('date /t') do set datesplit=%%g
set mm=%datesplit:~0,2%
set dd=%datesplit:~3,2%
set yyyy=%datesplit:~6,4%
echo %mm%
echo %dd%
echo %yyyy%
set /A dd=%dd% - 1
set /A mm=%mm% + 0
if /I %dd% GTR 0 goto FINISH
set /A mm=%mm% - 1
if /I %mm% GTR 0 goto ADJUST
set /A mm=12
set /A yyyy=%yyyy% - 1
:ADJUST
if %mm%==1 goto SET31
if %mm%==2 goto LEAPCHK
if %mm%==3 goto SET31
if %mm%==4 goto SET30
if %mm%==5 goto SET31
if %mm%==6 goto SET30
if %mm%==7 goto SET31
if %mm%==8 goto SET31
if %mm%==9 goto SET30
if %mm%==10 goto SET31
if %mm%==11 goto SET30
if %mm%==12 goto SET31
goto ERROR
:SET31
set /A dd=31 + %dd%
goto FINISH
:SET30
set /A dd=30 + %dd%
goto FINISH
:LEAPCHK
set /A tt=%yyyy% %% 4
if not %tt%==0 goto SET28
set /A tt=%yyyy% %% 100
if not %tt%==0 goto SET29
set /A tt=%yyyy% %% 400
if %tt%==0 goto SET29
:SET28
set /A dd=28 + %dd%
goto FINISH
:SET29
set /A dd=29 + %dd%
:FINISH
if /i %dd% LSS 10 set dd=0%dd%
if /I %mm% LSS 10 set mm=0%mm%
rem here you can format how you like, from above it should be
set YESTERDAY=%mm%-%dd%-%yyyy%
echo %YESTERDAY%
|
|
|
|
|
Thanks! You saved my life!
|
|
|
|
|
How about a quick .VBS file? That would be pretty more simpler. Isn't it?
|
|
|
|
|
from my co worker
any suggestions?
Its on win2k server
bryce
=======
Hi,
Is anyone a DOS scripting expert? We need help with the script below. The kill processes at the bottom are hanging if the process does not exist. Does anyone know of a way of only killing the process if it exists? Any sort of help with error checking would be useful too.
Thanks,
===========
@echo ~~~~~ Start StopWeb.Bat ~~~~~
@echo --------------------------------
@echo Shutdown normally
@echo --------------------------------
net stop rcom
net stop "GeoMedia WebMap"
net stop "FTP Publishing Service"
net stop "Simple Mail Transport Protocol (SMTP)"
net stop "Network News Transport Protocol (NNTP)"
net stop "World Wide Web Publishing Service"
net stop "IIS Admin Service"
@echo -------------------------------------
@echo Kill processes that did not shut down
@echo -------------------------------------
kill -f rcom.exe
kill -f gwmadmin
kill -f gdccachedwareho*
kill -f mapsvr.exe
kill -f mapsvrmngr.exe
kill -f inetinfo.exe
@echo ~~~~~ End StopWeb.Bat ~~~~~
|
|
|
|
|
You need to use tasklist along with a filter to find out if the task exists. If it does, you can kill it.
This discussion on a very similar topic[^] may be helpful in solving your problem.
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
net stop iisadmin /y is a better solution, if it's supported on Windows 2000. It stops the IIS Admin Service and all the other services which depend on it. I've never had to kill the inetinfo process.
We do use net stop in a shutdown batchfile on our DC/Exchange server as, when Exchange is installed on the DC, the Exchange service and Active Directory seem to get into a deadly embrace and Windows takes half an hour to shut down.
Perhaps try PsKill[^] rather than kill ?
(Small pet peeve: it's not DOS. cmd.exe is a native 32- or 64-bit Windows console application. So for that matter are net.exe and kill.exe. Regular Windows applications can create consoles if they want to, and console applications can be run without a visible console if the appropriate flags are passed to CreateProcess . Windows x64 has no DOS compatibility as the required processor sub-mode is not present in 64-bit mode and Microsoft didn't consider it worthwhile to write an emulator. Even some Windows command-line utilities with a .com file extension are actually Windows console-mode EXEs.)
|
|
|
|
|
Hi all,
Can u give me the link of multiple Skype .
Thanks all of You for this .
nilesh
|
|
|
|
|