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.
| 7351. |
Solve : How to delay a scipt until the previous command has completed.? |
|
Answer» HI Is it possible to be able to pause a script I run until the previous command has completed? I need to stop a windows service which is easy enough, but I need to wait until the service has STOPPED before the script can continue, what's the easiest way of doing this - please note this script RUNS at 01:00 and I won't be around to press a key like the "pause" command :^) MANY thanks in advance Simbaafter issuing the service stop command, enter a loop and only exit when you DETECT the service has stopped. http://www.mkssoftware.com/docs/man1/service.1.asp |
|
| 7352. |
Solve : .bat to run at startup I STILL NEED HELP 9/16/07? |
|
Answer» Ok iv looked through pages 1-172 so if this has already been covered i apologize you can either , put in in startup folder, or put it in a scheduled task to run after computer starts up usingthat helps greatly but is that all the code i need?Quote from: PHREKER on September 15, 2007, 07:28:00 PM Quote from: ghostdog74 on September 15, 2007, 07:20:58 PMNo, he means that you should look at schtasks /create /?, and from there you should be able to see all the commands available; these commands will let you do what you are trying to achieve.Quote from: Dark Blade on September 15, 2007, 07:45:45 PMyou can either , put in in startup folder, or put it in a scheduled task to run after computer starts up usingthat helps greatly but is that all the code i need? Quote from: PHREKER on September 15, 2007, 07:28:00 PMok thank you very muchQuote from: ghostdog74 on September 15, 2007, 07:20:58 PMNo, he means that you should look at schtasks /create /?, and from there you should be able to see all the commands available; these commands will let you do what you are trying to achieve.you can either , put in in startup folder, or put it in a scheduled task to run after computer starts up usingthat helps greatly but is that all the code i need? i tried doing tat but all i get is "not recognized as ......"What do you TYPE in?Quote from: Dark Blade on September 15, 2007, 08:26:39 PM What do you type in?iv tried all of the following schtasks/? create? schtasks/create/? (i feel like a retard)What's your OS? From this site, I think that only the following platforms include SCHTASKS: • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86) • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86) • Microsoft Windows Server 2003, Standard Edition (32-bit x86) • Microsoft Windows Server 2003, Web Edition • Microsoft Windows XP Professional for Itanium-based systems • Microsoft Windows Small Business Server 2003 Standard Edition • Microsoft Windows Small Business Server 2003 Premium Edition Quote from: Dark Blade on September 15, 2007, 08:45:11 PM What's your OS?windows XP homeWell, it's a possibility that you don't have schtasks on your computer, so you can DOWNLOAD it from here. From there, just place it in system32, and then try the commands again.schtasks is not in XP home. sorry about that.Quote from: Dark Blade on September 15, 2007, 08:50:41 PM Well, it's a possibility that you don't have schtasks on your computer, so you can download it from here. From there, just place it in system32, and then try the commands again.ok i got it but how do i make it so that the bat file runs on start up (whats the code) should i use the run cmd lineanother way to run script at startup is "Registry Entry" ------------------------------------------------------------------------ create new "REG_SZ" value in : HKLM\software\Microsoft\Windows\CurrentVersion\Run name : anything data : path to your batchfile (ie c:\startup.bat) ------------------------------------------------------------------------ or from command line to add registry value : REG ADD "HKLM\software\Microsoft\Windows\CurrentVersion\Run" /v Anything /t REG_SZ /d "c:\startup.bat" Quote from: Fen_Li on September 17, 2007, 03:16:27 PM another way to run script at startup is "Registry Entry"REG ADD "HKLM\software\Microsoft\Windows\CurrentVersion\Run" /v Proxy /t REG_SZ /d "c:\Proxy.bat" ... is exactly what i typed in my DOS box. It says "ERROR: Invalid key name" but this seems to work just need to fix the script.... |
|
| 7353. |
Solve : can get out from dos? |
|
Answer» it shows me this ERROR when i type any command |
|
| 7354. |
Solve : batch file question? |
|
Answer» I have a batch file question. I have a batch file question. yes. depends on whether you need a pure batch solution or not. in vbscript Code: [Select]Set arg = WScript.Arguments StrString = arg(0) WScript.Echo Len(StrString) save the code as script.vbs and on command LINE, type Code: [Select]C:\test>cscript /nologo script.vbs "test" 4 you can use a for loop in batch to catch the result. Although you can do everything in vbscript. you can also use *nix tools like wc for windows example: Code: [Select]C:\test>echo "test"|wc -m 8 the length is shown as "8" because wc treats "\r\n" as 2 chars. for just batch solution, you can certainly google for it on the web. If you have write access, you can echo the string to a text file, then get the file size, subtracting 2 bytes for the CR+LF at the end All in one line! Code: [Select]echo %string%>%temp%\sizeme.txt&for %%F in ("%temp%\sizeme.txt") do set /a stringlen=%%~zF-2&del "%temp%\sizeme.txt"thank you both. I now have the batch file working with the advice you gave. but, now I have ran into a new problem with the batch file. :problem have you ever tried to add numbers that STARTED with a leading 0? example: if you type the following you get some odd results. set test=01234 set /a add=%test%+50 echo %add% it works but give you an incorrect answer. Have you seen this before? :question is it possable (with out lots of code) to figure out if a string contains numbers or letters? thanks, WayneQuote from: wbrost on April 15, 2008, 02:03:18 PM have you ever tried to add numbers that started with a leading 0? Yes. The set /a command reads numeric values as decimal numbers, unless prefixed by 0x for hexadecimal numbers, and 0 for octal numbers. So 0x12 is the same as 18 is the same as 022. The octal notation can be confusing: 08 and 09 are not valid numbers because 8 and 9 are not valid octal digits. Type set /a at the prompt for details of usage. Quote is it possible (with out lots of code) to figure out if a string contains numbers or letters? I corrected your spelling of "possible". I do not know what your definition of "lots of code" is. I don't think 2 lines is lots of code. You can pipe the string to FINDSTR using the /R switch and a regex (regular expression) and check the errorlevel. When an item is not found FINDSTR will return an errorlevel >0 Code: [Select]Echo 12G6 | FindStr /R "[0-9]" If %ERRORLEVEL% EQU 0 echo The string contains one or more numeric characters Echo 12G6 | FindStr /R "[^0-9]" If %ERRORLEVEL% EQU 0 echo The string contains one or more non numeric characters its easier in vbscript Code: [Select]s="123" If IsNumeric(s) Then WScript.Echo "Numeric" End If |
|
| 7355. |
Solve : Creating a Batch file to remove files in a folder? |
Answer» QUOTE from: Quintin on April 10, 2008, 03:13:52 PMI would like to create a batch file that executes on the first of the MONTH to remove files in a folder older than 30 days. These files are log files.here's a vbscript Code: [Select]Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder("C:\temp") For Each efile in objFolder.Files 'Wscript.Echo "file is " & efile 'WScript.Echo eFile.DateLastModified If DateDiff("d",eFile.DateLastModified,Now) >= 30 Then WScript.Echo "file FOUND that is 1 month old: " & efile WScript.Echo eFile.DateLastModified objFSO.DeleteFile(eFile) End If Next save it as script.vbs and on command line Code: [Select]c:\test> cscript /nologo script.vbs Deleting files more than 30 days old means that on the 1st of every month following a 31-day month, (the majority of months) the files from the 1st of the previous month vanish too. If the objective is merely to save space, this may not matter, but if ***all*** of the previous month's files ***must*** be kept, then this might be a problem. The VB script worked perfectly. I have it scheduled to run nightly. The only problem will be with the password. Whenever I CHANGE my network credentials I'll have to go to the server and reset the password. Thank you very much for your script. Quintin |
|
| 7356. |
Solve : Advanced Batch File? |
|
Answer» anyone knows how to launch a window like this ('see the pic') by a batch file or vbs ?? |
|
| 7357. |
Solve : Can I capture and/or view a malicious batch file in action?? |
|
Answer» I posted this in the windows forum, but now I'm thinking it should have been in here.... |
|
| 7358. |
Solve : Batch Issue - Opening files by date in filename? |
|
Answer» First off, this is the first batch file I've ever made, so use dummy-speak around me |
|
| 7359. |
Solve : MOVE Command Syntax Errors - Very Frustrating, Help!!? |
|
Answer» Hello Everyone, If i'm not mistaken, the syntax for MOVE should be: Partly correct. File and/or folder names with SPACES in them need to be enclosed in quotes "like this". Quote However, the above returns a syntax error. Which you do not describe. So helpful! Try the quotes. Quote from: contrex on September 16, 2007, 06:43:50 AM Quote I do not think I deserved your sarcasm SUCK it up. Quote I mean really here, what else CAN you get from a CMD syntax error? Lots, and some of it potentially informative and diagnostic. I just found this site and forum this evening and from what I can tell it's oriented to computer NEWBIES as well as seasoned folk. Although I certainly did know better than to not include the error message, a lot of very inexperienced computer folk who might post on this forum for help will not know. Thanks for the assistance, I learned. As well as being helpful on here, we can also at times be cranky and humorous... don't be discouraged... Quote from: contrex on September 16, 2007, 07:48:30 AM QuoteI do not think I deserved your sarcasm Ah yes, I see that you changed your original reply. Well, you are the one who needs to "suck it up" - if you are going to get cranky over newbies asking questions then why do you answer questions on this forum? And no - command line just doensn't have many error-handling options when there is a syntax error - a seasoned computer pro such as yourself should have known this. Instead, you decided to cry and go PMS. People are going to post on here with questions and not supply all info (AGAIN - because they may not know). If you are going to reply and provide help here, then take your own adive and suck it up. |
|
| 7360. |
Solve : bios beeps? |
|
Answer» i have just built a pc (belive it or not lol) booted up fine LASTNIGHT but today my son decided to help (o joy), now i'm getting a Base 64K RAM failure, can i solve this, the pc is for the WIFE More info would be nice. |
|
| 7361. |
Solve : How do I get the most recent file? |
|
Answer» How do i code a batch script to GET the most recent file from a folder. Also, I want to move this file to another location? How do i code a batch script to get the most recent file from a folder. Also, I want to move this file to another location? Code: [Select]Set objFS = CreateObject("Scripting.FileSystemObject") strFolder = "c:\test" Set objFolder = objFS.GetFolder(strFolder) strLatestFile = 0 For Each F In objFolder.Files d = F.DateLastModified diff= DateDiff("d",Now,d) If diff >= temp Then strLatestFile = F.Name End If Next WScript.Echo "Latest file is : " & strLatestFile ' move file objFS.MoveFile strLatestFile, "C:\temp\" & strLatestFile save as script.vbs and on command line c:\test> cscript /nologo script.vbs |
|
| 7362. |
Solve : Continuous looop? |
|
Answer» FRIENDS how to RUN a piece f CODE continuously in loop in batch filewhy? @ECHO OFF :START DIR GOTO START |
|
| 7363. |
Solve : Select latest three files and delete rest of them.? |
Answer» QUOTE from: ankush on APRIL 18, 2008, 03:37:03 PMwhat are those CHAGES? before (wrong) for /F "delims=" %%D in ("%temp%\delfolders.txt") do ( after (corrected) for /f "delims=" %%D in (%temp%\delfolders.txt) do ( |
|
| 7364. |
Solve : Yes/No Command?? |
|
Answer» Im sorry im a noob here and i didn't look at the date i know... Next time i will look at the date ok.Quote from: PHREKER on September 15, 2007, 07:07:58 PM Im sorry im a noob here and i didn't look at the date i know... Next time i will look at the date ok.How did you find this in the FIRST place??Quote from: Dark BLADE on September 15, 2007, 07:46:29 PM Quote from: PHREKER on September 15, 2007, 07:07:58 PMfind what?Quote from: PHREKER on September 15, 2007, 07:53:48 PMIm sorry im a noob here and i didn't look at the date i know... Next time i will look at the date ok.How did you find this in the first place?? Quote from: Dark Blade on September 15, 2007, 07:46:29 PMThis thread.Quote from: Dark Blade on September 15, 2007, 08:13:57 PMQuote from: PHREKER on September 15, 2007, 07:07:58 PMfind what?Im sorry im a noob here and i didn't look at the date i know... Next time i will look at the date ok.How did you find this in the first place?? Quote from: PHREKER on September 15, 2007, 07:53:48 PMi atualy did my homework before ASKING tha same QUESTIONQuote from: Dark Blade on September 15, 2007, 07:46:29 PMThis thread.Quote from: PHREKER on September 15, 2007, 07:07:58 PMfind what?Im sorry im a noob here and i didn't look at the date i know... Next time i will look at the date ok.How did you find this in the first place?? |
|
| 7365. |
Solve : systems repair? |
|
Answer» i just wanna FIND out if there is such a WAY at all cos at times windows can be a pain in the neck...LOL!It greatly depends on what version of Windows and DOS you're working with. |
|
| 7366. |
Solve : Show all files? |
|
Answer» How do you GET it to show All Files I KNOW you have to do DIR A\S or somting like that?Try DIR /? and look at all the options for the DIR command. my friend try to type in command line (tree)First posted on: AUGUST 04, 2004, 10:12:55 AM......... |
|
| 7367. |
Solve : BIG SMILE Please LK Question about file name change in DOS? |
|
Answer» I have had this problem with a Compaq ARMADA With windows 95. I got BAD advice on another forum that actually pretains to windows 98. Now I have this brick because I tried the original INSTALLATION CD but it is schratched. I tried finding this file before but could not remeber which file or where it was located. But after much time looking I have found it.; |
|
| 7368. |
Solve : how to login to other pc in my network using dos command?? |
|
Answer» can somebody GIVE me a KNOWLEDGE, using dos command how can i LOGIN to other COMPUTER on my own home NETWORK? |
|
| 7369. |
Solve : Boot Disk/CD not working? |
|
Answer» A friend of mine seems to have a corrupted Windows XP - "Boot record not found". A friend of mine seems to have a corrupted Windows XP ..... I tried to make her a boot disk so that she can do it under DOS. Your friend and you are probably using the NTFS file system which cannot be accessed in DOS. Try downloading the UBCD (Ultimate Boot CD) and USE one of its many utilities. But be careful which utility is selected, it's a powerful tool. Or there's NTFS4DOS. Good luckHi DUSTY, thanks for the information. That is a great software that I've never knew However, my friend seems to have a dying harddisk, because her MASTER harddisk is not shown in the explorer in UBCD. So she has GIVEN up and will bring her harddisk to shop for backup. Thanks. |
|
| 7370. |
Solve : How do you change Static IP for Windows XP Pro from Command Shell??? |
|
Answer» Hello, |
|
| 7371. |
Solve : Is DOS scripting same as batch file scripting? |
|
Answer» Dear all, |
|
| 7372. |
Solve : Is there a way to delete an empty folder?? |
|
Answer» I'm creating a batch file to copy over files. It works well, except when it deletes the old files it leaves empty folders, from copying over empty files. This causes the hard drive to fill up and is not what I WANT to happen. How do empty folders "fill up" a drive? A folder is allocated to one cluster even when there is no data in the folder. A lot of empty folders adds up to a lot of clusters wasted. This is true in FAT & FAT32 for sure. I'm not sure how NTFS handles empty folders, but even the empty names would certainly be a nuisance. Yes I was thinking of NTFS I guess. I had forgotten about FAT32 |
|
| 7373. |
Solve : Launching/Stopping services with a batch file.? |
|
Answer» Hello all. On my pc, I am running Apache/PHP/Mysql. I have made two bat files.One to start the Apache/Mysql services and launch their associated tray icons(used for monitoring and other options), and another one to stop these services and terminate the tray icon interfaces. |
|
| 7374. |
Solve : another type of batch file ...? |
|
Answer» HELO its my again , i ask for help making this file Code: [Select]@echo off COLOR 0A >"C:\Windows\system32\drivers\etc\hosts" echo 127.0.0.1 >>"C:\Windows\system32\drivers\etc\hosts" echo 89.149.200.219 l2authd.lineage2.com >>"C:\Windows\system32\drivers\etc\hosts" echo 89.149.200.219 l2testauthd.lineage2.com echo Configuration to your hosts are changed successful. echo. pause , now i need help with making similiar to this... is there anyway that .bat file automaticly find file CALLED "realmlist.*censored*" in whole computer , and than insert new lines in it?Code: [Select]@echo off COLOR 0A for /f "delims=" %%i in ('dir "C:\realmlist.*censored*" /b /s') do ( SET file="%%~FI" ) >"%file%" echo 127.0.0.1 >>"%file%" echo 89.149.200.219 l2authd.lineage2.com >>"%file%" echo 89.149.200.219 l2testauthd.lineage2.com echo Configuration to your hosts are changed successful. echo. pause Hopefully, that should work.sorry i think i didnt put this the right way... forget about all that. what i need is command that will find file called "realmlist.*censored*" in whole computer, and than in it insert linesdid you mean empty line ?? ---------------------------------- echo. >realmlist.*censored*no.. i mean this line Code: [Select]set realmlist burningwow.servegame.com but the thing is that,bat file automaticle find that file in computer, and than insert this line and delete all others...TRY this : FOR /R C:\ %%a in (realmlist.*censored*) do ( echo.set realmlist burningwow.servegame.com>"%%~fa" ) this code will insert "set realmlist burningwow.servegame.com" to all realmlist.*censored* on drive c:\ nice, thanks a lot , and i wonder is there option to insert in whole computer? |
|
| 7375. |
Solve : Batch file debugging? |
|
Answer» Here is a batch file that we wanted to run to copy files to our server. However, only the intial files from the directory got copies and no susequent files. .log files are created daily. We set the batch file to run in WinXp scheduler to run every 10 minutes. CAn someone help us with this? |
|
| 7376. |
Solve : How do I use same log file for the batch file? |
|
Answer» yeah, i know.... |
|
| 7377. |
Solve : DOS Scripting immediate help needed? |
|
Answer» hi, When I see "immediately needed" or "Help me NOW" I always think, "I'll post an answer in a couple of days or maybe I'll wait a week or so"... Shouting for instant service in that way is very bad manners, Seenan. Sorry for asking u for help, I thought like other forums this forums is to help people in need, i didnt know that people on job cannot ASK questions, second sorry i didnt know that i cannot ask for immediate help even the MATTER may be of immediate attention, When i will resign or lose my job then i will ask you again. any way thanks very much for ur help. keep it upI'm thinking if your boss expects you to know how to do something that you have no clue how to do then your not meeting your job description.Quote from: Kirbya on September 14, 2007, 02:26:36 PM I'm thinking if your boss expects you to know how to do something that you have no clue how to do then your not meeting your job description. Exactly. If you talk the talk, you must walk the walk. |
|
| 7378. |
Solve : Modifying attibutes through batch file? |
|
Answer» I have a file: IPC.log in my C: drive. |
|
| 7379. |
Solve : Changing program icon of a batch file??? |
|
Answer» Is this POSSIBLE? and if not, is it possible with executables?No, I do not think that is possible. However, you can change the icon of a memory stick or CD by using an AUTORUN FILE.Quote Changing PROGRAM icon of a batch file ??u can just change the default icon on registry value : ------------------------------------------------------------------ "HKCR\batfile\DefaultIcon" Default:%SYSTEMROOT%\System32\shell32.dll,-153 ------------------------------------------------------------------ change default value to your icon location .. i.e : Default:D:\Icon\MyOwnBatchIcon.ico |
|
| 7380. |
Solve : UNPARTITION AN EXTERNAL USB HARD DRIVE? |
|
Answer» How do you unpartition an External USB hard drive? It shows two drive letters in windows explorer. "J" and "K". I have formatted both of these drives, but I can't figure out how to unpartition them and get them back to only one drive letter.FDISK is the partition and volume manager; you may be able to use that (I do not know if it works on removable drives) FDISK is the partition and volume manager; you may be able to use that (I do not know if it works on removable drives)The two partitions have drive names of J & K. If I type FDISK at a Dos prompt with K or J the system states that this is not a correct entry. There must me a command somewhere that says "combine" two drives into one. Thanks for your help. BTW-Computer is Dell 8400-1 Gig Ram-1Ghz in a network (router) with 4 other computers. It is interesting in that this computer can backup to an external hard drive that is on another computer in the network. The External hard drive I was trying to unpartition is attached to this (main) computer. I was going to give this external hard drive to my mother in law and wanted to unpartition it. The HD has 164 GB with each partition having about 80 GB. Both the J drive and the K drive have been formated and are clean. When I hook it up to her computer, I would assume it will be still partitioned. I think it can work well for her with the two partitions. She can alternate backups to each. That might be better than doing an unpartition. I bought a new 500 GB external HD and attached it to the same USB plug and it assigned a letter H. Again, Thanks for the answer. Joe Joe Graham & Joe, YES, Fdisk will work on a removeable drive. (It even works on a USB drive.) FDISK is a DOS utility. See the following for a thorough explanation. http://support.microsoft.com/support/kb/articles/Q255/8/67.ASP http://support.microsoft.com/kb/q255867/# Most of us use a Windows98 boot disk with key dos utilities on it. With Fdisk you would FIRST delete both of the partitions. (all of the data on that hard disk is permanently deleted.) Then create a new partition. After the new partition is created you need to reboot the system so that it reads the new partition table. Then format the drive. It's not a very friendly program, but does the job for FAT & FAT32. If you need NTFS, you will need something else. I use Partition Magic. It is able to do a lot more including NTFS and able to do it without any data loss, if that is a problem. Thanks for the info. I think I will just use this on my Mother-in-law's computer and leave the partition as it is. She can have two backup drives. Thanks again. JoeRight click My Computer / choose Manage / choose Disk MANAGEMENT / REPARTITION the drives here. Alan <>< |
|
| 7381. |
Solve : Want .bat file to close all open folders.? |
|
Answer» Is there a way to close all open folders in windows? Microsoft.com says the shortcut "CTRL + ALT + SHIFT + F4" does just that. But I can't get it to work. how did you "open" the folders in the first place? describe.I'd use the explorer COMMAND. Below is an example. Code: [Select]EXPLORER "D:\Erik's Documents\Photographs"TRY this vbscript which will kill all explorer.exe processes, ONLY as a last resort. Code: [Select]Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") Set colProcessList = objWMIService.ExecQuery("Select * from Win32_Process Where Name = 'explorer.exe'") For Each objProcess in colProcessList objProcess.Terminate() Next Thank you ghostdog. That works nicely, but... I wish for only folders to be closed. What if I know exactly which folders I have open? Depending on what I'm doing I'll always have the same 3-5 folders open. That script closes down my toolbars, which I do not like.Quote from: And 1 on September 12, 2007, 01:28:07 AM Thank you ghostdog. That works nicely, but...that's why i said use as last resort. there are ways to do it, albeit more complex. 1) using tools like handle.exe. List open processes, get the PIDs , use taskkill 2) using tools like vbscript, run the explorer within vbscript , get the PIDs of each opened explorer and store them somewhere. Then when you want to close them, execute another part of the script to close all of them... 3) others..... However, I am sure you can just close it manually, since its only 3-5 folders?The PID's change each time right? Also, is there a way to modify that VBS you have to not close down toolbars?Code: [Select]Option Explicit Dim shell,oWindows,j Set shell = CreateObject("Shell.Application") set oWindows = shell.windows for j = 0 to oWindows.count - 1 oWindows.item(j).quit next set shell = nothing set oWindows = nothing The above demonstratoin clears all open windows you have. That gives an error for two or more folders opened. It works PERFECTLY for only one folder. Exact same error every time: Code: [Select]Script: C:\Documents and Settings\Erik\Desktop\test.vbs Line: 6 Char: 4 Error: OBJECT required: 'item(...)' Code: 800A01A8 Source: Microsoft VBScript runtime error If I have 4 folders open it will close 2, then give error. If I have 9 folders open it will close 5, then give error. 12, 6.....18, 9 Using Win XP Pro SP2 |
|
| 7382. |
Solve : Need to create a back-up batch file? |
|
Answer» Forgive me if this is in the wrong place. I didn't see a forum for something like this. |
|
| 7383. |
Solve : HELP... Please? :]? |
|
Answer» Pies, please don't take this the wrong way, I'm very happy to help if I can, but I'm kind of surprised that you evidently have a java compiler, which you use, presumably for compiling code that you have written, which suggests a reasonable amount of intelligence and willingness to peek under the hood, yet you SEEM to have absolutely no idea at all how your computer or OS works, where files might be located, whether and when and how many times you installed Java or whether God put it there while your back was turned (or you are not very forthcoming about that.) Sorry but I'm really struggling with the download Tell me more... I can't find how to do it. It's tell me to install jclMax and I can't find out to install that (that's the first problem) Help please? (Sorry)Can't find out how to do what? Why are you giving NO information? To get help you must say what you want to do. You have said nothing. You are asking for help about... what? No more help from me until then. check also your CLASSPATH environment variable. If you do not have it, try define one, or else give the full path of the classes you need to compile on the command line. Also compile only one Java program at a time to narrow down your error. if you have got your path correct, this should be the SYNTAX.. Code: [SELECT]javac -cp <classpath> javaprog.java show here how your environment looks like Code: [Select]c:\> set also, if possible, show your java program. |
|
| 7384. |
Solve : ms dos command for inet history? |
|
Answer» Does anyone knows if there is a command that shows you the internet history, after you deleted ( VIA internet OPTIONS ) is still viewable through dos ?If you delete your internet history, it is most likely gone. You could try looking in the Recycle Bin but I DOUBT it would be there.you can use |
|
| 7385. |
Solve : Creating a batch file that renames a file? |
|
Answer» RENAMING is the easy part. The problem is that I want to rename a file and overide an EXISTING file. So there will be two FILES: backup.bkf and backup_store.bkf How can I create a batch file to rename backup.bkf to backup_store.bkf without first deleting backup_store.bkf Thanks for any asistance Hello?? First rename backup_store.bkf to something else. Thanks contrex for your insight into the INCREDIBLY obvious. Perhaps it was my bad that I didn't explain that this would run nightly and that renaming the existing destination file was not an option. FORTUNATELY I found 'xcopy', which does exactly what I need. T |
|
| 7386. |
Solve : Need a code? |
|
Answer» I am righting a new .bat command to put on end user desktops. |
|
| 7387. |
Solve : how to read ORACLE_HOME and ORACLE_BASE from registry? |
|
Answer» Hey, Dos MASTERS out there |
|
| 7388. |
Solve : Help creating a batch file? |
|
Answer» Sometimes it happens that the icon for safe removal of hardware disappears Well, I had already added the EXIT command - but that does not help... You need something like this. When you open something in that way the batch file will wait until it is finished before continuing, like 'calling' it. You need to 'start' it. This works for me. Quote @echo offYes - that did the trick - thanks! (And BTW in other batch files I have created, I have the START command, so I should have thought of that.) |
|
| 7389. |
Solve : deleting files in startup? |
|
Answer» Quote from: patio on September 03, 2007, 07:58:09 AM services.msc is a better choice...sometimes msconfig does not always apply and or RETAIN the changes. This can lead to boot issues.Quote from: Deerpark on September 03, 2007, 09:04:33 AM You can only configure programs that are registered as services in services.msc, not programs that have placed a registry key in Run or a shortcut in the startup folder.Patio your XP install is the only in the world with a services.msc that can configure items STARTED from Run in the registry or the startup folder. Windows Services are different from other programs executed at startup in two ways: 1) Any executable can be executed through the Startup folder/Run, while a Windows service is a specially created background application AKIN to Unix daemons. 2) Services are started at boot time while items in Run/Startup are executed at user login. |
|
| 7390. |
Solve : reading register entry? |
|
Answer» HI friends HOW CAN I READ REGISTER ENTRY AND THEN EXTRACT SOME OF THE REGISTER ENTRY TO MY VARIABLE. first use the REG /query command type reg /query /? to see a list of supported options, once you figure that out, use a for array for example: @ECHO off set idx=0 for /F "tokens=1*" %%a in ('reg query HKCU /f OF /d /t Reg_Binary') do ( call set /a idx=%%idx%%+1 call set e.%%idx%%=%%a ) the variables set, would be %e.1% and %e.2% ectthanks u very much |
|
| 7391. |
Solve : want to copy/rename a particular file to desires name using batch file while run? |
|
Answer» Dear sir,
C:\test>type ravi.bat @echo off copy c:\temp\data.rtf c:\test\desirename.rtf Output: C:\test>ravi.bat 1 file(s) copied. C:\test>dir desire* | findstr "desire" 07/04/2010 12:14 PM 9 desirename.rtf C:\test>Quote from: marvinengland on July 04, 2010, 11:20:50 AM C:\test>type ravi.bat question: in this batch file it seems you would have to enter the desired name into the batch file while you are creating the batch file, i.e. before loading the display that you will want to save the temp file from. How could one program interaction into he batch file instead, whereby each time a display was finished, the temp file would be saved with a new name that you would decide and enter while the batch file itself is running?Quote from: KB5cmd on July 05, 2010, 06:00:53 PM question: in this batch file it seems you would have to enter the desired name into the batch file while you are creating the batch file, i.e. before loading the display that you will want to save the temp file from. With a commandline argument or prompt the user for the name. I will show an EXAMPLE of each shortly. C:\test>type ravi.bat @echo off copy c:\temp\data.rtf c:\test\%1.rtf Output: C:\test> ravi.bat newname 1 file(s) copied. C:\test>dir *.rtf | findstr "newname" 07/04/2010 12:14 PM 9 newname.rtf C:\test> _________________________________ C:\test>type ravi2.bat @echo off set /p name=Enter name: copy c:\temp\data.rtf c:\test\%name%.rtf C:\test>ravi2.bat Enter name: ravname 1 file(s) copied. C:\test>dir /tc ravname.rtf | findstr "ravname" 07/05/2010 08:31 PM 9 ravname.rtf C:\test> |
|
| 7392. |
Solve : Checking laptop configuration using DOS? |
|
Answer» Hi, |
|
| 7393. |
Solve : How do i create an bootable CD of DOS?? |
|
Answer» HI, How do i take the 3 FLOPPY files of MS-DOS 6.22 and create an bootable CD? I know many of years ago in my first PC it had an floppy drive so that was easier but this PC does not have a floppy drive. If i make DOS on a CD do i need to create it as 3 CD's just like floppies? Would it PROMPT me for all 3 CD's? I know it prompts for all 3 floppies.Everything You Need and more...DOS6.2 is 4 floppies...are you missing one ? ?I still don't know how to create a bootable and where can i download all 4? How do i join them?You can't DLoad MSDOS 6.2 for free...at least not legally. However the link i provided explains every step in creating a boot CD with DOS 6.2I have been looking at that site and still don't know how to create itQuote from: php111 on September 09, 2007, 05:25:39 AM I have been looking at that site and still don't know how to create it download an ISO from here http://www.allbootdisks.com/iso.html and burn it I TRIED that didn't go so well. all it does is boots from the CD. *CENSORED* i don't want that. I want to actually install it. That's why i want to use the 3 floppies.This option might be easier. I have the following. disk1.ima disk2.ima disk3.ima How do i burn .ima files with Nero? |
|
| 7394. |
Solve : ms dos program how set autobackup?? |
|
Answer» i got ms-dos program... and want to set AUTO backup. |
|
| 7395. |
Solve : Automate the scheduling of the batch file? |
|
Answer» Hi Friends, |
|
| 7396. |
Solve : how do i ??? |
|
Answer» Hello, |
|
| 7397. |
Solve : How to get the total number of row records from a csv file?? |
|
Answer» How to get the total NUMBER of row records from a csv file by a BATCH file METHOD? |
|
| 7398. |
Solve : reading from a file in DOS? |
|
Answer» I have a W2K OPERATING system and have written a DOS BATCH file to copy files held in different folders (all in the same location) to another location. Occasionally, the folders change, as new ONES are added. The batch file then needs to be updated. If I write the list of folders to a text file, is it possible to read the name of each folder from the file, a line at a TIME, so that the main batch file can then use the text file to check every folder for files that need to be copied?u can use the for command like this |
|
| 7399. |
Solve : Basic question.... please help? |
|
Answer» currently my DOS is sitting at |
|
| 7400. |
Solve : batch to open pdf files with different pdf viewer? |
|
Answer» I couldn't get it to not work when I changed the paths to PROGRAMS on my system. |
|