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.
| 5851. |
Solve : Message Boxes? |
|
Answer» Hey everyone, I got the following. How did you ever get a message box? looks like its time for an UPGRADE msg is in XP, see here Quote looks like its time for an upgrade LOL - Well, not THAT INTERESTED. Actually, the NT system had such a thing in a directory of special stuff for networks which I deleted on my home computer. Too much stuff I will not use. Thanks for the info. Mac If you remove portions of the operating system there are a lot of things that won't work...Quote If you remove portions of the operating system there are a lot of things that won't work... True, but it was an add-on directory. http://www.microsoft.com/resources/documentation/windowsnt/4/server/reskit/en-us/reskt4u4/rku4list.mspx I deleted over 4 years ago and never had a problem. I note that MSG was not there and now I vaguely remember my DBA days where we use NET SEND, I believe, for that function. Mac That can't be done, but it will work if you use vbscript. Code: [Select]MsgBox "hello",48,"Warning" Can that only be a vb extension or can you put that in DOS somehow to have the same result? Thanks just wondering |
|
| 5852. |
Solve : DOS programs only load in a small window? |
|
Answer» Long ago I asked this forum why my windows vista would only open DOS in a window. Someone suggested I go into the properties and check the "full screen" box. I did that. Now when I open DOS, it opens in a full screen. But when I load a program (Multimate, Nutshell, Managing Your Money) it reverts to a small window, and there's no way I can enlarge it. Can anyone help?Is it DOS or your program that reverts to a small window? Also, how do you open the program? If it's a program that goes small, then you could TRY opening the program by using: Or click the icon in the top left corner of the DOS box & alter the Properties and save them, choosing "save properties for all windows with this name". Quote from: Dark Blade on February 16, 2008, 12:31:29 AM Is it DOS or your program that reverts to a small window? Also, how do you open the program? If it's a program that goes small, then you could try opening the program by using: The reason both can be right is that it all DEPENDS on the method you are using to start your program. If starting from a batch file use Dark Blade's fix. If starting with a windows shortcut, use Dias de verano's fix. What is happening here is that you are only altering one windows shortcut at a time. For instance, if you have a copy of "Command PROMPT"(.lnk) (Windows shortcut to cmd.exe) in your game folder, the properties of that cmd shortcut only are altered. When you go to Start-Programs-Accessories-Command Prompt, you will still get the small window. Each shortcut must be altered individually. (If there is a way to do more than one at a time, I'm not aware of it.) You can get to the shortcut properties the way described above, but what happens when you decide you want to change it back. "Ouch" there is no title bar to right click on. Remember - the properties you are altering are in the shortcut, not in the CMD window. So: Right click the windows shortcut-click Properties-Options-select Window or Full Screen-Apply-OK Repeat on the shortcuts to each program, one at a time. I should ADD. this method should work on nearly all of your programs, but on occasion, a program will simply ignore your setting to "Full Screen". Apparently the programmer didn't see the need to include that functionality. |
|
| 5853. |
Solve : deleting files older than 3 months? |
|
Answer» hi thanx for the reply. I wanted to know is it not possible to write a batch file for this . Actually i require a batch script which i will schedule to run once a month , to achieve the purpose. So if anyone can provide me a batch file meeting my requirement , i would be really glad. and also thanx in advance.i have shown you in my post. the utility is called find and how you would use it in a command prompt. you can easily adapt to a batch script. Just that one line will do what you want. And yes , its possible. What it takes is a LITTLE bit of effort to get started.Won't that conflict with the built in Windows find? I had to rename the GNU ECHO util to gnuecho.exe to avoid a similar problem. Quote from: Dias de verano on February 16, 2008, 12:25:52 PM Won't that conflict with the built in Windows find? I had to rename the GNU echo util to gnuecho.exe to avoid a similar problem.it won't. If you installed GNU find in say C:\gnutils\bin , then just simply putting this path in front of your current PATH ENVIRONMENT variable will enable the OS to run the GNU find first. nobody says you need to install into system32 Quote from: ghostdog74 on February 16, 2008, 07:46:53 PM If you installed GNU find in say C:\gnutils\bin , then just simply putting this path in front of your current PATH environment variable will enable the OS to run the GNU find first. Excellent tip. Thanks. |
|
| 5854. |
Solve : Echo Text after running a batch file? |
|
Answer» Hi, ECHO FINSHED That would make it echo "finshed" and not "finished" |
|
| 5855. |
Solve : close the console window from batch? |
|
Answer» HI! my batch file STARTED to play a video with camtasia player: @ECHO off CamPlay.exe /M /S test_TSCC.avi @exit i would like to close the cmd WINDOW while the video is playing, but it seems the @exit statement is unreachable, the console window appear all along. Does anybody know how i could close the cmd window? Thanks!Use the START command like this then the Camplay app will be started and control will pass back to the batch which will then process the next line. You don't need the exit command if there are no more lines, because the batch will exit anyway, and you did not need the @ sign before exit, because you already TURNED command echo off at the beginning. Quote okay, thank you very much! |
|
| 5856. |
Solve : help with IF Array? |
|
Answer» using an if array , how can i MAKE SOMETHING similar to this work? i want line 1 , to goto line 3 , and line 2 to goto line 4
I must say, in a friendly way, that you sure write cryptic, hard-to-read code!!! Ever heard of meaningful variable names? Or if you didn't write it, but have to maintain it, you have my sympathy! |
|
| 5857. |
Solve : Can u Convert a COM File back into a Batch File?? |
|
Answer» thanks!ah crud. i used the ASCII characters in my batch FILE but they come out as different characters when i run the batch file.YES, ah crud. i used the ASCII characters in my batch file but they come out as different characters when i run the batch file. Sorry, should have mentioned that I use Edit.com in XP and W2k to create the script as this ties in with the 'Dos' side of THINGS, not sure what other editors will produce. Apols.oh then i'll try edit Man was i wrong ( I wasn't even in the ball park). Thanks for setting me straight patio and llmeyer. |
|
| 5858. |
Solve : Zipping files using batch file? |
|
Answer» Is there a way to: You're making this harder than it has to be. You had all the pseudo-code laid out, all you needed to do was code it up: That's just it, the cscript and vbs stuff is completely foreign to me. Coding it up was not possible so I would need expernal programs like pkzip and batch file for a time delay... I do appreciate your work and will let you know how it turns out. ThanksI have run the code(bat & vbs) and encountered some problems: There is the code I am using at present: Code: [Select]@echo off md c:\docume~1\brianb~1\desktop\TEXTZ\ cd /d i:\ for /f "tokens=* delims=" %%x in ('dir /s /b /a:-d *.txt') do ( copy "%%x" C:\docume~1\brianb~1\desktop\TEXTZ\ ) cscript grabnzip.vbs rd C:\docume~1\brianb~1\desktop\TEXTZ\ /s/q As a test I altered the code to copy some txt files... The first problem I had was that a folder was not created, but rather a file with no extension. So I added the line to make a directory. I also changed the folder path to be the same as the .zip destination. Code: [Select]strTargetFile = "C:\docume~1\brianb~1\desktop\TEXTZ.zip" Set fso = CreateObject("Scripting.FileSystemObject") Set zip = fso.CreateTextFile(strTargetFile) zip.Write Chr(80) & Chr(75) & Chr(5) & Chr(6) & String(18, 0) zip.Close WScript.Sleep 500 Set objShell = CreateObject("Shell.Application") Set objFile = objShell.NameSpace(strTargetFile) Set src = objShell.NameSpace("C:\docume~1\brianb~1\desktop\TEXTZ\") objFile.CopyHere src WScript.Sleep 30000 After all the code ran I did get a folder created and the txt files(15) were copied to the folder. Then the folder was deleted, but there was no zip file created. It seems that at this point I might as well use pkzip as I can't achieve my goal with a single batch file. So if I use a .vbs file or pkzip.exe makes no difference. You're also ignoring how powerful PKZip is/was...it went outside of DOS/batch limitations in ALOT of ways way before it's time and it would be a good learning experience to do some more research along with the link i provided... XTree Gold is another example of batch/scripting on steroids but takes some getting used to...actually that's innaccurate. It's not a batch/script tool rather a powerful DOS shell.Using PKZip is a fine alternative. I only posted because you originally wanted to use the built-in capabilities of Windows. When I tested my original code, it worked fine! I'm very surprised the TEXTZ.zip file did not end up in C:\docume~1\brianb~1\desktop. I'm going to take it on faith that brianb~1 is your account. Good luck. Quote from: patio on January 04, 2008, 02:01:59 PM You're also ignoring how powerful PKZip is/was...it went outside of DOS/batch limitations in alot of ways way before it's time and it would be a good learning experience to do some more research along with the link i provided... I will take the time to read the pkzip documentation. It's not a short doc but like you said it may be all I need.Quote from: Sidewinder on January 04, 2008, 02:44:47 PM When I tested my original code, it worked fine! I'm very surprised the TEXTZ.zip file did not end up in C:\docume~1\brianb~1\desktop. I'm going to take it on faith that brianb~1 is your account. At first it did not. After using PKZip.exe it did, but it contained files other than the ones from the TEXTZ folder. The trouble I was having was that I refferenced a thumb drive for the test(I:\) and once there it could not change directories back to the hard drive(C:\). Not that I found this out the original code you wrote might work. I am going to revisit it. Yes brianb~1 is my account. I also searched all drives for the file but found nothing. P.S. What does the "/d" after the CD command designate? It doesn't show up as syntax for the DOS CD command reference. Sidewinder, I got your code to run. as wel as a PKZip version. It might be possible for PKZip to do it all by itself, but for now I am satisfied. This is the code that worked for me: Code: [Select]cd /d d:\ md TEXTZ cd /d d:\testfold\ for /f "tokens=* delims=" %%x in ('dir /s /b /a:-d *.txt') do ( copy "%%x" d:\TEXTZ\ ) CD /d C:\Docume~1\brianb~1\desktop\ cscript grabnzip.vbs rd d:\TEXTZ /s/q exit Code: [Select]strTargetFile = "C:\docume~1\brianb~1\desktop\TEXTZ.zip" Set fso = CreateObject("Scripting.FileSystemObject") Set zip = fso.CreateTextFile(strTargetFile) zip.Write Chr(80) & Chr(75) & Chr(5) & Chr(6) & String(18, 0) zip.Close WScript.Sleep 1000 Set objShell = CreateObject("Shell.Application") Set objFile = objShell.NameSpace(strTargetFile) Set src = objShell.NameSpace("D:\TEXTZ\") objFile.CopyHere src WScript.Sleep 15000 I'd still like to know what CD /d means... Thanks for your help. patio, thanks for your insite as well. I will be examining the POWER of pkzip soon! Forgot...here is the batch file code using pkzip. Code: [Select]@echo off cd /d d:\ md TEXTZ cd /d d:\testfold\ for /f "tokens=* delims=" %%x in ('dir /s /b /a:-d *.txt') do ( copy "%%x" d:\TEXTZ\ ) call PKZIP c:\docume~1\brianb~1\desktop\TXTZ.ZIP d:\TEXTZ\*.* pause rd d:\TEXTZ /s /q exit Brian |
|
| 5859. |
Solve : copy large files from unformated/unknown partition? |
|
Answer» hello everybody! first of all, i know Ive messed up....really bad You did goof...since it's a laptop chances are the other partition is the Recovery partition which contains all the Recovery files and a copy of the OS... Yes I goofed about telling marcusb to go ahead and format the partition with the data but I don't think the second partition is a recovery partition(even though many laptop makers do use that recovery method). marcusb said: Quote from: marcusb on February 11, 2008, 03:10:06 PM i used the recovery Cd's he got from acer to set win xp back to square one. 5min after i started cd1 ... Most likely, since he has multiple recovery Cd's, the recovery data is on the Cd's, NOT on the HD. At any rate my last suggestion would be the quickest, safest, and least expensive because the program is free, and safest because it makes NO changes to the HD. Quote from: llmeyer1000 on February 12, 2008, 08:17:59 PM Another good option I just thought of is Bart's PE. Download and setup Bart's PE on another computer. Use the Bart's CD to boot the laptop. You will then have a stripped down version of WinXP to work with. This method is probably the quickest and safest, and will work for you. Guaranteed or your money back. The guarantee was meant as humor(in a not so funny problem), but the rest was serious. By the way it's available in XP or 98. www.nu2.nu/pebuilder/ Bart's PE Builder helps you build a 'BartPE' (Bart Preinstalled Environment) bootable Windows CD-Rom or DVD from the original Windows XP or Windows 98 Cd's. You might still need some recovery software if the partition is indeed formated, which I doubt. You said: Quote from: marcusb on February 11, 2008, 03:10:06 PM i booted the laptop with a boot cd and started browsing the partition with ms-dos. the files were still there but the disc is unformatted, unknown or something like that. If you can see the files in DOS, I doubt the partition is unformatted. You should be able to see then in Bart's PE without any special software. I can't remember if Bart's will find the USB stick after it is booted up, so you may want to put it in first. i tried to boot with this bartPE but C:\ is empty when i run "a43 File Managment Utility" It sounds like you did everything right. The "a43 File Management Utility" is the equivalent of windows explorer and would normally be able to see your files. I am surprised that since you said good ol' DOS could see them that the "a43 File Management Utility" could not. Did you DOS by itself, or some DOS based program, such as Norton Disk Editor or ...? I'm guessing that it is a FAT partition rather than NTFS. (DOS by itself can see only FAT.) Obviously there are some serious problems with the partition. Anything is possible but since DOS can see quite a bit of the drive, it is very likely that the damage is limited to the system area of the drive. The MBR must be intact, or you couldn't see the partitions. It is most likely that the damage is in the Boot record of drive C: and possibly some FAT(File Allocation Table) damage. Since FAT partitions have 2 copies of the FAT, it is possible that DOS is using the second FAT table, while the Windows "a43 File Management Utility" is unable to. But that doesn't help you recover the files. It is very likely that DOS's scandisk or Norton Disk Doctor(the command version) could identify the problem and fix the errors on the drive. Then Bart's PE should work for you. That "probably" will work,... I say probably BUT... While Scandisk and NDD are awesome utilities and can usually (maybe 99% of the time) correctly identify and repair a drive, I have used both and on one drive NDD totally messed it up it up and made further data recovery virtually impossible. Anytime you write to a drive with data on it, you are taking some risks, and in the case of Scandisk, you are trying to repair the drive itself. Since the utility that comes with Bart's isn't working, you have 2 choices that I can see. The quickest is to use scandisk and let scandisk repair the drive, then boot with Bart's and hopefully the files are visible. There is a good chance that will work. The safest method is to connect the HD to another computer if possible(possibly not on the laptop), Or... Get data recovery program that is capable of reading the drive and analyzing the file system without making any changes to the drive itself. You would then make a new boot disk(Bart's PE) with the recovery program (possibly GetDataBack) on the disk. (Or the program could possibly be copied to an external drive and run from there.) This method will most likely cost a few bucks and will take considerably more time, but is the safest. It depends on how valuable the data is to you and your father. It's up to you, but ... I think you might want to try scandisk(or NDD). They usually do the right thing. Expect a message or 2 such as: "Your boot record is corrupted. Do you want to repair it?" "One of the copies of the FAT is damaged. Do you want to repair it?" Say yes and hope for the best.i just have to say that everything is recovered now. the suggestions llmeyer1000 gave me with bartspe and getdataback worked out great |
|
| 5860. |
Solve : Change screen resolution in DOS? |
|
Answer» I am running Windows 98SE on a Dell Latitude CPi laptop with Neomagic graphics. I need to run an old graphics DOS APPLICATION. When I reboot from Windows to DOS not all the screen is used for the DOS prompt. I would like to change the resolution to use the full screen which is what the application requires. I don't know much about DOS but I have put the each of following lines in the config.sys and config.dos files in turn and rebooted the machine each time: |
|
| 5861. |
Solve : SET variable not working in an 'if' or 'for' loop of windows batch script? |
|
Answer» Once I get into a 'if' block or 'for' loop in a batch script, it doesn't recognize the SET variable. I found something about CMD /V:ON to enable the delayed execution in a batch script; but then how would you run it in a batch script. When I enabled the CMD /V, the batch script won't run any further beyond that.
This second script will work because delayed expansion is enabled and because !number! and !answer! have exclamation marks INSTEAD of percent signs. Once you are outside the IF block or loop you can use the variables with % signs and they will show up. Quote
|
|
| 5862. |
Solve : Set name? |
|
Answer» Hi |
|
| 5863. |
Solve : Mountvol questions? |
|
Answer» I am as the name IMPLIES a newbie. I have a HP with windows XP Home with several Mountvol's listed. Why would this be? Is this part of system restore? I deleted one and was shut off of the computer, nothing WORKED. I had to do a complete restore with the HP disks and they are all back. I have a HP with windows XP Home with several Mountvol's listed Where do you see this list? EVERY PARTITION on your system has a mount point, so I'm unsure why you want to eliminate them. You can check the Mountvol command for more info. |
|
| 5864. |
Solve : Installing MS-DOS 6.0 over MS-DOS 5.0 - will I lose my data??? |
|
Answer» LAST night I had one of those heart-stopping moments when my pc went wrong - the oldest and most stable of the four computers we have at home...... Its a Viglen Professional 486 PC, model 4DX33, November 1993 vintage, with what must be a very small hard drive and a 3.25 inch floppy drive. It is being run using MS-DOS 5 and Windows 3.1. Yesterday my next door neighbour gave me an almost new wide-screen monitor, and in attempting to get it working with this pc I have, to cut the story short, corrupted MS-DOS, such that I can no longer access the hard drive. Last night I succesfully reinstalled MS-DOS 5.0 and then Windows 3.1, apparently without losing any data. This morning, in attempting to get the mouse cursor to appear on MS-DOS Works, (and obviously not knowing well enough what I was doing) I started installing MS-DOS 6.00 - but when I got to the part of Setup which says "To have Setup configure your hard disk choose the recommended option (which was to configure the first hard disk). If you choose this option all files on the disk will be removed" Horrors!! I don't want to lose any data - I mustn't - so I aborted the process. I thought (!) that I might be able simply to GO back to MS-DOS 5.00 and work with that, but restarting (ctrl+alt+del) with the MS-DOS 5.00 Setup disk in drive A eventually brought the message "MS-DOS version 5.00 files cannot be installed on you hard disk because all the primary partition table entries on your disk are already in use. To create a set of MS-DOS version 5.00 disks, press enter" I duly made a set of v.5.00 disks, though I do have my original 1993 disks anyway, but these were of no help. The situation now is that I can only run the A drive - I can't change to/access the C drive, so I can't get to my data (which is all in Works - both DOS and Windows 3.1 versions). Most of it is financial and membership information relating to various organisations I am involved with, going back 30 years in one case, and it would be impossible to resurrect it all by transcribing it from paper records, apart from the time involved, so I'm FEELING rather at my wits end. When I reinstalled MS-DOS 5.00 last night no data was lost. Would installing MS-DOS 6.00 on top of it really wipe all files, including the data, from the hard drive, as the on-screen wording suggests, or is it just the operating system files which will be removed?? Are there any other options open to me? I should be most grateful for any advice. Thank you. From a devastated and distraught 72 YEAR old in North Wales, UK peterb |
|
| 5865. |
Solve : For each? |
|
Answer» Does anyone know how to do in a loop certain actions for each line there is in a text file. This snippet is down and dirty. Actually it's coded specifically for the data presented and is not a generic solution. That worked perfectly sidewinder. I'm glad to see that you're still on these forums and so helpfull towards others. I haven't been here in a long long time, how are you HOLDING up? EDIT: another quick question: how do I make that I see in the begin from the output (so before the loop) I see a total of all the lines in the other file (plus one) (=the count of the last line + one). for example there are five lines lines=6 (what the LOOPS give you) ..Hey Blackberry, GOOD to see your posts again. You should have stuck around, the regulars all got 10% pay increases (you do the math). Numbers sort before alpha, so using your data simply sorting the file is one solution: Code: [Select]@echo off setlocal enabledelayedexpansion set count=0 for /f %%x in (input.txt) do ( call set /a count=%%count%%+1 echo %%x!count! >> output.txt ) set /a count=%count%+1 echo %count% >> output.txt sort output.txt > final.txt A more generic solution would be to force the count to be the first record no matter what the data: Code: [Select]@echo off setlocal enabledelayedexpansion set count=0 for /f %%x in (input.txt) do ( call set /a count=%%count%%+1 echo %%x!count! >> output.txt ) set /a count=%count%+1 echo %count% >> output1.txt copy output1.txt+output.txt final.txt You may want to delete some of the intermediate files. PS. I hope this is what you wanted. I had a dickens of a time figuring out exactly what you needed.Hi! Thanks a lot for your help, my final script is now: Code: [Select]@echo off setlocal enabledelayedexpansion set count=0 for /f %%x in (input.txt) do ( call set /a count=%%count%%+1 echo [link!count!] >> temp.txt echo URL=%%x >> temp.txt ) set /a count=%count%+1 >>links.txt echo [Info] >>links.txt echo Links=%count% for /f %%a in (temp.txt) do @echo %%a >> links.txt del temp.txt I use it because I have a program rapidget that auto downloads files from rapidshare. But you can only add one link at the time in the GUI from the program. As seen I have everyday 100+ links, that was really a big waste of time. Fortunally, the added links in the GUI are saved in a config files (links.txt). Thanks to your help I can now create that config file in one click accept by clicking add link, add link one by one in the GUI. Thanks for your help |
|
| 5866. |
Solve : Help with batch script to move files (win xp)?? |
|
Answer» i am trying to divide 2000+ files from a folder and move them to other FOLDERS (35 files per folder) ionic Mostly because I am not that smart eith batch code. I do, however, learn from the code. Sidewinder, thanks for your time and efforts. Christine W, I hope Sidewinder's efforts work out superbly for you. I didn't intend to hijack your thread!That's OK ionic, I didn't mind it at all. Sidewinder's script works perfectly. It has saved me a lot of time to manually move files from windows explorer. Thank you. |
|
| 5867. |
Solve : Searching for a file in DOS, then moving it.? |
|
Answer» Alright, so an EXCEL spreadsheet was given to a lot of people on my network, but I need to make a change to that spreadsheet. What I need is to create a batch file that looks under the the C: drive and under every sub-directory for a ceratin .XLS file, move it from that location to just a temp folder so that I can then transfer it to my computer (I use a DIFFERENT program for that) and edit it. After that point I'll be able to re-email them the correct spreadsheet. Any help would be great. |
|
| 5868. |
Solve : Microsoft Word...........PLEASE HELP!!!? |
|
Answer» I am sure this is probably a stupid question to most of you but I am pretty much cluless on computers but I am needing to know Does Microsoft Word include DESKTOP PUBLISHING features? This is for my threaded discussions in an ONLINE class for college. If any one can help me out I would greatly appericate. Thanks No, Microsoft PUBLISHER is the desktop publishing SOLUTION in the Office suite. |
|
| 5869. |
Solve : Key press? |
|
Answer» Just WANT to know if it is possible to do the FOLLOWING with a batch file. |
|
| 5870. |
Solve : Batch file passing parameters?? |
|
Answer» I okay I'm completely new to batch files so I need some help. I've been reading almost all the tutorials and FAQ that I've seen, however i cant find one that will answer my question. right now I'm looking at just using the openTextFile method in the script to write to the file, after the batch file has created it. I'm baffled. Maybe I'm just misreading this, but you're saying the batch file will write a file and then the script will also write to it? Why keeping shelling out to the cmd processor to create a file? Can't you use the script by opening a text file forwriting and using the FileSystemObject Writeline method? Thanks that what I was looking for!! EXCEPT how I am suppose to pass down the quotations as parameters when i;m calling the batch FORM the script. this is what I have so far in the script I get all the correct colors that represent dim's and strings but (batchFileFolder) is a var that hold the path to the where the batch file is located Code: [Select]Set WShShell = CreateObject("WScript.Shell") dim name name ="carter" dim hello hello ="Hello_World" dim number number = "5344" RetCode = WShShell.Run("""" & batchFileFolder & "myBatch.bat" &" "& name &" "& hello &" "& number"") thanksPutting quotes around strings that are quoted parameters to methods is enough to drive one to drink, so I grabbed a beer and did it the easy way. Code: [Select]strRun = batchFileFolder & "myBatch.bat " & """" & name & " " & hello & " " & number & """" WshShell.Run(strRun) When it enters the batch world it LOOKS like: ...\mybatch.bat "Carter Hello_World 5344" batchFileFolder needs to end with a backslash. One parameter is passed to the batch file as a quoted string. Use the method in the previous posts to keep or drop the quotes. I suggest you put a path on the output file in the batch code; you never know what directory the cmd window will default to. Correction to previous post: Use >> instead of > Thanks, for the help... really appreciate it.. Actually one last question? what could possibly prevent a batch file from executing when called from a script? b/c i'm actually calling a second batch from the same script, but the one that you helped me with is falling to run. however I still get a return code of zero??? but with no output file? could this then be a problem in the batch and not in the script thanks-Did the batch file actually fail to run or can you not find the output? I believe the default directory for the cmd processor is the %userprofile% value. You can override this by pointing the path of the output file in the batch code. If you could post the contents of the batch file and the console output of the batch file run, perhaps we can see where to GO next. If you're using echo to create your file, it's difficult to imagine not getting a zero return code. Quote this is what I have so far in the script I get all the correct colors that represent dim's and strings If you have some sort of a VBScript editor you may be able to step through the code and see what is happening. this is is contents of the batch file... Code: [Select]@echo off echo %~1>"C:\Inetpub\buildInstaller\batchFiles\output.txt" echo %~2>>"C:\Inetpub\buildInstaller\batchFiles\output.txt" echo %~3>>"C:\Inetpub\buildInstaller\batchFiles\output.txt" The output that I mentioned was just response.write(retCode) the second batch file that I was comparing it too was contained in the same directory and was outputting to the same destination was as this was. Both batch files were located in this directory and were outputting to the same one. this batch works fine when I call it from the START>RUN dialog just not when I call form the script. The second script is using the same WScript object and is being called after this one. thanksIt might help to know what the second batch file is doing. There are parameters to the run method which might help: Code: [Select]object.Run(strCommand, [intWindowStyle], [bWaitOnReturn]) If the second batch file needs the output of the first batch file, it may be necessary to set bWaitOnReturn to True: Code: [Select]strRun = batchFileFolder & "myBatch.bat " & """" & name & " " & hello & " " & number & """" WshShell.Run(strRun,,True) I'm still unsure why you're using batch code especially now that it appears this is ASP code. I'm also confused by the %2 and %3 parameters. The quotes indicate only one parameter was passed (%1). It might be interesting to see the console log of the batch file. |
|
| 5871. |
Solve : copying last modified file? |
|
Answer» Hi all, Quote from: gpl on February 19, 2008, 09:26:57 AM Try this Nice, that did the job. I had to move the - to before the D, other wise it's all good. Cheers guys!!Since we're on the subject of setting a variable with the outcome of the Dir command... I'd really like to have ANOTHER variable with the date that it was last modified. then I could display the date that it was last modified at my menu and the user could decided weather to use or not. cheers for all your help guys. Quote from: blastman on February 20, 2008, 04:00:44 AM I'd really like to have another variable with the date that it was last modified. See my post of 19 FebQuote from: Dias DE verano on February 19, 2008, 09:53:57 AM Easy to grab the first or last file or folder name in a list of any of the properties DIR can sort using the /O switch - size, name, extension, etc Hey thats cool. Thanks. One problem, if i want to run this for a different directory then it seems to not pick up the time and dates, only the file names?? EXAMPLE, REM latest file in directory FOR /F %%i IN ('dir c:\stuff\*.* /b /a-d /od') DO ( set lastfile=%%i set lastdate=%%~ti ) echo last file %lastdate% %lastfile% Would only display; last file "what-ever-the-file-name-is" any ideas?? Cheers for all your help. Hmmm... I'm at work right now, so I'll try to solve this later, but for now... try e.g. set directory="C:\mystuff" cd /d %directory% FOR /F %%i IN ('dir /b /a-d /od') DO ( (etc) Hi, Yep that worked a treat Setting the working directory before running the loop was the ticket. cheers for all your help. Thanking you!!! |
|
| 5872. |
Solve : REASON FOR MS-DOS? |
|
Answer» HI GUYS it states nothing about what it was used for plus wikipedia is full of s**t. Did you read the article ? ?Turn off your capslock...HI PATIO HOW R U PALI'm fine. What point is it you're trying to make ? ?WOW THIS IS AN INTERESTING TOPIC, HUH PATIO? OR IS THIS CAPS LOCK THING A SERIOUS ISSUE AND I SHOULD STOP?Quote from: gamerx365 on January 22, 2008, 06:56:28 AM WOW THIS IS AN INTERESTING TOPIC, HUH PATIO? OR IS THIS CAPS LOCK THING A SERIOUS ISSUE AND I SHOULD STOP? YES, you should stop. It's very annoying for most folk and generally bad manners. |
|
| 5873. |
Solve : Troubled by `set`? |
|
Answer» Hi again guys, |
|
| 5874. |
Solve : goto help...? |
|
Answer» I am TRYING to make a batch file with a menu, but it doesn't work. No matter what i push it just goes onto the next line or just exits: And the next homework assignment will beThey'll never end...incidentally, if you are checking for errorlevel, you need to arrange the test in reverse order, with the highest errorlevel tested for at the TOP, and errorlevel 1 at the bottom of the list, because "if errorlevel 1" means "if errorlevel is equal to or greater than 1" and if you have it at the top, any nonzero errorlevel will trigger it and the rest will be skipped. Right about the order of the "If errorlevel" commands. Nobody mentioned the way you want to set your errorlevel. Set it with the choice command. But wait Microsoft dropped the choice command in recent versions.(I don't know why. It seems that they would have kept it for backward compatibility, even if there are better ways to do the same thing.)(yes I read on this forum that there is a choice written by someone else that you can use, but that is extra baggage.) By the way Dark Blade, Thanks for the set /p var=... method you posted. I have been away from writing batch files for a few years and was not familiar. I will be trying this as it is close to something I'm trying to do. Quote from: llmeyer1000 on February 20, 2008, 08:50:02 AM ... Explore here: http://hp.vector.co.jp/authors/VA007219/dkclonesup/choice.html to download various versions of choice . Quote (I don't know why. It seems that they would have kept it for backward compatibility, even if there are better ways to do the same thing.)(yes I read on this forum that there is a choice written by someone else that you can use, but that is extra baggage.) No moreso than any other external command. Just put a copy of it in a directory that is in your path, same as MS would have done if they had included it in the first place. Thanks Dark! i had just been looking at the set /p command before i came back to this forum but didn't know exactly how to use it. And for those that think this is a homework assignment its not!!! I was just making a batch file for fun. |
|
| 5875. |
Solve : LIST? |
|
Answer» how to make a list in .bat file where i'll input ex. a number and it go to second third etc place if you use the for loops and set some tokens, you can get what you want.Quote from: devcom on January 22, 2008, 02:23:27 AM yes i tryied work on it from hours and it dont work Ghostdog pretty much laid it out for you. Show us some code. We THRIVE on constructive criticism. i have something like this if there are some bugs tell me Code: [Select]@echo off if exist list.txt [Here i wont to do for loop like gostdog says] & goto A set num1=0 set num2=0 set num3=0 set num4=0 :A set /p num= if %num% geq %num1% set num2=%num1% & set num3=%num2% & set num1=%num% & goto B if %num% geq %num2% set num3=%num2% & set num2=%num% & goto B if %num% geq %num4% set num4=%num3% & set num3=%num% & goto B :B cls echo.%num1% %num2% %num2% >list.txt [Here i wont to do for loop like gostdog says] echo.1: %num1% echo.2: %num2% echo.3: %num3% goto A ok i have it Code: [Select]For /F "tokens=1-3 delims= " %%x in (list.txt) do ( set a=%%x set b=%%y set c=%%z ) |
|
| 5876. |
Solve : can u make a bat file check for any keyboard buttons being hit? |
|
Answer» i wuz wondering if there is a way for a bat file the look for if any keyboard key was pressed. i wuz wondering if there is a way for a bat file the look for if any keyboard key was pressed. I haven't gone and researched this - it is just something that I remember from way back in my memory. Do a Google search for GETKEY . It should be a free dos utility program. You'll need to read whatever docs you can find with it, along with whatever help the program itself might provide. Hint: Often with Dos util programs, you can get the program itself to output some BRIEF help to the screen with filename /? or filename -h . Play with GetKey. Set it up in a batch file, and have your batch file trap for returned errorlevels. (If you don't know what the previous sentence means, just ask.) Quote An FPS game I don't know what that part is about, so I won't comment on it. Here.... I googled it quickly. You can grab a few utils here, including GetKey. http://ourworld.compuserve.com/homepages/ken Have fun learning! the "An FPS Game" was an example the Fire -CTRL and other things were examples on the getkey thing u were talking about dude i went to that website, downloaded the file and i now realize u are a complete GENIUS!!!!!!!!!!!!!! the utilities solved my problem and also showed me how to Jazz up my bat files THANKS! Quote from: macdad- on February 20, 2008, 05:43:31 PM dude i went to that website, downloaded the file and i now realize u are a complete Actually, I'm not. In comparison (to you, I suspect) - what I am, is old . What that really means is that I've just had more time to accumulate experience(s). As far as computers and especially batch files go, I've played with a lot of old stuff. And a lot of convoluted batch files. But that was a while back. Quote the utilities solved my problem and also showed me how to Jazz up my bat files THANKS! Having read your post here, and I believe some others AROUND here - in which you'd asked "How do I....?" type questions, I read between the lines and thought that some handy-dandy third party utility type programs are what you need to learn to look for and learn to use.... to accomplish some of the things you want to do. GetKey is an example of one of those good ol' util programs. And it does a lot more that I thought you might like to fiddle around with. You should know that this stuff is considered out of date. Obsolete. Passe. I'm saying that in fairness. That does not mean that it is not good stuff to learn. Learning exercises the mind. Can't hurt you. Besides.... if you spend a bunch of time on a project, and learn how to do it, only to later discover that there was a more modern way to do the job..... well, that in itself is a learning experience too! I hope you have some fun, and enjoy whatever you learn. |
|
| 5877. |
Solve : Drag and Drop batch file? |
|
Answer» I want to make a simple batch FILE that will let me drag a file to it and rename it. |
|
| 5878. |
Solve : Changing Directory Structure / Moving Folders and Files? |
|
Answer» I am looking for direction in writing a batch file that will move data from 1 directory structure to ANOTHER on a 2003 server. |
|
| 5879. |
Solve : How Many Files Was That???? |
|
Answer» Hey all, I'm WRITING a small script file that will install a number of Windows XP hotfixes using the following SYNTAX in a batch file: |
|
| 5880. |
Solve : Loading programs into memory before executing? |
|
Answer» Short question: Can I load programs into memory before executing, allowing me to take out the disk while it executes? |
|
| 5881. |
Solve : Batch file that copies text files according to date? |
|
Answer» Does any one know have a batch file that can search across a network for files that were created today and then copy them to another location across the network?I have had to do that, but try USING this program, Auto mate 6. Download a 30 day trial from here: |
|
| 5882. |
Solve : Making Dos Batch create sequencial folders? |
|
Answer» I am trying to simplify a method for creating a batch file tha will create X number of new folders of the same name but different suffex... 01, 02, 03. |
|
| 5883. |
Solve : STOP a .exe file by using a .bat command? |
|
Answer» I'm running XP and AOL 9.0 Is this relevant? Could be. Actually I think the user name is who initiated the job. There is a fine line between a process and a service more having to do with function. In the services.msc window were you able to find the modules that won't die? Another variable would be are you running as the system administrator? Did you try running the script? Any results? Note: Stopping a service with the GUI or a script is only valid for the Windows session. The service will revert to it's startup status (automatic/manual/disabled) at boot.'AOL connectivity service' is in the services.msc list - I presume this is AOLacsd.exe? AOLLOAD.EXE is not in the list by any recognisable name. These are both ones that only die if I kill them from the Task Manager. But they don't seem to be problematic anyway. The ones that thrash the HD are killed by your earlier script which I now run each time I log off from AOL. So all is well, in fact. Mind you, it amazes me how many processes are listed in the Task Manager and I wonder how many really need to be there. I'm looking into Linux in the hope of distancing myself from MS if possible. A successful and enjoyable 2008 to all. |
|
| 5884. |
Solve : Start up windows 311 from dos? |
|
Answer» im in computer engineering at school, and im stuck on a problem that i have to figure out how to fix for a grade... when i turn on my comp it loads dos, then windows 311 but then it goes back to dos and says hit alt+tab to switch between the 2... but i need it to stay at 311, how would i do that? an answer would be great before noon tomorrow lol...thanksDid you try pressing ALT + TAB?lol of course, but the req for the test thing is that i get it to start up without me having to push that... im GUESSING its the autoexec.bat that i gotta put a command in but idk which one.Any error messages before it switches back to DOS mode?no it just flashes the 311 screen then goes back to the thing that gives u some options to make the dos prompt smaller on the 311 screen, to exit dos, and the alt tab thingWhat happens if you choose to exit DOS?it goes to 311, but thats not the issue, i need it to go there on its own so i can just turn on the computer and it will go straight to 311 and stay at it without me typing anything...While you're in Windows 3.1, in the Program Manager and go to Startup. Do you see something like "MS-DOS Prompt"? |
|
| 5885. |
Solve : problem whith converting my .bat to .exe and other problems? |
|
Answer» I have a program that it can only START once (ex.msn messnger) and i like to RUN it many times i tryed copying file.exe into other names and runned them all in the same time using "start program.exe & start copy1.exe & start copy2.exe" and that worked, so if some one can help my with the batch, the batch file must 1-copy the original file into any name and 2-then it must kill existing processes of the program and the 3-starts the copies and the original the batch i made was : |
|
| 5886. |
Solve : DOS Batch Cmds? |
|
Answer» Curiosty: in the parameters for Curiosty: in the parameters for > NUL directs output, which would normally be displayed, to a non-existent device. So used with Copy the "1 files copied" and some error messages will not be seen. For the rest of your here is the guru ROB Van der W on the subject. When you post please, as a minimum, tell us what Operating System you are using. Thanks & good luckThanks !!! Already read Vander w on error return. OS is Win98 DOS (6.2?) Still have a question, maybe I did not ask the correct question(s). 1. If a bat, exe or com returns an errorlevel, how do I display it? set errnum= someexe.exe /switches set errnum=%errorlevel% echo %errnum% ?? 2. When an exe or com returns a string value (like a function return) what (local or global) is it returned to? %1 ? %2 ? How do I access the return value to parse it? Sorry for the naivety, but I searched everwhere all day and can't seem to find the therory. You guys are the last bastion of "Hope" ! Thanks againRe: 1. Quote from: Rob Van Der W @ECHO OFF Also see the section headed "In DOS for the rest of us, we can use FOR loops to determine the errorlevel:" in the Rob Van Der W site. -------------------------------------------------------------------------------------------- Quote from: kosmith ECHO %errorlevel% which does not seem to work Not surprising - here's another quote from the Rob van der W site: Quote from: Rob van der W However, Windows NT 4 and later make it easy by storing the latest errorlevel in the environment variable ERRORLEVEL: The %errorlevel% environment variable is only available in Win.NT4 and later, you are running Win.98. ------------------------------------------------------------------------------------------------ Re: 2. Sorry, I don't know but believe this is program dependent. The answer may or may not be found in the program documentation. Perhaps someone else will join in with better info. Good luck Dusty, Thanks for the help ! ! ! I think the light has finally come on. Now I'll go visit the sponsors websites. Great Forum, please keep up the great work. K.O. SmithQuote from: Dusty on January 21, 2008, 12:48:49 AM Re: 1. Quote from: Rob Van Der WQuote from: WillyW@ECHO OFF It's been a while, but I seem to remember - - shouldn't testing for errorlevel be done in descending order? Yes, that is also explained on the Rob van der W site I posted. Here is another extract from that site, the underlining is mine: Quote from: Rob van der W The safest way to use errorlevels for all DOS versions is the reverse order check. Thanks for your interest.Quote from: Dusty on January 21, 2008, 01:19:39 PM
hmm... interesting. I'll have to try to remember to check that out. I find it curious that he used the term "safest". As I remember it, it wouldn't work at all if not in descending order. In other words, a line like: if errorlevel 5 some_command would really mean, ' if the current errorlevel is equal to, or greater than 5, then do some_command '. So I'm THINKING that if they were in ASCENDING order, like in the first example, a line like ' if errorlevel 1 ..." would be true with ANY of the errorlevels between 255 and 2 also. Maybe it's been too long since I've played with this stuff..... Quote from: WillyW n other words, a line like: That's also on the Rob van der W site - here's the quote:Quote from: Rob van der W IF ERRORLEVEL construction has one strange feature, that can be used to our advantage: it returns TRUE if the return code was equal to or higher than the specified errorlevel. Yep, a very strange feature indeed but that's typical of the world of programmers So he is saying that that the code of his that you first quote/posted doesn't work. That sure seems odd to me. I don't see why he published it.Hold on a second guys..... The correct (often published) is decending order. But this works just fine: FINDRAMD IF ERRORLEVEL 255 GOTO NoRamDrive IF NOT ERRORLEVEL 3 GOTO NoRamDrive echo %errorlevel% IF ERRORLEVEL 3 SET RAMDRIVE=C: IF ERRORLEVEL 4 SET RAMDRIVE=D: IF ERRORLEVEL 5 SET RAMDRIVE=E: IF ERRORLEVEL 6 SET RAMDRIVE=F: ... IF ERRORLEVEL 24 SET RAMDRIVE=X: IF ERRORLEVEL 25 SET RAMDRIVE=Y: IF ERRORLEVEL 26 SET RAMDRIVE=Z: IF ERRORLEVEL 27 GOTO NoRamDrive ECHO RAMdisk drive letter is %RAMDRIVE% GOTO End This may become an issue after the errorlevel is higher then 99 (or maybe 200) It would depend upon the internal storage (should be a single byte 0xFF) I have tested both, but on on Win98, XP, and 6.21 DOS.................... Wanna bet the issues were back in DOS 3.1 ? |
|
| 5887. |
Solve : URGENT BATCH RANDOM HELP? |
|
Answer» ok i have windows xp home edition, i have this code |
|
| 5888. |
Solve : Importing a .reg file using DOS?? |
|
Answer» Hey everyone, |
|
| 5889. |
Solve : compair a black space to a string? |
|
Answer» Hi, if /i %Lastfile%==" " That tests if the string Lastfile is one space, not an empty stringQuote from: Dias de verano on February 21, 2008, 04:48:05 AM Quote from: blastman on February 21, 2008, 02:26:53 AMif /i %Lastfile%==" " would the other example work for an empty string then?? Quote from: blastman on February 21, 2008, 05:18:27 AM Quote from: Dias de verano on February 21, 2008, 04:48:05 AMQuote from: blastman on February 21, 2008, 02:26:53 AMif /i %Lastfile%==" " In an IF test, you need to enclose BOTH strings in quotes if /i "%Lastfile%"=="" (set lastfile="No Update Avaiable") and available has a letter 'l'. here try to set it up like dis set /p Lastfile=What is the name of the file u are LOOKING for? asks for ^ the name of the file if not %Lastfile% exists set %Lastfile%="No Update Avaible"(may not have proper spelling) echo %Lastfile% ^looks for the specifed file and the if the file doesnt exist the it says "No Update Avaible"Quote from: macdad- on February 21, 2008, 05:52:36 AM here try to set it up like dis I am afraid this is nonsense Dias de verano, You sir, are a star!! thanks for all your help over the last few days. Couldn't of DONE it without you. Cheers. |
|
| 5890. |
Solve : How to Browse a file in DOS..??? |
|
Answer» can anybody tell me...??how to browse a file in dos..??plz..TQif you just want to read a text file, then |
|
| 5891. |
Solve : Checking disk space on a remote drive from a batch file? |
|
Answer» HELLO, I am running Windows XP 5.1 SP2, and do daily backups to a networked machine using a scheduled batch file. I need to do a disk space check, but I don't have Freedisk. I have downloaded several versions but none of them worked. Instead, I would like to use dir |FIND "bytes free">tempfile and then parse the output to check space but I can't get the contents of tempfile into %x batch file parameters. Please can you suggest some way of doing a disk space check from a batch file? Thanks limebear Code: [SELECT]for /f "tokens=3" %%x in ('dir <path> ^| find /i "bytes free"') do echo %%x The value of the free space is in the %%x variable and there is no need for a tempfile. Keep in mind that the value is an edited string and not numeric. Replace with a valid value. Thank you for that, I have that working. But I am still stuck. for /f "tokens=3" %%x in ('dir ^| find /i "bytes free"') call parse.bat gets me one instance of parse.bat with an indeterminate number of %1 %2 %3 etc filled with portions of the free size. But I can't see a way to get these into a single integer. Can it be done with SET and then tested with IF > ? Thanks very much limebear Sorry I should have said at the outset that I'm trying to AUTOMATE a warning when disk space gets below a threshold, so printing out a string indicating the actual space won't do it. I need some kind of test. Thanks limebearQuote Can it be done with SET and then tested with IF > YES, but it gets very strange accessing the variable. Code: [Select]setlocal enabledelayedexpansion for /f "tokens=3" %%x in ('<path> ^| find /i "bytes free"') do ( set size=%%x set size=!size:,=! echo !size! ) echo %size% By replacing the commas with nulls you should be able to do compare operations. Just note that within the for loop you access the size variable with !size!, and from outside the for loop you access the size variable as %size%. I'll leave the rest to your imagination. Thank you very much, it's all working now. cheers limebear |
|
| 5892. |
Solve : Trying to use DOS to re-load missing XP file? |
|
Answer» This really is a DOS question, so bear with me: Our Compaq Presario 2100 won't boot (running XP Home for a couple of years now)--we get a box saying it can't find "lsass.exe". No luck booting in any of the alternate modes, either--same message. Since at this point it seems there's no way to boot the Compaq with enough functionality to permit copying the missing file to C:, I considered one other idea that was a longshot but...: What about removing the Compaq's HD, putting it in our XP desktop, and then explore it like any other hard drive? Since I wouldn't be needing it to boot up the desktop, the missing file shouldn't be a problem. Very common practice in data recovery. Adapters are shown in the attachments. Hopefully your desktop hard drives are ATA. The bootable NTFS4DOS will read/write in the NTFS file system using a version of Dos. It's free, can be downloaded and is also available on the Ultimate Boot CD which is also freely downloadable. Good luck [file cleanup - saving space - attachment deleted by admin]I agree, except it's not really a long shot. Like Dusty said: Quote from: Dusty on February 19, 2008, 01:02:37 AM Very common practice in data recovery. Once you get an adapter you will be nearly home free. Or, maybe one of your friends has a good copy of XP and would make up the Bart's PE disk for you. That and a USB drive would work equally well, without waiting for an adapter to be delivered. The NTFSDOS program Dusty mentioned might also work for you, but would be awkward for a person not too familiar with DOS. Thanks to all for the suggestions. I was able to d/l the NTFS4Dos utility, make a DOS boot disk and explore the hard-drive. Drive checked out fine--no bad sectors, and total size was as expected. But to my surprise, when I entered the cmd to copy the replacement "lsass.exe" file (for which Windoze had said "Object name not found" when I'd tried booting normally) to Windows/system32, the utility asked if I wanted to overwrite the existing file. I then checked and the lsass.exe file was in its normal location, showing the usual size. So now the question is, Why is Windoze saying it can't find a file that DOS shows as being where it's supposed to be? Of course at this point I guess this is no LONGER a DOS question so I'll be heading over to one an XP forum. But many thanks for the help. I can confirm that NTFS4Dos is quick and effective, and its chkdskg utility works well. --s Are we clear about whether the file is lsass.exe with a small L as the first letter, or Isass.exe with a capital I as the first letter? And, those with longer memories may remember the Lsass worm. Quote The LSASS process manages user logins, and as such is a common target for infections on PCs running various versions of Windows. Quote from: sf44 I was able to d/l the NTFS4Dos utility, make a DOS boot disk and explore the hard-drive. Good news - this utility should be in just about everyones software toolkit, at least those who use the NTFS... Lsass was\is associated with the Sasser worm, I thought it was dead-in-the-water, what malware defences are you using? Suggest your first move should be to backup essential files then, and only then, attack your problem. Good luck again.At any rate you'd be better off using the Recovery Console from an XP CD to do these repairs anyways...Dias: I'm *reasonably* clear that the file is Lsass as opposed to Isass. But I'll look again-- since I'd seen lsass I may well have seen what I expected to see instead of what was actually there! Dusty: We use AVG-Free. Got tired of Norton/Symantec locking up the computer all the time. Since the change, no lockups. We get virus def updates daily. I'll certainly admit to not backing up as often as I should. As inexpensive and large as external HDs are, you'd think someone would have automated that by now for those of us who sometimes forget. Losing even a week's work is too costly! Patio: Can you use Recovery Console by booting with a CD that's not the one on the ailing computer? I would think Windoze would pitch a fit, but... How do you call Recovery Console? Thanks to all.Patio-- Just found your comment in the XP forum on how to call Recovery Console. Now if just one of our computers had come with actual boot disks instead of having the OS loaded on the HD, we'd be in great shape! Does anyone know if Compaq's "Quick Recovery" CDs offer the same Recovery Console option instead of just automatically reformatting the HD?Any Windows XP CD will work for running the Recovery Console... The one important thing is that the CD match what version and service paks you have installed: XPPro w/SP2 needs a CD that contains exactly that. Some OEM CD's but very few have the ability to load the RC from them but they are rare. Best bet here would be to contact the manuf. Another more tedious way would be to DLoad the 6 floppy set from Microsoft and do it that way. There are instructions on the DLoad site for making it a bootable CD if no floppy drive is available. More Info... |
|
| 5893. |
Solve : Need help accessing a Directory in DOS? |
|
Answer» I need to know the RIGHT "CD" or "CHDIR" information to get access to a CERTAIN directory in DOS. I have Windows Vista. |
|
| 5894. |
Solve : Caps Lock Toggle in CMD? |
|
Answer» Hello,
I will run with your earlier piece of advice and ask the Google sages and see what else I may find. I was really hoping it would be something simple vs compiling assembler code. what about this link ? http://answers.google.com/answers/threadview?id=411459 Graham@ Graham I read that second link and I am avoiding downloading other SOFTWARE if possible. I did find a script that will send the key, but cannot check current state of the caps lock. Here is the script: set WshShell = CreateObject("WScript.Shell") WshShell.SendKeys "{CAPSLOCK}" Which may work ok for my purposes as long as I remember to keep my caps lock key off by default. I might try to keep digging to find any information about testing conditions, but I may just call it here. Thanks for the help!!I cant believe how long Ive been searching for a solution for this ! this page http://www.robvanderwoude.com/debug.html#KeyLocks explains why the caps_on program does not work using XP (or greater) ... he shows a batch that will test the status of the caps etc locks -- depending on this, you could call your vbscript to toggle the status GrahamQuote from: redeye on January 02, 2008, 09:51:14 AM Hello,you may WANT to show what you are doing in the batch file. In a batch, its non-interactive, so I don't see why you want to turn on CAPS. |
|
| 5895. |
Solve : Date problems in a btach file? |
|
Answer» I need to set up a new batch FILE that will move files from one directory to another. The problem that i am having is everyday my system CREATES the files in a date folder like 20080220. Is there a WAY to do a copy command that can look at the system date and change the format of that date into the format that my system is USING?Quote from: helpneeder on February 20, 2008, 03:41:22 PM Is there a way to do a copy command that can look at the system date and change the format of that date into the format that my system is using?Yes (assuming you are RUNNING a current version of Windows). It will depend on the date format your computer is using, but for U.S. English, my default date is in the format of: Thu 02/21/2008 in which case the following should work: Code: [Select]set DateFolder=%date:~-4%%date:~-10,2%%date:~-7,2%Thanks this is perfect!!!!!!!!!! |
|
| 5896. |
Solve : Formatting Variables? |
|
Answer» Hi Guys, |
|
| 5897. |
Solve : Viewing short file name(SFN) on an XP system(simple I hope)? |
|
Answer» I've searched the internet a bit for this topic but did not come up with anything good. All the help seemd to AID in getting LFN from older systems. |
|
| 5898. |
Solve : Call Shell Script from a DOS batch file? |
|
Answer» Hi, |
|
| 5899. |
Solve : Simple batch file help for noob? |
|
Answer» I downloaded shutdown.exe and everything works great when I SUSPEND (standby) the computer. The computer suspends automatically and starts up automatically. However, I still have the no hibernation problem. I don't have the hibernate BUTTON when I hold down the shift key, and when I use shutdown.exe to hibernate i get a WINDOWS error. "Insufficient system resources exist to complete the API". Anybody know how to fix this? SOUNDS like you may need the KB909095 fix from Microsoft. The computer occasionally does not hibernate and you receive an "Insufficient System Resources Exist to Complete the API" error message in Windows XP with Service PACK 2, in Windows XP Tablet PC Edition 2005, or in Windows XP Media Center Edition 2005 |
|
| 5900. |
Solve : Current Date -1? |
|
Answer» Hi |
|