This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 8201. |
Solve : Get and use OS name.? |
|
Answer» I'm looking for a command what's doing this. IF the computer where the batch will run has the OS Vista the batch must open 1.cmd. And if the OS is XP the batch must open 2.cmd FOR /f "skip=1 tokens=3" %%i IN ('wmic os get caption') DO if "%%i"=="Vista" GOTO :Menu01 Only if someone have a Vista version (which doesn't matter he must goto menu01). All the other OS versions must goto menu1 (I have set that, not displayed here). So this is enough? The WORD Vista is always set on the third token?yea it should work.. as far as i know it is, Except it's "VistaT". I believe, at least that is what is returned when I type in 'wmic os get caption'.Ok thanks man. I was thinking that Diablo has maked a typo. Another thing: My batch file is very big. I've see that I must make my batch file twice, because there are too many things other for Vista users. Maybe there is an other way. Its most time about a command LIKE this: Quote FOR /f %%i IN ('DIR /b /a:d "%AppData%\Mozilla\Firefox\Profiles"') DO copy "%AppData%\Mozilla\Firefox\Profiles\%%i\*.*" "Profile" I've heard (never RUNS Vista) its must be changed to (say if I'm wrong) Quote FOR /f %%i IN ('DIR /b /a:dh "%AppData%\Roaming\Mozilla\Firefox\Profiles"') DO copy "%AppData%\Roaming\Mozilla\Firefox\Profiles\%%i\*.*" "Profile" So: is there a command that can change all the first commands to the second ones if the output of Quote FOR /f "skip=1 tokens=3" %%i IN ('wmic os get caption') DO if "%%i"=="VistaT" GOTO :Menu??is VistaT ? Many thanksCode: [Select]C:\Users\DeltaSlaya>echo %appdata% C:\Users\DeltaSlaya\AppData\Roaming C:\Users\DeltaSlaya> It appears that Vista includes the roaming folder in the appdata environment variable. Also for me only the 'A' archive setting is present on all the folders in there, I am running vista. Quote cd %appdata%\mozilla\firefox\profiles I don't know but would that work?I can't find out of that works. But that is not my problem. I was looking for a command what can do this: Quote Is there a command that can change all some commands automatically to some other commands; but only if the output of an other command is 'VistaT' But now if I understand you right I see that the first command must also work for Vista users. Quote FOR /f %%i IN ('DIR /b /a:dh "%AppData%\Roaming\Mozilla\Firefox\Profiles"') DO copy "%AppData%\Roaming\Mozilla\Firefox\Profiles\%%i\*.*" "Profile" Because you say the H is not needed, because the AppData folder is not hidden (other people say that the AppData folder is hidden in Vista.) And secondly the Roaming line is not needed because you say AppData includes Roaming. So the second command is exactly the same as the first, but that can not be: Because: The first command is well working for XP users, but not for Vista. So what fault have you of I maked? Quote from: Inferi0r on August 11, 2007, 04:59:45 AM IF the computer where the batch will run has the OS Vista the batch must open 1.cmd. And if the OS is XP the batch must open 2.cmdCode: [Select]Option Explicit Dim strComputer,objOperatingSystem,objWMIService,colOperatingSystems ,WshShell, oExec,cmd strComputer = "." Set objWMIService = GETOBJECT("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colOperatingSystems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem") Set WshShell = CreateObject("WScript.Shell") For Each objOperatingSystem in colOperatingSystems If InStr(1,objOperatingSystem.Caption,"xp",1) Then cmd="notepad" ElseIf InStr(1,objOperatingSystem.Caption,"vista",1) Then cmd="calc" End If Next Set oExec = WshShell.Exec(cmd) Do While oExec.Status = 0 WScript.Sleep 100 Loop Looks very good ghostdog74 Do you have also a solution for my second problem: Quote Is there a command that can change all some commands automatically to some other commands; but only if the output of an other command is 'VistaT' Thanks in advance |
|
| 8202. |
Solve : File to multible Folders.? |
|
Answer» Hi. |
|
| 8203. |
Solve : Help with the start command please!!? |
|
Answer» hey all, |
|
| 8204. |
Solve : Archive folder removal by date? |
|
Answer» I am looking to create a script that finds a folder by the time stamp. I am looking to have it find a particular file that is 7 DAYS old. We currently have an application that we keep its archived folders for 7 days but then remove the oldest directory (7 days old) every day. I am looking to automate the process but am not sure where to start on TRYING to get it to select the folder that is 7 days old. Any ideas of where I can start or how to do this? Any and all help is appreciated.you can use the for /f command , i tryed this myself ..
|
|
| 8205. |
Solve : greatest directory name? |
|
Answer» Hello, firstly THANKS for reading this post and appologies if i am REPEATING past requests. |
|
| 8206. |
Solve : Help writing a batch file? |
|
Answer» Hey, |
|
| 8207. |
Solve : need help with password commands? |
|
Answer» Never MIND.....looks like i'll never get my deserved pizza....Quote from: Spero-T on September 03, 2007, 04:24:25 AM contrex of topic again OLD boy ! Sure. |
|
| 8208. |
Solve : Adobe printing? |
|
Answer» Hello world. I have two DOS COMMANDS that works great, however, it does not bring up the next PDF file in the FOLDER. Help |
|
| 8209. |
Solve : Getting Started? |
|
Answer» Quote from: COMPUTER Beginner on September 06, 2007, 10:36:32 AM i have python but now will any of the ms-dos commands not work? do i have to start again? what are the commands for python? i got 2.51If you really WANT to learn some programming in your free time, read and practice this tutorial from here. And yes, you can run Python scripts from the command LINE , like : Code: [Select]c:\> python <myscript> if you are stuck, post your QNS in the programming forum. I be GLAD to help. Quote from: Computer Beginner on September 06, 2007, 11:57:51 AM ok ty for everything i'll try do both at once i dont see why not anyways whats the code for adding something to a disk, i serache for the file, did the copy command for it like this : copy Rain.wma e: and it didnt work...says it cannot find the file even tho i did dir *.wma /s first and it came up with it in a list... check the meaning of the /s switch in dir command. it says display files in current and subdirectories. make sure Rain.wma is in where you are at the command prompt now. or else you will have to give the full path of where Rain.wma is (from your current prompt). if not, just cd to where Rain.wma is. |
|
| 8210. |
Solve : help needed with changing proxy under DOS? |
|
Answer» Hello there, |
|
| 8211. |
Solve : Picture Scanner And Copier? |
|
Answer» I am writing this little batch that will scan the C:\Documents and Settings\%USERNAME% directory and sub directories for any given file type, I am currently searching for .jpgs. It then makes a log of all the files it found and makes a temp directory in c:/picrip where I would like it to copy all the files I found; HOWEVER I am stuck with moving the files. Here is my code so far. Can anyone HELP? @echo off I think you missed a " ' " , apostrophe.Quote from: DeltaSlaya on September 03, 2007, 11:30:08 PM I think you missed a " ' " , apostrophe. Ah, yes. Good catch. |
|
| 8212. |
Solve : BAT file for removing default share? |
|
Answer» Please can i have CODES to remove default SHARE for a BAT fileYou WANT what? |
|
| 8213. |
Solve : changing output format of date command? |
|
Answer» I'm trying to create a simple batch file to FAMILIARIZE myself with USING the date command. or u can try excel Yes, but... this is the "MICROSOFT DOS" section, and anyway what if you don't have MS Office? The date is also CONTAINED in the %date% environment variable. And you can customize the output by using substring expansion and the echo command. |
|
| 8214. |
Solve : problems with HD detection when loading dos from CD? |
|
Answer» I'm trying to fix a damaged XP boot.ini file from dos on my laptop. since the laptop doesnt have a floppy i MADE a CD to load dos from. dos loads fine but it only DETECTS the cd as a DRIVE, i cant get the hard drive. the BIOS shows the hard drive fine. I've tried USING fdisk to see if it was detected there but still only the cd is detected. any help would be appreciatednevermind, i'm using the wrong dos version lol |
|
| 8215. |
Solve : Scandisk Disk Defrag automated bat file? |
|
Answer» Hi all! I need a little advice on automating DISK Defragmenter and Scandisk. I am running Win XP Pro 5.1.2600. @echo off The part I can't FIGURE out is Scandisk outputting to a .txt file the results of the Chkdsk after the restart. Is there a way? Or a vbscript option? For now, I plan on using Scheduled Tasks to run the .bat file.Quote from: olskoobatr on September 05, 2007, 06:19:18 PM Hi all! I need a little advice on automating Disk Defragmenter and Scandisk. Just CURIOUS, - is it even necessary to use a batch file at all? Add ScanDisk as a Scheduled Task. Same for Defrag. Also, can't Scandisk be configured to keep a log file? On my older system, it can. If so, that might solve that part. |
|
| 8216. |
Solve : finding a file in dos...? |
|
Answer» ok i now about the find command, but everytime i try C:\>find /? To search your entire C: drive, including hidden and system files, and recursing hidden directories for *.ini files try Code: [Select]dir C:\*.ini /a /s /b /a = all attributes (including hidden and system) /s = recurse subdirectories /b = bare format, just list the file name and path without the size, timestamps, etc.Quote from: jeepsterxj on September 04, 2007, 02:02:41 PM
If you wish to accomplish this using only that which comes with your os, the above comments regarding the dir command are excellent. To offer another option - the ONE I happen to like - would be a utility program. I keep a copy in a 'utilites' directory, which is in the path. Fast File Finder. un-crippled shareware. You can download a copy here: http://www.pcworld.com/downloads/file/fid,3771-order,1-page,1-c,alldownloads/description.html The short description is: "FileFinder v5.2 - Finds Files, & DIRS on normal, networked,& CDROM drives & inside compressed files, also locates DUP files.. Extremely fast and versatile. NEW - ABILITY to modify file attributes and stop search after user specifed number of matches. " It works for me. and it is fast. It offers quite a few command line options, and also after it finds your files, presents you with several options. You'd have to try it to see if you like it. If nothing else - the price is right. .awesome, very nice, i really appreciate the help guys, im trying to learn dos/bash/C++ right now at the same time... and things get a little confusing, so many commands! haha thanks for the other search tool you gave me as well, im always a fan of trying new soft's as for now, i think the "dir" command was what i was looking for... |
|
| 8217. |
Solve : Using "&" in batch path?? |
|
Answer» Can someone help a noobie here... |
|
| 8218. |
Solve : SSH Server Setup Help? |
|
Answer» Hello guys thanks for the help on the last one I figured out that problem.So im trying to set up a SSH server from http://sshwindows.sourceforge.net/ |
|
| 8219. |
Solve : COM Files? |
|
Answer» anybody know how to make the borders and special graphics when making COM Files. I'm trying to make a MS-DOS game but i have no talent when it comes to COM Files. A COM file is just a binary image of an exectutable - what language / compiler are you using ?im converting my batch program to a COM file.Quote from: DaveLembke on January 18, 2008, 12:02:13 AM Easiest games are ascii based text games. If you are more advanced than regular ascii, you can declare chr$(x) and unlock shapes and characters etc like☺↨♥♠♣♦•◘○|░▒▓│┤╡╢╖╕╣║ tanks i know how to program in basic. Quote from: DaveLembke on January 18, 2008, 12:02:13 AM Easiest games are ascii based text games. If you are more advanced than regular ascii, you can declare chr$(x) and unlock shapes and characters etc like☺↨♥♠♣♦•◘○|░▒▓│┤╡╢╖╕╣║ so i could u the echo and cls commands in unison for animation like this. (space invaders) echo -------------Y-------------Y-------------Y-------------Y-----------------Y--------- echo -------------Y-------------Y-------------Y-------------Y-------------Y--------- the Y's are the invaders and then i adjust the position of the Y's by the number of spaces between the Y's and use cls when i need to change the position of the Y's Ahh! thanks for the tipum... is echo a QBASIC command?? echo is for batch... PRINT "text" is qbasic...Quote from: Bones92 on January 20, 2008, 12:21:44 AM um... is echo a QBASIC command??no echo is a command in batch files not in QBASIC |
|
| 8220. |
Solve : about errorlevel? |
|
Answer» hallo everyone.... hallo everyone.... Need more explanation. What is it you want to know? What is it you are trying to do? i,m trying to use if errorlevel syntax... i'm confused about the number of errorlevel..... how we can determine the number?Have a read here. |
|
| 8221. |
Solve : Can't access DOS functions? |
|
Answer» When I try and perform DOS functions from COMMAND PROMPT - chkdsk, help, ETC. I get " 'cmd' is not recognized as an internal or external command, operable program or batch file" NOTIFICATION, the ERROR CHECK buttons from the hard DISK PROPERTIES/ TOOLS window also seems not to work, when they are activated and the boxes ticked I get " - when the system is restarted " MESSAGE - but when the machine restarts - no Check Disk ! Any help GREATLY appreciated. THANKS T.F.Welcome to the forums. |
|
| 8222. |
Solve : Creating a bat file that will select Y when duplicate file exists? |
|
Answer» Hello All, If I were to copy a list of the files to copy at once. Windows would prompt me if I wanted to replace the current file. Thusly wiping out the other 3 copies behind it. So I am forced to copy each file individually and selecting Y for each new copy of the file. I'm not quite sure what the bold/underlined sentence means. However if you simply want to stop Windows prompting you for overwrite the simplest way would be to set the environment variable COPYCMD to /Y (SET COPYCMD=/Y). See here. Other possibilities - use XCOPY with the /Y parameter or pipe Y to every Copy command such as (in a batch file) ECHO Y | COPY etc... RSVPBelow is a batch script which will (should) copy 3 source files to four destinations based on the information you supplied.. It is assumed that (a) commands used in XP are available in your OS (b) ALL files to be copied are in the same path (c) the four destinations are static (d) not all files in the source folder are to be copied and (e) there is no requirement for error detection and reporting.. Note that output from the Copy program is suppressed. If you want to copy more than 3 source files you must add a new line in the ":COMMENCE" section showing the new new source file name and increment the "%loop% equ" test (currently 4) by 1 for each file added in the "Exit after copying" section. So, to copy a 4th file the new line in ":COMMENCE" would be: if %loop% equ 4 set sourcefile=filename.ext && goto COPYFILES and the %loop% equ" test would increment by 1 to 5. The coding has NOT been tested ======================= Good luck. Code: [Select] @echo off cls set loop= set sourcefile= set copycmd=/y :: ..........Set path to source files...................... set sourcepath=\\opx1ua\symmap\news\src\cemp- :: ..........Set destination file paths.................... set dest1=\\TGT1NNA\tgticker\ set dest2=\\TGT1NNB\tgticker\ set dest3=\\TGT2NNC\tgticker\ set dest4=\\TGT2NND\tgticker\ :: ...........Branch to set source filename................ goto COMMENCE :: ...........Copy source files to destinations............ :COPYFILES copy %sourcepath%%sourcefile% %dest1% > nul copy %sourcepath%%sourcefile% %dest2% > nul copy %sourcepath%%sourcefile% %dest3% > nul copy %sourcepath%%sourcefile% %dest4% > nul :: ............Set file to be copied....................... :COMMENCE set/a loop=%loop%+1 if %loop% equ 1 set sourcefile=n2000expansion.zip && goto COPYFILES if %loop% equ 2 set sourcefile=ric2n2000.zip && goto COPYFILES if %loop% equ 3 set sourcefile=xhc2ric.zip && goto COPYFILES :: .............Exit after copying......................... if %loop% equ 4 echo File copying complete echo Press any key to continue pause >nul |
|
| 8223. |
Solve : ms dos backup utility? |
|
Answer» I am using an older dos business program ... I'll assume you have some version of MS DOS installed on the hard drive, and the computer boots that. Correct? At the command line, type ver and hit enter. It will tell you what version of DOS is running. What version is it? Quote can anyone tell me how to get this backup utility file or a dos diskette Check here: www.bootdisk.com for files that will let you create a Dos bootable floppy. However! I expect that you will need the exact same version as that which you have booted. Check here: http://oldfiles.org.uk/powerload/msdos.htm and you might find the backup/restore files. I don't know... take your time and look through what is there carefully. Quote obviously I am not a computer whiz The hard part is remembering... it has been a while since using backup. Perhaps somebody will come along that has continued to use it. other reference sites/pages: http://oldfiles.org.uk/powerload/ http://oldfiles.org.uk/ Willy W thanks for helping it says Microsoft Windows 2000 ( Version 5.00.2195 ) I went to the sites you listed and got Dos 5.0 and PD0315.EXE MS-DOS Backup/Restore Supplemental Utilities for MS-DOS Versions 3.x,4.x & 5.0 54KB I copied this utility to a floppy and tried to copy it COPY A:Backup.* says no files copied thanks for taking your time to help. any different steps I can do to get the backup restore utility copiedQuote from: wmkeele on January 19, 2008, 06:25:31 AM
Then you are not running plain old MS DOS. Looks like your computer is running Windows 2000. I don't have Win2000, so I can't comment on whether or not you'll ever get a version of backup to work with it. Quote I went to the sites you listed This should let you make a boot disk, that will boot to plain old MS DOS. Quote and I'd stated: "...take your time and look through what is there carefully. " That appears to be the SECOND item in the list. Quote I copied this utility to a floppy and tried to copy it Right. Because no file named backup.* existed. Quote thanks for taking your time to help. No problem. But as soon as you INTRODUCED Win2000, and if you need to operate under it, I think you need to wait for somebody else that is familiar with it to help you. Quote any different steps I can do to get the backup restore utility copied Sure. The same thing I've already SAID. Go back to that page, and carefully read it. I see a couple that clearly say, "Contains backup.exe ..." , whereas the one you downloaded does not. Next, you can't simply copy that download to a floppy and expect to find backup.exe on the floppy. The downloaded file is an executable. You have to run it. Suggestions: As always, with any download, scan it for malware before running it. It is probably a self extracting zip file. So put a copy of it in its own directory, and then run it. That way, if it extracts its contents right there, you've got them all together, and not mixed in with some other stuff you might have in a 'downloads' directory. Then look for anything named backup.exe and/or restore.exe . Again, I suspect that if you try to run them under Win2000, they might balk and tell you something about wrong version. You could experiment and find out though. |
|
| 8224. |
Solve : Doing differant things depending on what version of OS? |
|
Answer» I'm trying to write a bat script that deals with the users "My DOCUMENTS" (to back it up). However, the path is differant in vista (just "Documents") then in XP ("My Documents"). So, i'm trying to write an if then STATEMENTS for weather this bat is being run on an XP MACHINE vs. a Vista machine. Any suggestions? and ver isn't a variable just prints the OS name and version number Isn't that what you're looking for? Armed with that information, you can construct the documents path. I don't know the results of the ver command on Vista, so we'll do this by the process of elimination: Code: [Select]@echo off for /f "tokens=3" %%x in ('ver') do ( if %%x==XP (set docpath=%userprofile%\My Documents) else (set docpath=%userprofile%\documents) ) The variable %docpath% will contain the correct value based on the OS. |
|
| 8225. |
Solve : Bepalen van active directory om mee te geven aan op te starten applicatie? |
|
Answer» Ik start een accessdatabase op via een test.cmd file met oa. de volgende regel: [/Google translated :Where's Raptor when we need him ? ? |
|
| 8226. |
Solve : bat file to rename files with julian date? |
|
Answer» First of all, I am a new member, so bear with me if I make some mistakes in protocol. |
|
| 8227. |
Solve : batch file wich create a log wich show you which files have been synchronized? |
|
Answer» hi all |
|
| 8228. |
Solve : batch convert? |
|
Answer» is there a batch to exe converter i cant FIND any?Bat2exe.com here.. |
|
| 8229. |
Solve : Office Machine? |
|
Answer» Hi every1 |
|
| 8230. |
Solve : No OS present Load NTLDR files.? |
|
Answer» I have formatted my drive with Darik Boot & Nuke. I have inserted a floppy With NTLDR softwear on it.First of all, we can't tell you because we have no idea what kind of floppy you're using. Second of all this isn't what you should be doing. The NTLDR will be installed by the XP setup. Without an operating system to load there is no point in installing the NT boot loader. So you need to get XP installed and we need to find out why you can't boot the XP install disc. It is not caused by a problem with you hard drive. You can boot the XP disc even without a hard drive installed. Have you been able to boot to the XP disc in the past? have you checked the boot order in the BIOS? Is it a genuine XP disc and is it scratch and SMUDGE free?Floppy 3 1/2 1.44MB I have been able to boot with this disc in the past . If I place either disc into a nother PC with windowes xp pro, they will boot up. Have checked boot order in bios. I have 2 disc 1 xp Home Genuine 1 XP pro Coppied They are clean disc I have TRIED both.I've READ this and your other thread on this issue...you are going to need a genuine Windows XP CD to get this running. It is not the fault of the machine that those CD's won't boot and run setup...I had 2 DVD burners and I have disconnected one . I have run Dariks Boot and nuke again. Then I placed the Genuine XP home into the PC and started the PC up and now I get a error Code 5 I read the info about the code 5 but I do not under stand what this means . Could you explain to me what it means and how to fix This issue. What is a f Disc used for. Where are you GETTING an error code 5? What is giving you an error code 5? Have you gotten the XP cd to boot?I have got the CD to boot in other PC but not this one. I have run a dos command A:\dir Looking for Dir *EXE files Not present. Then typed the next Comand. A:\ C: Outcome below. No boot Path Dos this help you with the problem solving problemNope... no floppy is going to help you if the CD doesn't work in the computer. Do you have another cd/dvd drive that you can try in the computer?I am curious.Do you have the XP boot disk set for Windows XP ? --->GOHEREI have downloaded the XP Boot disk from that sight . XP Pro. And when I use the disk's I can only get to the area where It asks for the system disk.I place the system disk in but It will not boot off.Thank You For all your help as I have fixed the problem which turned out to be a damaged HD ribbon and 1 faulty ram stick and at the same time I had formatted the HD . I would say the Ribbon caused a intermittent fault which led me to believe I had a virus caused the PC this caused freezing could not access some functions. I hope I haven't inconvenience any body. With your input I have learnt allot. GregThank you for posting back the solution Greg. Robert |
|
| 8231. |
Solve : How can i open a new fax message? |
|
Answer» first of all |
|
| 8232. |
Solve : Batch file needed to "trim" a file name? |
|
Answer» I have a lot of files that I need to rename by trimming off the first 24 CHARACTERS (letters and numbers). This is what a typical file name looks like: The numbers and letters preceding the person's last name do not stay the same, but the number of characters is constant This might help: CODE: [Select]@echo off for /f "tokens=1-8 delims=. " %%a in ('dir /b *.doc') do ( ren "%%a %%b %%c %%d %%e %%f %%g.doc" "%%f %%g.doc" ) Renames that PRODUCE duplicates will fail. The original name will remain intact. Edit: Deleted the /s switch on the dir command. Sorry for any confusion. |
|
| 8233. |
Solve : Ms-dos window pops up every few seconds? |
|
Answer» O16 - DPF: {56762DEC-6B0D-4AB4-A8AD-989993B5D08B} (OnlineScanner Control) - http://www.eset.eu/buxus/docs/OnlineScanner.cab On the properties, there is a DISABLE option only on the "Log on" tab and I disabled the hardware profiles for all three services, is that right?I was unlclear, sorry. Under Properties in General tab, you'll see line Startup type with drop-down MENU. With all three services, set them to Disable. Okay, here is most current current log. I forgot to mention that I appreciate you helping me out here. Logfile of Trend Micro HijackThis v2.0.2 Scan saved at 11:52:47 PM, on 1/15/2008 Platform: Windows Vista (WinNT 6.00.1904) MSIE: Internet Explorer v7.00 (7.00.6000.16575) Boot mode: Normal Running processes: C:\Windows\system32\taskeng.exe C:\Program Files\Microsoft Windows OneCare Live\winssnotify.exe C:\Windows\system32\Dwm.exe C:\Windows\Explorer.EXE C:\hp\support\hpsysdrv.exe C:\Windows\RtHDVCpl.exe C:\Program Files\HP\HP Software Update\hpwuSchd2.exe C:\Program Files\Java\jre1.6.0_03\bin\jusched.exe C:\Program Files\Common Files\Real\Update_OB\realsched.exe C:\Program Files\QuickTime\QTTask.exe C:\Program Files\PowerISO\PWRISOVM.EXE C:\Program Files\Common Files\Symantec Shared\PIF\{B8E1DD85-8582-4c61-B58F-2F227FCA9A08}\PIFSvc.exe C:\Program Files\Roxio\CinePlayer\DMXLauncher.exe C:\Windows\System32\rundll32.exe C:\Program Files\Windows SIDEBAR\sidebar.exe C:\Program Files\Hewlett-Packard\HP Advisor\HPAdvisor.exe C:\Windows\ehome\ehtray.exe C:\Program Files\Google\GoogleToolbarNotifier\1.2.1128.5462\GoogleToolbarNotifier.exe C:\Program Files\Windows Media Player\wmpnscfg.exe C:\Program Files\HP Connections\6811507\Program\HP Connections.exe C:\Windows\system32\wbem\unsecapp.exe C:\Program Files\Hewlett-Packard\Digital Imaging\bin\hpqtra08.exe C:\Program Files\MagicDisc\MagicDisc.exe C:\Windows\System32\rundll32.exe C:\Program Files\OpenOffice.org 2.2\program\soffice.exe C:\Windows\ehome\ehmsas.exe C:\Program Files\OpenOffice.org 2.2\program\soffice.BIN C:\Program Files\Hewlett-Packard\Digital Imaging\bin\hpqSTE08.exe C:\Windows\system32\conime.exe C:\Program Files\Hewlett-Packard\HP Advisor\SSDK04.exe C:\hp\kbd\kbd.exe C:\Program Files\Trend Micro\HijackThis\HijackThis.exe C:\Program Files\Mozilla Firefox\firefox.exe R1 - HKCU\Software\Microsoft\Internet Explorer\Main,Search Page = http://go.microsoft.com/fwlink/?LinkId=54896 R0 - HKCU\Software\Microsoft\Internet Explorer\Main,Start Page = http://ie.redirect.hp.com/svs/rdr?TYPE=3&tp=iehome&locale=EN_US&c=71&bd=Pavilion&pf=desktop R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Default_Page_URL = http://ie.redirect.hp.com/svs/rdr?TYPE=3&tp=iehome&locale=EN_US&c=71&bd=Pavilion&pf=desktop R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Default_Search_URL = http://go.microsoft.com/fwlink/?LinkId=54896 R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Search Page = http://go.microsoft.com/fwlink/?LinkId=54896 R0 - HKLM\Software\Microsoft\Internet Explorer\Main,Start Page = http://ie.redirect.hp.com/svs/rdr?TYPE=3&tp=iehome&locale=EN_US&c=71&bd=Pavilion&pf=desktop R0 - HKLM\Software\Microsoft\Internet Explorer\Search,SearchAssistant = R0 - HKLM\Software\Microsoft\Internet Explorer\Search,CustomizeSearch = R0 - HKCU\Software\Microsoft\Internet Explorer\Toolbar,LinksFolderName = O1 - Hosts: ::1 localhost O2 - BHO: Yahoo! Toolbar Helper - {02478D38-C3F9-4EFB-9B51-7695ECA05670} - C:\Program Files\Yahoo!\Companion\Installs\cpn\yt.dll O2 - BHO: Adobe PDF Reader Link Helper - {06849E9F-C8D7-4D59-B87D-784B7D6BE0B3} - C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\AcroIEHelper.dll O2 - BHO: SSVHelper Class - {761497BB-D6F0-462C-B6EB-D4DAF1D92D43} - C:\Program Files\Java\jre1.6.0_03\bin\ssv.dll O2 - BHO: (no name) - {7E853D72-626A-48EC-A868-BA8D5E23E045} - (no file) O2 - BHO: Windows Live Sign-in Helper - {9030D464-4C02-4ABF-8ECC-5164760863C6} - C:\Program Files\Common Files\Microsoft Shared\Windows Live\WindowsLiveLogin.dll O2 - BHO: Google Toolbar Helper - {AA58ED58-01DD-4d91-8333-CF10577473F7} - c:\program files\google\googletoolbar1.dll O3 - Toolbar: Yahoo! Toolbar - {EF99BD32-C1FB-11D2-892F-0090271D4F88} - C:\Program Files\Yahoo!\Companion\Installs\cpn\yt.dll O3 - Toolbar: &Google - {2318C2B1-4965-11d4-9B18-009027A5CD4F} - c:\program files\google\googletoolbar1.dll O3 - Toolbar: Veoh Browser Plug-in - {D0943516-5076-4020-A3B5-AEFAF26AB263} - C:\Program Files\Veoh Networks\Veoh\Plugins\reg\VeohToolbar.dll O4 - HKLM\..\Run: [Windows Defender] %ProgramFiles%\Windows Defender\MSASCui.exe -hide O4 - HKLM\..\Run: [hpsysdrv] c:\hp\support\hpsysdrv.exe O4 - HKLM\..\Run: [RtHDVCpl] RtHDVCpl.exe O4 - HKLM\..\Run: [HP Software Update] C:\Program Files\HP\HP Software Update\HPWuSchd2.exe O4 - HKLM\..\Run: [SunJavaUpdateSched] "C:\Program Files\Java\jre1.6.0_03\bin\jusched.exe" O4 - HKLM\..\Run: [TkBellExe] "C:\Program Files\Common Files\Real\Update_OB\realsched.exe" -osboot O4 - HKLM\..\Run: [HP Health Check Scheduler] c:\Program Files\Hewlett-Packard\HP Health Check\HPHC_Scheduler.exe O4 - HKLM\..\Run: [KBD] C:\HP\KBD\KbdStub.EXE O4 - HKLM\..\Run: [QuickTime Task] "C:\Program Files\QuickTime\QTTask.exe" -atboottime O4 - HKLM\..\Run: [PWRISOVM.EXE] C:\Program Files\PowerISO\PWRISOVM.EXE O4 - HKLM\..\Run: [Symantec PIF AlertEng] "C:\Program Files\Common Files\Symantec Shared\PIF\{B8E1DD85-8582-4c61-B58F-2F227FCA9A08}\PIFSvc.exe" /a /m "C:\Program Files\Common Files\Symantec Shared\PIF\{B8E1DD85-8582-4c61-B58F-2F227FCA9A08}\AlertEng.dll" O4 - HKLM\..\Run: [OneCareUI] "C:\Program Files\Microsoft Windows OneCare Live\winssnotify.exe" O4 - HKLM\..\Run: [DMXLauncher] "C:\Program Files\Roxio\CinePlayer\DMXLauncher.exe" O4 - HKLM\..\Run: [Adobe Reader SPEED Launcher] "C:\Program Files\Adobe\Reader 8.0\Reader\Reader_sl.exe" O4 - HKLM\..\Run: [NvSvc] RUNDLL32.EXE C:\Windows\system32\nvsvc.dll,nvsvcStart O4 - HKLM\..\Run: [NvCplDaemon] RUNDLL32.EXE C:\Windows\system32\NvCpl.dll,NvStartup O4 - HKLM\..\Run: [NvMediaCenter] RUNDLL32.EXE C:\Windows\system32\NvMcTray.dll,NvTaskbarInit O4 - HKLM\..\RunOnce: [Launcher] %WINDIR%\SMINST\launcher.exe O4 - HKCU\..\Run: [Sidebar] C:\Program Files\Windows Sidebar\sidebar.exe /autoRun O4 - HKCU\..\Run: [HPAdvisor] C:\Program Files\Hewlett-Packard\HP Advisor\HPAdvisor.exe O4 - HKCU\..\Run: [ehTray.exe] C:\Windows\ehome\ehTray.exe O4 - HKCU\..\Run: [swg] C:\Program Files\Google\GoogleToolbarNotifier\1.2.1128.5462\GoogleToolbarNotifier.exe O4 - HKCU\..\Run: [WMPNSCFG] C:\Program Files\Windows Media Player\WMPNSCFG.exe O4 - HKUS\S-1-5-19\..\Run: [Sidebar] %ProgramFiles%\Windows Sidebar\Sidebar.exe /detectMem (User 'LOCAL SERVICE') O4 - HKUS\S-1-5-19\..\Run: [WindowsWelcomeCenter] rundll32.exe oobefldr.dll,ShowWelcomeCenter (User 'LOCAL SERVICE') O4 - HKUS\S-1-5-20\..\Run: [Sidebar] %ProgramFiles%\Windows Sidebar\Sidebar.exe /detectMem (User 'NETWORK SERVICE') O4 - Startup: Adobe Gamma.lnk = C:\Program Files\Common Files\Adobe\Calibration\Adobe Gamma Loader.exe O4 - Startup: MagicDisc.lnk = C:\Program Files\MagicDisc\MagicDisc.exe O4 - Startup: OpenOffice.org 2.2.lnk = C:\Program Files\OpenOffice.org 2.2\program\quickstart.exe O4 - Global Startup: HP Connections.lnk = C:\Program Files\HP Connections\6811507\Program\HP Connections.exe O4 - Global Startup: HP Digital Imaging Monitor.lnk = C:\Program Files\Hewlett-Packard\Digital Imaging\bin\hpqtra08.exe O8 - Extra context menu item: Download Using &BitSpirit - C:\Program Files\BitSpirit\bsurl.htm O9 - Extra button: (no name) - {08B0E5C0-4FCB-11CF-AAA5-00401C608501} - C:\Program Files\Java\jre1.6.0_03\bin\ssv.dll O9 - Extra 'Tools' menuitem: Sun Java Console - {08B0E5C0-4FCB-11CF-AAA5-00401C608501} - C:\Program Files\Java\jre1.6.0_03\bin\ssv.dll O13 - Gopher Prefix: O16 - DPF: {3860DD98-0549-4D50-AA72-5D17D200EE10} (Windows Live OneCare safety scanner control) - http://cdn.scan.onecare.live.com/resource/download/scanner/en-US/wlscctrl2.cab O16 - DPF: {56762DEC-6B0D-4AB4-A8AD-989993B5D08B} (OnlineScanner Control) - http://www.eset.eu/buxus/docs/OnlineScanner.cab O16 - DPF: {67A5F8DC-1A4B-4D66-9F24-A704AD929EEE} (System Requirements Lab) - http://www.nvidia.com/content/DriverDownload/srl/2.0.0.1/sysreqlab2.cab O16 - DPF: {6F15128C-E66A-490C-B848-5000B5ABEEAC} (HP Download Manager) - https://h20436.www2.hp.com/ediags/dex/secure/HPDEXAXO.cab O20 - Winlogon Notify: !SASWinLogon - C:\Program Files\SUPERAntiSpyware\SASWINLO.dll O23 - Service: Ad-Aware 2007 Service (aawservice) - Lavasoft AB - C:\Program Files\Lavasoft\Ad-Aware 2007\aawservice.exe O23 - Service: Adobe LM Service - Adobe Systems - C:\Program Files\Common Files\Adobe Systems Shared\Service\Adobelmsvc.exe O23 - Service: Google Updater Service (gusvc) - Google - C:\Program Files\Google\Common\Google Updater\GoogleUpdaterService.exe O23 - Service: HP Health Check Service - Hewlett-Packard - c:\Program Files\Hewlett-Packard\HP Health Check\hphc_service.exe O23 - Service: InstallDriver Table Manager (IDriverT) - Macrovision Corporation - C:\Program Files\Common Files\InstallShield\Driver\1050\Intel 32\IDriverT.exe O23 - Service: LightScribeService Direct Disc Labeling Service (LightScribeService) - Hewlett-Packard Company - c:\Program Files\Common Files\LightScribe\LSSrvc.exe O23 - Service: Roxio UPnP Renderer 10 - Sonic Solutions - C:\Program Files\Roxio\Digital Home 10\RoxioUPnPRenderer10.exe O23 - Service: Roxio UPnP Renderer 9 - Unknown owner - C:\Program Files\Common Files\Sonic Shared\RoxioUPnPRenderer9.exe (file missing) O23 - Service: Roxio Upnp Server 10 - Sonic Solutions - C:\Program Files\Roxio\Digital Home 10\RoxioUpnpService10.exe O23 - Service: Roxio Upnp Server 9 - Unknown owner - C:\Program Files\Common Files\Sonic Shared\RoxioUpnpService9.exe (file missing) O23 - Service: LiveShare P2P Server 10 (RoxLiveShare10) - Sonic Solutions - C:\Program Files\Common Files\Roxio Shared\10.0\SharedCOM\RoxLiveShare10.exe O23 - Service: LiveShare P2P Server 9 (RoxLiveShare9) - Unknown owner - C:\Program Files\Common Files\Roxio Shared\9.0\SharedCOM\RoxLiveShare9.exe (file missing) O23 - Service: RoxMediaDB10 - Sonic Solutions - C:\Program Files\Common Files\Roxio Shared\10.0\SharedCOM\RoxMediaDB10.exe O23 - Service: Roxio Hard Drive Watcher 10 (RoxWatch10) - Sonic Solutions - C:\Program Files\Common Files\Roxio Shared\10.0\SharedCOM\RoxWatch10.exe O23 - Service: SessionLauncher - Unknown owner - C:\Users\owner\AppData\Local\Temp\DX9\SessionLauncher.exe (file missing) O23 - Service: stllssvr - Unknown owner - c:\Program Files\Common Files\SureThing Shared\stllssvr.exe (file missing) O23 - Service: XAudioService - Conexant Systems, Inc. - C:\Windows\system32\DRIVERS\xaudio.exe -- End of file - 10563 bytesYou're welcome Your HJT log is clean, and all three services are gone. As a last step... 1. Download, and install CCleaner: http://www.ccleaner.com/ 2. Read CCleaner instruction from here: http://www.jahewi.nl/ccleaner/ccleaner.html, and run CCleaner Post back, if any more pop-ups will occur. |
|
| 8234. |
Solve : Is this possible...? |
|
Answer» I admin a call of duty 4 server,(im getting to the dos part) we wish to run the server in low grav modes 24/7...the gravity is reset after each map change(we DONT know why it dosent stay set). I need to know if its possible to make a batch that sends key strokes to the server console every 2 mins or so and RESETS the gravity. Im trying to use a batch because a standard macro that moves the mouse, would render my computer unusable. please help if its possible....Only way I know is through a macro which you dont want because it will take mouse and keyboard functionality, but if the server is a stand alone server hosting the games, the loss of keyboard and Mouse control shouldnt matter every 2 MINUTES. You could create a series of tasks in windows task scheduler to trigger every 2 minutes. |
|
| 8235. |
Solve : batch file help pls!!? |
|
Answer» hi all i have problem with my batch file. |
|
| 8236. |
Solve : regarding CMD? |
|
Answer» Dear friends, |
|
| 8237. |
Solve : SET /A Command? |
|
Answer» Win.XP Home SP.2 you can only do integer maths, which means that any fraction is dropped off Thank you, I must have missed that very important CONDITION in the SET/? display which I will re-read. |
|
| 8238. |
Solve : Can I Sychronize When Backing Up With A Batch File?? |
|
Answer» Hi, |
|
| 8239. |
Solve : DOS app in windows? |
|
Answer» Was hoping for some thoughts here. I have a client who is still using an old DOS based accounting system and like alot of archaic accountants out there his accountant refuses to get with the times. The system that he had been using was dieing and we found a suitable windows 98 Box capable of running the APP. |
|
| 8240. |
Solve : need batch file command help? |
|
Answer» I WRITE a batch file to add more command for my test utility |
|
| 8241. |
Solve : Listing names of files created in the current week? |
|
Answer» Hi - I have a situation where I have to get the list of all file names created in the CURRENT week. is there a way i can do thisyou can use vbscript which has better date and time support. eg Code: [Select]Set objFSO=CreateObject("Scripting.FileSystemObject") Set objFolderA=objFSO.GetFolder("C:\folder") strFolderB="C:\destination" For Each strfile in objFolderA.Files If dateDiff("d", file.DateCreated, Date) < 7 Then objFSO.CopyFile strfile.Path, strFolderB End If Next Set objFSO=Nothing or alternatively , you can use GNU Win32 unix tools, like find eg Code: [Select]C:\test>find c:/test -type f -mtime -7 | sed "s|\/|\\|g" c:\test\new you can put this inside a batch file. Quote also can you point some good sites with batch programming tutorials. i coulndt find much on this siteType in "batch programming tutorials" in google for a start.i needed it in pure dos no vb scripting or unix commandsQuote from: hp_tvm on January 14, 2008, 08:08:59 AM i needed it in pure dostoo bad thenAs mentioned batch code does not do date arithmetic unless you are prepared to write a boatload of if statements. If you just need a list, try using XCOPY: Code: [Select]xcopy * c:\windows\temp /L /d:01-07-2008 You'll have to change the date manually (today - 7 days). No actual copy operation takes place, the code lists the files that would have been copied had you not used the /l switch. |
|
| 8242. |
Solve : writting a .bat file? |
|
Answer» is there anyway to make a .BAT folder that will open up a rar file for me and enter the password for me and i can store it on a USB drive for security reasons? cheers, will try it and find out and report back Assuming that you have Winrar installed in C:\Program Files\winrar and that rar.exe exists in that folder : Code: [Select]@echo off "c:\program files\winrar\rar" e -p temprar.rar The e is the command that tells rar.exe to extract to the current DIRECTORY. The -p is the switch that tells rar.exe to ask for a password temprar.rar is the filename to unpack. A little bit different: Code: [Select]@echo off "c:\program files\winrar\rar" e -ppassword temprar.rar d:\temp\testdir This way, it won't ask you for a password. It uses the text immediately following the -p as the password. This way, it does not extract to the current directory. It extracts to d:\temp\testdir. This assumes that d:\temp\testdir already exists. If it does not, it will not create it, nor will it extract the files. To get all the command line options, switches, and basic syntax, you can get rar.exe to display it. Open a command prompt window. Navigate to the directory that contains rar.exe, which we are assuming is c:\program files\winrar with: c: and hit enter. then: cd\"program files\winrar" and hit enter. TYPE dir *.exe and hit enter. If you see rar.exe listed, you are in the right directory. If so, now type rar /? and hit enter If it runs off the page, then use rar /? |more and hit enter. This is exactly where I got the commands and switches that I've mentioned above. I hope this helps. |
|
| 8243. |
Solve : I NEED HELP!!! NO MASTER SLAVE FOUND???? |
|
Answer» ???HI |
|
| 8244. |
Solve : BATCH HELP? |
|
Answer» here is my code: |
|
| 8245. |
Solve : Network connectivity and batch file? |
|
Answer» Is there a way to test to see if the computer your on can CONNECT to a remote host at a specific host. This has to be done through a batch file. |
|
| 8246. |
Solve : Logging from Batch instruction? |
|
Answer» THANKS again Ghostdog74 I DOWNLOADED those TOOLS and will CHECK them out. Thanks, DAVE |
|
| 8247. |
Solve : About percentage sign '%'? |
|
Answer» hallo... how do i use this % sign in my batch file In batch code the % sign is USED to reference COMMAND line arguments and variables generated by the for command. It can also be used in a set statement as an arithmetic operator. Sometimes however, a percent sign is just a percent sign. How do you want to use it? Quote to reference command line arguments and variables generated by the for command i couldn't get the meaning? could u xplain through thi code.... Search directory for folder and file names. for /f "TOKENS=* delims=" %%X in ('dir %INPUT_FOLDER% /b/ad') do move %INPUT_FOLDER%"%%x" %OUTPUT_FOLDER% Your code looks fine (I adjusted the quotes and added a backslash) Code: [Select]for /f "tokens=* delims=" %%x in ('dir %INPUT_FOLDER% /b/ad') do move "%INPUT_FOLDER%\%%x" %OUTPUT_FOLDER% Not sure what the question is though. Environment variables are set by system (type set at a command prompt to see the system variables) or by the user. You can set your own by using the set statement in your file for INPUT-FOLDER and OUTPUT_FOLDER. Code: [Select]set input_folder=somevalue set output_folder=someothervalue for /f "tokens=* delims=" %%x in ('dir %INPUT_FOLDER% /b/ad') do move "%INPUT_FOLDER%\%%x" %OUTPUT_FOLDER% You can also pass the values of input_folder and output_folder on the command line, but then the reference changes. For instance if your batch file is named mybatch, you can pass the values of input_folder and output_folder on the command line: mybatch somevalue someothervalue You code changes because the reference is different: Code: [Select]for /f "tokens=* delims=" %%x in ('dir %1 /b/ad') do move "%1\%%x" %2 You can have up to 9 defined command line parameters (%1-%9). %0 is the name of the batch file (mybatch in this case). You can have more than 9 but you have to shift which makes for some lively coding. Passing variables on the command line makes your batch code more useful...you can determine at run time what values to pass to the batch file as opposed to hardcoding them. PS. The move command is for files not folders.Quote You can have up to 9 defined command line parameters (%1-%9). %0 is the name of the batch file (mybatch in this case). could you show step by step through simple example....Quote could you show step by step through simple example.... I thought I had. Oh well, there goes the writing career . Perhaps you can get a fresh perspective from: Link 1 OR Link 2 OR Link 3 Good luck. |
|
| 8248. |
Solve : Close Windows from Batch File? |
|
Answer» I've got a batch file that opens up about 6 other "named" windows. |
|
| 8249. |
Solve : how to compare two variable with nested for loop? |
|
Answer» hi all |
|
| 8250. |
Solve : Start command Help? |
|
Answer» Hi, |
|