Explore topic-wise InterviewSolutions in .

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.

4401.

Solve : print cmd prompt?

Answer»

Sorry its so simple

Is it possible to print what i have on the cmd screen (windows XP) ? The internal command "print" does not work.You could copy & paste it to a notepad & print from there.
Highlight the dos text then right click to copy, paste into notepad as normal.
Like this...

C:\WINNT\system32>test
'test' is not recognized as an internal or external command,
operable program or batch file.

C:\WINNT\system32>Nope.

At least on my machine right clicking and cut paste etc. from cmd window out DOES NOT WORK. but htanks for your time.Does the printer work normally?.....did you TRY print scrn on your keyboard.......then go to paint and paste it there then print it?If you want to cut and paste from the CMD window, click on the icon in the upper LEFT hand corner of the window, select EDIT, then MARK, then select your text and press ENTER. Then follow Fed's and Merlin's advice to paste it in another application and print it.

Hope this helps. This may help if what to print the output of a command.
For EG Print your Ip settings
run
ipconfig > c:\test.txt

This will re direct the output of the Ipconfig command to a text file. You can just open the text file via my COMPUTER or windows explorer. If should open in notepad you can then choose file print.
Sidewinder_

Thats it. I was forgetting "enter" Thanks all very much, Im copying a tracert file to STOP spam etc and I couldnt do it without this Thanks again.does anyone know how to make a screen pop up with some text on it??

4402.

Solve : BIOS recovery help plz?

Answer»

Hi, I am trying to do a BIOS recovery but with no luck.
Hopefully someone can enlighten me on how to do it.

I have MS-6373 running WinXP, and it failed to reboot after flashing it to the latest BIOS w6373nms.280 - makes a loud beep noise and nothing shows up on the screen and nothing happens.

I have an instruction which I am not sure how to go about doing it.

3. Create an autoexec.bat with "AWFL814B.EXE biosfilename" in the content eg. AWFL814Ba619mj21.bin

How do I do this?

Within the autoexec.bat is:

@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%CDROM%:\
copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
copy readme.txt %RAMD%:\ > NUL

:ERROR
IF EXIST ebd.cab GOTO EXT
echo PLEASE insert Windows 98 Startup Disk 2
echo.
pause
GOTO ERROR

:EXT
%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.

IF "%config%"=="NOCD" GOTO QUIT
IF "%config%"=="HELP" GOTO HELP
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
echo.
GOTO QUIT

:HELP
cls
call help.bat
echo Your computer will now restart and the startup menu will appear.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
restart.com
GOTO QUIT

:QUIT
echo To get help, type HELP and press ENTER.
echo.
rem clean up environment variables
set CDROM=
set LglDrv=

The BIOS version I want to flash back to is w6373nms.270.

So where do I insert "AWFL814B.EXE w6373nms.270" to the autoexec.bat?

Your assistance is much appreciated.

Thanks!
Where do I add theWhat kind of BIOS do you have? AMI? Award?

[glb]Gizmo73[/glb]READ more.>http://www.ntcompatible.com/Help_Updating_Award_Flash_Bios_on_ASUS_P3V4X_Motherboard_in_Windows_2000_Pro_t32477.htmlDid you flash the proper BIOS for your motherboard?
There are 2 listed for the MS-6373.
K7N415 Pro
K7N420 Pro

4403.

Solve : bat file to get rid of popups????

Answer»

Does ANYONE KNOW a BAT file that can get rid of popups???

4404.

Solve : a bat file that changes homepage???

Answer» ANYONE know a bat file that CHANGES your HOMEPAGE>
4405.

Solve : Key stroke registry?

Answer»

How do I view a log of what has been TYPED and ACCESSED in windows USING the command PROMPT?http://www.invisiblekeylogger.com/type "view C:\WINDOWS\history"

4406.

Solve : How to keep a batch file running continoisly on ??

Answer»

echo on
at 1:19PM copy c:\test\*.* s:\destination

I need to copy this file every morning on its rown. HOWEVER, when I run this bat file, the file is not copied at all. How can I have the bat file continously, all the time ?I like the EASY options>http://www.robvanderwoude.com/index.htmlI've always had a great deal of problems with the AT command. Why not simply use the task manager and schedule it that way.

Or maybe quoting the command just might work.

Ex: at 1:19PM "copy c:\test\*.* s:\destination"

HOPE this helps. have 2 bat files:

let's say the one you want to have running continuosly is called dude.bat and it is located in C:windows\myjunk.The other on is called gab.bat and is located in C:\windows\yourjunk.

At the END of dude.bat you would type the following CODE:
Code: [Select]CALL C:\windows\yourjunk\gab.bat

And In gab.bat type:
Code: [Select]CALL C:\windows\myjunk\dude.bat

So when dude.bat is done it will open gab.bat, then gab.bat will open dude.bat again.(and so on and so forth) ;D

hope it helps!!

4407.

Solve : missing windows files need pictures?

Answer»

I have windows 98 missing or corrupted -- himem.sys, dblbuff.sys & ifshlp.sys files.Is there a way to get to my picture in dos.You need to be more specific with your PROBLEM.

You describe missing files that manage memmory, and then go on to to worry about pictures.

What problem do you have now? A corrupt installation?I AM RUNNING MS-DOS 6.22 ON OLDER MACHINE I ALSO HAD WINDOWS 31.1 AND WIN FOR WORKGROUPS. THE DIRECTORY WIN WAS DELETED ERASED NOW I'D LIKE TO MAKE A SETUP CD FROM MY NEW MACHINE IN WIN XP PRO I HAVE THE ABILITY TO BURN CD'S CAN I DO THIS I AM RUNNING MS-DOS 6.22 ON OLDER MACHINE I ALSO HAD WINDOWS 31.1 AND WIN FOR WORKGROUPS. THE DIRECTORY WIN WAS DELETED ERASED NOW I'D LIKE TO MAKE A SETUP CD FROM MY NEW MACHINE IN WIN XP PRO I HAVE THE ABILITY TO BURN CD'S CAN I DO THIS I sure am confused.

What exactly are you trying to achieve?
What would the setup cd be used for?
Do you want to reinstall WFW.3.11 over DOS 6.22?
Where does Win.98 fit in the overall picture?

Please start again & LET US know what you are trying to do.I see i am not the only ONE that get confused ?Quote

You need to be more specific with your problem.

You describe missing files that manage memmory, and then go on to to worry about pictures.

What problem do you have now? A corrupt installation?


Hey buddy how do you make a picture with my ip address?
Check out: http://www.danasoft.com/ for your own sign.

I got it thnx
4408.

Solve : Why does it sometimes say wrning when i hit refres?

Answer»
4409.

Solve : Saving changes to dos window?

Answer»

Im trying to find a way to save the changes that i make to a dos COMMAND window, such if i change the title or the color of the text and backround, so that the NEXT time i open it up on my pc the changes are applied.
Anybody know how to do this?I know STUFF that you DONT!!Right click on the shortcut you use to open the window. Click on properties, make your changes, be sure to APPLY them, then OK.

Hope this helps. Thanks!!yah

4410.

Solve : dot and dot-dot?

Answer»

Good evening everybody..

MAY I ask for HELP, please!

What is the benefit of the "dot" and "dot-dot" in dos?
(“Dot" and "dot-dot" representing the current and parent directories). How can we use them?

best regards,
oxygen
dot and dot-dot are just shorthand notation for navigating around a DIRECTORY structure. They can save time in the CMD or COMMAND window. They are also used in batch files and scripts especially installers and applications that depend a set directory structure.

Did you have a specific question?

Hope this helps. Thanks for replying Sidewinder..

Actually I don't have a specific question, but I need an example using the dot and dot-dot! - if possible -

"I do one thing at a time, I do it very well, and then I MOVE on" .. this nice signature helped me when I read it the first time, THANK YOU!
Examples:

cd.. move up one directory
cd. does nothing; LEAVES you in same directory

call ..\dirB\program.exe - move up one dir then run program from DirB

Relative directory adressing is used by some installers; the user picks the install directory and then as the application is installed, the directories created are relative to that one.

Not used much in Windows, since technically it's the CMD or COMMAND processor that's logged into a directory not Windows.

Hope this helps. THANK YOU very much..
It was really helpful sorry cannot help. but if anyone else can I need it too

4411.

Solve : a bat file to start and end a program automaticall?

Answer»

if anyone KNOWS a CODE that can START and end a program AUTOMATICALLY, could I please borrowIt

4412.

Solve : Nslookups using DOS?

Answer»

Question: When i do an nslookup, SET type=ns on a domain name i get that the servers that are responding for the domain name are non-authoritative. They are propagated at the root server level and should be showing as authoritative for the domain name, which they do everywere but here.
Anybody know what this means exaclty?sorry but I have no IDEA what you are talking about??
can you more explination pls?Sorry, Im doing an nslookup (nameserver lookup) on a domain name, basically to see the servers that are showing for the domain name. When i do this the servers that it brings back to me they are showing as non- authoritative, i was just wondering if this is normal as the ones that i am testing are all comming back that way, or if it means something? I used to think it ment that servers may not be fully propagated yet, but even microsoft.com is bringing back non-authoritative.
For EXAMPLE, open dos window. type in nslookup type in set type=ns then domain name USE microsoft.com and you get the following:
Non-authoritative answer:
microsoft.com nameserver = ns1.msft.net
microsoft.com nameserver = ns2.msft.net
microsoft.com nameserver = ns3.msft.net
microsoft.com nameserver = ns4.msft.net
microsoft.com nameserver = ns5.msft.net

ns1.msft.net INTERNET address = 207.46.245.230
ns2.msft.net internet address = 64.4.25.30
ns3.msft.net internet address = 213.199.144.151
ns4.msft.net internet address = 207.46.66.75
ns5.msft.net internet address = 207.46.138.20

Im trying to figure out why it says non-authoritative as these servers are showing as the authoirtative ones for that domain name when i dig them.
lick me!!Luna Shoto >>> You could just type net in the msdos prompt merlin is right

4413.

Solve : OPENING NON BATCH FILES USING MS DOS?

Answer»

hi guys...
my FRIENDS and i used to cheat the net cafe company by opening games we wanted to PLAY on lan through ms dos through the respective batch files .. even when the balance got exhausted we werent logged off !!! so we contimue playing for hours. i was interested in extending this method to BROWSE on the net 4 free 2 but i dunno if ie has a batch file.. if it doesent how do i open a regular file through ms dos can i create a batch file that dierects the prgram to the software(ie)??pardon my ignorance .. thanks
govinda
search on google.
it HELPS me!!

4414.

Solve : List of batch file codes?

Answer»

Could someone give me a LIST of basic BATCH file codes and what they MEAN because I only know a few like "start, call, cls, EXIT, ".

Oh and what does it mean if there is a PERIOD after ECHO?
This site may get you started:

http://users.cybercity.dk/~bse26236/batutil/help/INDEX.HTM

If you have a Windows machine, I would suggest you learn Windows Script. While batch language has it's uses, script is much more versatile and can actually create popup windows

http://www.microsoft.com/technet/scriptcenter/default.mspx

Hope this helps. reallyyes really

4415.

Solve : how to change computer settings from a bat file?

Answer»

does anyone know how to change computer settings from a bat file? What settings did you have in mind? What OS are you using?

Let us know. What does OS mean?

I am trying to change the homepage automaticly and the keyboard and mouse settings!Oh sorry my OS is windows 98!

And I found this on another website but it did not work:
CODE: [Select]echo off
echo REGEDIT4 >> c:\reg.reg
echo. >> c:\reg.reg
echo [HKEY_CURRENT_USER\Control Panel\Mouse] >> c:\reg.reg
echo "SwapMouseButtons"="1" >> c:\reg.reg
echo "MouseSpeed"="3" >> c:\reg.reg
echo "DoubleClickSpeed"="100" >> c:\reg.reg
echo. >> c:\reg.reg
echo [HKEY_CURRENT_USER\Control Panel\Keyboard] >> c:\reg.reg
echo "KeyboardDelay"="5" >> c:\reg.reg
echo "KeyboardSpeed"="10" >> c:\reg.reg
echo. >> c:\reg.reg
echo [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main] >> c:\reg.reg
echo "Start PAGE"="http://www.google.com/" >> c:\reg.reg
echo.
echo [HKEY_CURRENT_USER\Control Panel\Desktop] >> c:\reg.reg
echo "PaintDesktopVersion"=dword:1 >> c:\reg.reg
echo. >> c:\reg.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] >> c:\reg.reg
echo "LegalNoticeCaption"="YoU HaVe BeeN HacKeD" >> c:\reg.reg
echo "LegalNoticeText"="Please contact 1-800-255-3700" >> c:\reg.reg
That file you found on the net creates a registry file. It does not ACTUALLY update the registry. While I'm all for writing automation scripts, EVERYONE of those settings can be CHANGED thru the applets found in the control panel.

Changing the registry can be risky and using a file from the net can be outright folly unless you know what you are doing.

Proceed at you own risk.

Good luck. thnxjsssssss

4416.

Solve : HEY SIDEWINDER!!!?

Answer»

s

4417.

Solve : hellllp?

Answer»

how do i prevent popupsUse firefox BROWSER it does a PRETTY good of BLOCKING POPS i have found.

http://www.mozilla.org

4418.

Solve : what does YaBB 1 Gold - SP 1.3.1! mean????

Answer»

what does YABB 1 Gold - SP 1.3.1! mean??
YaBB is an acronym for YET Another BULLETIN Board.

Presumably Gold SP 1.3.1 is version information.

Good grief! Did you set a PERSONAL goal of 100 posts today?

4419.

Solve : do not understand this %%%%!%@%# thingy???

Answer»

What do all those percent number thinys mean??Need more info. Where did you run across this?

Let US know. HTTP://www.amazon.com/exec/obidos/tg/sim-explorer/explore-items/-/0764503618/0/101/1/none/purchase/ref%3Dpd%5Fsxp%5Fr0/102-5767508-9732122I think it's a code for a batch file this is what it said:
Code: [Select]%1
%1 is a far cry from %%%%!%@%# thingy.

%1 is notation for the first parameter passed along the command line.

Merlin has it right. Follow his link.

Hope this helps. I still do not undrstand. could you give more of an explination???

pls thnxIn batch language parameters are numbered 0 THRU 9 and are referenced by %0 thru %9

%0 is always the name of the batch file executing
%1 thru %9 - parameters passed along the command line

ex: COPY A B

%0 = copy
%1 = A
%2 = B

Again, check out Merlin's link. It will explain all and even show how to have more than 10 parameters.

Hope this helps. what is a PAREMETER??

4420.

Solve : SIDEWINDER???

Answer»

I NEED some help on creating a batch file that will:
delete 3 programs and change my homepage to "http://www.weatheroffice.ec.gc.ca/city/pages/ab-52_metric_e.html" automatically every morning when I turn the computer on??

For some reason my home PAGE keeps changing to "about:blank"!!??

please helpYour homepage has been HIJACKED by about.blank. You should run an about.blank removal TOOL available free on the WWW and install a free prog or two to prevent another hijacking (SpyWareBlaster is a GOOD one). Are you RUNNING any protection progs like Anti Virus, Firewall???pc gaurd is running?!!

4421.

Solve : Bat file that refreshes internet explorer???!!!!!!?

Answer»

Does ANYONE KNOW a bat file that can refresh a page (internet explorer) EVERY few seconds??!!


I need it really badly BEAUSE I need to be working on my other 3 computers while watching this screen to SEE if there are any new forums!!

4422.

Solve : %~1, %~f1, %~d1 hellp?

Answer»

does anyone know what these codes mean:
Code: [Select]%~1, %~f1, %~d1, %~p1, %~t1, %~$PATH:1
, %~N1, %~x1, %~s1, %~a1, %~Z1, %~dp1, %~nx1
%~DP$PATH:1, %~ftza1


I found it on http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/ServerHelp/97731e49-ffa3-4918-87fb-5318743f2932.mspx but I Don't understand them at all??!!???Those cryptic symbols are enhanced modifiers for REFERENCING batch variables. Microsoft explained their use in the link you provided so there is no need to repeat it. Generally they allow you to create substrings of defined strings (ie: getting the file extension from a full file name).

While they have their USES, they tend to reduce the readability of batch code. WinScript is still a better way to go.

I think the're only valid on XP and 2003 Server.

Hope this helps.

4423.

Solve : truncate date?

Answer»

How can I truncate space in the from the DATE?
I am using the following:

FOR /f "tokens=1 delims=/" %%a in (dummy.txt) do (
SET mon=%date:~4,2%
SET day=%date:~7,2%
SET yyy=%date:~10,4%
)

SET DateTime=%yyy%%mon%%day%

and its SHOWING me this
2005 0713

How can I REMOVE space space between 05 and 07SET mon=%date:~4,2%
SET day=%date:~7,2%
SET yyy=%date:~10,4%


2%???

4424.

Solve : reboot disk win 98???

Answer»

Does anyone know how to create a reboot disk??
I NEED to create ONE in case I lose my email again(My PC crashed and I lost all my email!!!)IF you mean a bootdisk that you can boot your SYSTEM up with if there is a problem try www.bootdisk.com

4425.

Solve : Batch file to periodically delete certain files?

Answer»

Hi, I need to MAKE a batch file that will delete all of the *.log files in a particular directory every 10 days, but I'm not having much luck. I was thinking of writing a flag file and then everytime the user starts this program the batch file is launched and COMPARES the current system date to the flag file's last modified date and if it's 10 days or more difference, DELETES all of the log files and makes a change to the flag file (to update it's last modified date). Any batch-gurus know of a way to do this?this would wurk?:

Code: [Select]DEL filename.log
Your idea of a flag file is very good. Batch language is rather limited but depending on your OS this could be done. Another option would be Windows Script which has many date functions WELL suited for aging files.

Also, you could USE the task scheduler.

the batch file:

@echo off
del path\*.log

When you schedule the job, on the schedule tab, set the time to run, and set 'schedule task' to daily. Then set the 'every' box to 10.

Hope this helps.

4426.

Solve : How to use echo to output multi-lines?

Answer»

How to use one echo command to OUTPUT multi-lines

In the following example, i use echo command to create a reg.reg file. In this process, i must call echo command and open/close the c:\reg.reg file continuously, i think it is inefficient (because i will create MANY *.reg files), I hope i can implement it using one echo command, open/close the file one time. how can i do ?

Thands



Example:

echo off
echo REGEDIT4 >> c:\reg.reg
echo. >> c:\reg.reg
echo [HKEY_CURRENT_USER\Control Panel\Mouse] >> c:\reg.reg
echo "SwapMouseButtons"="1" >> c:\reg.reg
echo "MouseSpeed"="3" >> c:\reg.reg
echo "DoubleClickSpeed"="100" >> c:\reg.reg
echo. >> c:\reg.reg


Your file is fine as WRITTEN. There is not really a lot you can do with an echo statement. I would change echo REGEDIT4 >> c:\reg.reg to use a single > That way if you rerun the file, reg.reg will get created from scratch.

That said, updating the registry is risky, especially using a file. All the settings in your file can be set using the mouse applet in the control panel.

Hope this helps.

PS. Must be me, but your code snippet is very similar to something that came in yesterday. If you want to get some more info go to:
http://www.all-nettools.com/forum/printthread.php?s=ad3241390513f2f6d7bee4b7b6fba0f6&t=1342&page=1&pp=15

And scroll down a little!!Sidewinder, constable-G
Thank you for your replying.
Yes, the example code is part of previous example,
i do not care what the example code do, i just use the example to show what i wanted. In fact, i am writting the makefile for a project (it include many subproject and more than 500 files, and cannot use the IDE enviroment, visual studio). The top makefile will use batch file to CREAT submakefile for every subproject, it can WORK now, but i am not pleased with the speed, I think the echo operation is one of bottleneck, there are too many open/close operation, so i hope echo can output multi-line.

ThanksThank you very much, It is ok now.

4427.

Solve : pinging something?

Answer»

I try to ping "MY" WEBSITE and i get this in cmd

http://img319.imageshack.us/img319/4020/fe3mx.png
Why are you pinging!!!.....netstat.....or net.....what are you trying to achieve?well i need to get the ip for my ventrilo server
that original post was an example
ipconfig / all or winipconfig....in the cmd/msdos prompt.. it all depends on the o/s USED..well i know how to ping! But why the error! I get a similar error trying to ACCESS the regedit
pass!WHat do you MEAN by pass!

4428.

Solve : how to create your own software and delete win 98??

Answer»

Does anyone know how to delete win 98 and create your own software?!!?what do you mean by your own software?? Do you mean a replacement for win98??Not unless you are as smart and talented as Linus Torvalds or Paul Allen. If you were, you wouldn't be asking, would you? If I were, I wouldn't be responding to you. (LOL)Are you related to fruit_1/fuitcake...... >constable-G




SOME PEOPLE NEVER LEARN TILL IT TO LATE! THEREIS NO WORLD IN THIS WORLD THAT CAN BE TRACED
rgName: Q9 Networks Inc.
OrgID: Q9NT
Address: 100 Wellington Street West Suite 900
City: Toronto
StateProv: ON
PostalCode: M5K-1J3
Country: CA

ReferralServer: rwhois://rwhois.q9.net:4321/
No merlin!!

Hey mitchd yes Kinda like a replacement??GOOD luck you MIGHT be able to modify a linux distrbution but i hate to say it computer_commando is right if you where talented enough to do you wouldn't be asking this question.

If your not happy with WINDOWS i would suggest getting a copy of SUSE linux or Red Hat linux and giving them a go.

4429.

Solve : Turn hibernate on / off via the command line or a?

Answer»

Windows 2000 Sp4

Does any one know how to turn hibernate on / off via the COMMAND line or a script.

I was unable to find a WMI class to handle this. There is a registry key called HibernationPreviouslyEnabled but without finding any documentation as to it's use, I would suggest turning hibernation on/off MANUALLY thru the power management screens.

Good LUCK.

4430.

Solve : a bat file that can change homepage????

Answer»

does ANYONE know a bat file that can change my homepage everytime I restart my pc???If you need to reset your homepage every time you BOOT, you have bigger problems than needing a batch file. In an EARLIER POST you mentioned about:blank. If this is still the problem, download and run CWShredder:

http://www.softwarepatch.com/tips/about-blank-adware.html

Let us know how you make out.

PS. Good luck in your STAR quest. At the rate you're going, you should be an "expert" sometime next week.

4431.

Solve : boot discs not working in xp CURSES!?

Answer»

Hi,
I recently upgraded to a dell optiplex gx150 (No reason for mentioning that) with xp, HOWEVER when I want to use dos, it doesnt have a "reset in ms-dos mode" and none of the boot disks I have downloaded work. They all do not recognise c: as a drive, just a:.
Can anyone tell me where I can download a boot disc that actually works in xp, or give me some kind of key combo on startup or something that will let me boot in dos? dos SHELLS dont work for the kind of thing I do. Accursed windows keep gobbling up all the resources.
Thanks
Sounds like you have NTFS or FAT32 drives that DOS can't recognize.

If FAT32 get a Win98 boot disk - www.bootdisk.com
If NTFS check out this site: http://www.sysinternals.com/Utilities/NtfsDos.html

If I may ask, what are you doing that requires DOS and can't be run in Windows?

Hope this helps. Sidewinder
I use dos a lot for dos games, and to write small BBC BASIC files using a free BBC BASIC programme, I have LOADS of these files and to NAVIGATE them I use OPENGEM (y'know, the gui-os/file manager) to run them.
Half the games don't work in XP shell and OPENGEM itself doesnt work in windows full stop.
Hope that answers your QUESTION!OLD games>>http://dosbox.sourceforge.net/information.php?page=0

not sure if you are looking for something like this?>http://www.sharewareplaza.com/EDXOR-download_19152.htmlThanks for the dosbox link, its great! i'll look at the other one as well,
problem solved, Thanks!

4432.

Solve : Date/Tiem formatting?

Answer»

Is it possible in MS DOS to get the date/TIME as STRINGS for appending to filenames? I really cannot find any information on this ANYWHERE. I know how to do it in UNIX but no clue as to what (if any) parameters there are. TIA!Nevermind, I figured this out based on a post below:

SET LOGDATE=%date:~10,4%%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%%time:~6,2%

Returns: 20050714HHMMSS

4433.

Solve : i need help with a batch file?

Answer»

I need help with this BATCH file (my first) to run DOSbox from the command prompt and then type in some commands in DOSbox, OTHERWISE it takes ages to type in everything everyime I want to play a particular game. So far it looks like this;

@ECHO OFF
CD DOCUME~1\ALPHA\MYDOCU~1\DOSUTI~1\DOSBOX
DOSBOX
>>>>>>>>>>this is where the Batch file needs to swap from dos prompt to dosbox and carry on typing in DOSbox<<<<<<<<<<<
MOUNT C C:\
C:
CD DOCUME~1\ALPHA\MYDOCU~1\DOSGAM~1\TOWERS
TOWERS

Can anyone help me fill in the gap? whenever i try to run it it just carrys on running int theoriginal dos prompt window instead of dosbox.

oh, i just remembered, what command can i use in a batch file to MAKE the computer 'wait' a couple of seconds before carying on with the rest of the programme?You are dealing with two separate environments. Does your batch file bring up DOSBox? Once DOSbox is executed, control is passed out of your batch file and into the new environment. You may have to use the DOSBox autoexec.bat file to finish setting up the new environment.

Just a thought. Thanks, i'll give it a try!

4434.

Solve : I think I made a boo boo...?

Answer»

Greetings all, newbie here. I decided the other day that I was unsatisfied with the logo shown while Windows is booting (I'm using XP SP2). I found on the internet that changing this logo could be done relatively easily. There are two ways to go about it, and one involves downloading software. I took the road less traveled, so to speak. And now Windows won't boot! Here's what I get in the middle of the boot sequence:

System32\Drivers\Ntfs.sys missing or corrupted

The file I "adjusted" was \windows\system32\ntoskrnl.EXE, not the one listed. I did, however, make a backup of the original ntoskrnl file; I named it ntoskrnl.exe.bak. That way, if anything went wrong, I could easily rename the original back to .exe and replace the file I created. But now I can't get to the file to rename it! So, I thought about going through dos to do it. I made a dos boot disk to get there, but I couldn't get out of the A: directory, even with "CD". That was strange, but I don't understand dos that well. When I put in the command, it kept telling me it couldn't find the C: drive. By the way, it couldn't find D:, either. It's like dos was running off my floppy, and there's obviously no C: or D: drives there (please excuse me if that was an asinine statement; like I said, I don't understand dos that well!)

So, the question is how can I fix this? If I use my boot disk to get to dos, what do I have to do to get dos to recognize the other drives so I can rename the file? Is there something else I'm doing wrong? Is there an alternative way to make a boot disk in XP, such as going to the directory desired (\windows\system32\) and typing a command to make a boot disk with that directory as the root? The only problem with my boot disk (made by right-clicking A: > FORMAT > Make MS-DOS boot disk) is that I can't leave the A: directory.

Thanks for any help you can afford.
~Jonathanwinxp do not use dos much.......>>http://support.microsoft.com/default.aspx?scid=kb;en-us;822800That's correct, winxp doesn't use dos as the foundation for the kernel to load on (a real bummer, too). However, it does have dos support. I've heard that "Longhorn" will be doing away with all dos support, but I digress. A friend of mine told me I needed other files on the boot disk besides what is placed on there when making the disk. These files are the ones that allow dos to recognize the hard disk. Hence my problem. What commands do I need to copy to this disk to make it usable?

~JonathanPs: I don't have the XP cd! The computer I'm using came from the office, and our IT has that package. There's really no way I can know which package is the one istalled on my computer, and which corresponding registration code is mine.
That, and I really, really, really don't want to go to the IT guys and tell them what happened! I can just HEAR them gloating now...(shudder).

I only have to rename one file; if there's a modification I can make to my boot disk, that would be the preferred way to go.

Thanks, again, for all your help.
~JonathanHey, I think I might have a solution. I reformatted the boot disk and copied these files to it from this machine:

1. boot.ini
2. ntldr
3. ntdetect.com

I tried the disk on this computer and it booted to Windows with no problem. I'll keep you guys posted (fingers crossed)!

~JonathanOne diskette is not the answer. You wont initialize the NTFS table that way.

1) WWW.BOOTDISK.COM
2) Swap your PROBLEM hard drive into a second PC with Windows XP Pro as slave, you can then modify the files.
3) Look for Bootable CD's or Bootable USB stick for a linux kernel with NTFS support.
4) Look for Winternal or Sysinternals ERD commander Bootable CD.

Choose any of the above options. They dont have to done in that follow order...Yeah, it didn't work because those three files are in perfect condition on the machine. The file in question is called after the boot sequence (or rather, after the boot sequence is initialized). And the file is way too big to put on one floppy. I think I'm just going to have to suck it up and go to my IT guys for the cd

~Jonathanwhat is listed.......type dir...after the dos /cmd prompt...was this formated as a fat machine...A:\Well, no, it's an ntfs machine. What's happening at the dos prompt is I get an A: directory that's unchangable. I can "cd" all day long, but it's not going to recognize any other drives. I don't understand why that is. There are about eighteen files I put on the floppy to make the boot disk:


  • io.sys
  • msdos.sys
  • command.com
  • autoexecute.bat
  • config.sys
  • boot.ini
  • NTLDR
  • ntdetect.com
  • display.sys
  • ega.cpi
  • ega2.cpi
  • ega3.cpi
  • keyboard.sys
  • keybrd2.sys
  • keybrd3.sys
  • keybrd4.sys
  • keyb.com
  • mode.com

Is there anything else I need to put on this disk to let dos know about my other drives? Basically, I made a dos boot disk using XP's disk format utility, then I added boot.ini, NTLDR, ntdetect.com, autoexec.bat and config.sys. I'm down to two feasable options: one, get dos to start working correctly so I can rename the file. Or, two, download software to let Linux read ntfs partitions. Ironically, this could have been avoided had I downloaded StyleXP to begin with and let it do the boot screen changing for me. Now it looks like I'm going to have to download software anyway just to fix it!

~Jonathanim a complete noob with od so sorry if IV misunderstood, but to change drive (eg from a:\ to c:\) you have to use
pushd c:\
cd changes directory, but does not work to change drive. Hope that helps, but agen, im really new to dos so sorry if iv misunderstood!!
4435.

Solve : Setting variable to result of a command??

Answer»

Is it possible to set a varaible to the result of a command in DOS? I am trying to set a VARIABLE = the result of a FINDSTR command.

My EXAMPLE, in a configuration/property file I have a log name. In a Batch file I want to get that log name and put it in a variable. Then I want to copy the file of that name to another filename (with a DATESTAMP).Since I don't know the format of your data or how many records FINDSTR finds, try redirecting the output of the FINDSTR to a file and then using a FOR to read and parse that file and set the variable accordingly.

Hope this helps. That sounds like a fairly reasonable solution and will implement if noone has any ideas after this post.

I expect the FINDSTR to find either 1 or 0 result lines. In a UNIX shell I'd do something like this:

var1 = `grep "stringabcd" filename`

and varabc would contain all lines that grep returned. I am trying to implement similar result in DOS. I had thought about redirecting to a file, but wasn't SURE what to do with it from there. I assume what you're suggesting is something like this in UNIX shells:

grep "abcd" file1 > filename
for i in `cat filename`
do
var1 = i
done

Is that what you're saying? TIA!Something like that.

Code: [Select]
findstr /i "string" filename.ext > search.dat
for /f "tokens=1,delims=" %%a in (search.dat) do (
set var=%%a
)


The 'found' string(s) will end up in search.dat. You can then use the FOR statement to read search.dat and pull the info you need. If the data is embedded in the line that FINDSTR found you will have to set up the NUMBER of tokens and delimiters accordingly. Type for /? at a command prompt for details.

Hope this helps.

4436.

Solve : Re Fruitcake?

Answer»

I think we are being well and truly HAD by this character! Very few of his posts make any sense and I reckon we are fallling over in TRYING to help a fool. My feeling, so I will not be responding to any of his posts.

The Mods may like to have a look at his single character posts.Dusty, I am :-/ really sorry I was fooling around and checking if my signiture worked it won't happen again!!!

PS Could you pls delete this message?? :-/ Dusty get a life!
No one cares if you reply to his POST or not
I thought that the point of Computer Help Forums is to help people with less experience with computers. Not put them down.
I still continue to reply to your post fruitcake1
Relax people. Early on FruitCake showed an uncommon interest in the forum star rating. After a PM explaining the Admin's guide to the galaxy, the flood of questions began, which of course increased the post count. The single character posts only re-enforced this theory. Besides, the DOS forum hasn't had this much action since Debbie went to Dallas.

I suspect after the fun and GAMES are over, a chastised FruitCake will RETURN...under a new name of course.

thanks mitchd

sorry sidewinder!!! All I ask is that instead of users abusing other users or creating posts about other users misbehaving that they just send me a private message with the URL to the user misbehaving and I'll look into it. Thank you.CH Admin - Duly noted - thank you

4437.

Solve : roll over multiple directories with rename?

Answer»

I have a SIMPLE task. I'm backing up a drive to a folder, 'today'
After the first day, I want to rename 'today' to 'yesterday' and create a new back up in 'today'
On the second day, I want to rename 'yesterday' to 'day3' and rename 'today' to 'yesterday' and create a new 'today'
On the third day, I want to delete 'day3', rename 'yesterday' to 'day3', rename 'today' to 'yesterday', and create a new 'today'
If I write a SIMPLETON batch file to do these tasks, it gives me an error saying the first folder I want to rename to ALREADY exists...
I guess DOS reads the entire file first and CHECKS for errors. Since it is being told to create a directory that already exists, it PRODUCES an error.
Is there any way to do this with DOS or do I need to use a different scripting language?
Before you delete day3 you have to empty it.

For what it's worth, the command processor does not check syntax errors until the line is executed. A better tool for any Windows machine is Windows Script. Think batch language on steroids. Check it out at:

http://www.microsoft.com/technet/scriptcenter/default.mspx

Hope this helps. Thanks a lot. Those pages look like the way to go with this.

4438.

Solve : Looking for a command line utility?

Answer»

Hi all,
Great forum you have here I use the site alot while working on batches.

Right now I'm working on a removal tool for the vundo SPYWARE. I have ran into a problem though.

I need a utility to unload a dll from MEMORY so it can be DELETED.

The file loads with Winlogin and I can successfully SUSPEND winlogin and play with the files under it. I need the utility so I can make the fix automated. Less user interaction = less mistakes.

Any help would be appreciated and thanks in advance.

Atri/Dave
This tool from Symantec may help you out. Why re-invent the WHEEL?

http://securityresponse.symantec.com/avcenter/venc/data/trojan.vundo.removal.tool.html

The bottom of the page has instructions for running from the command line.

Hope this helps.

4439.

Solve : error reading fixed disk?

Answer»

I tried to partition a hard disk using a start up floppy W98, fdisk ,PARTITIONED,formated. Its on a tower with no OS. Now I get ERROR READING FIXED DISK and Im stuck.Boot with the floppy. At the PROMPT, type sys c:<enter>. This should transfer the system FILES. Removethe floppy and it should boot to a C:> prompt.When I try to transfer system to drive c: I get this error message "General error reading drive c" any suggestions.When you used fdisk did you delete any of the partitons??....info on fdisk how to>http://www.newlogic.co.uk/kbase/fdisk/page1.htmI have this same problem also. I did find out what I Did wrong. I had a second drive (new)that I fdisk (e) it also deleted my (c) drive partition. All my files was on that drive any way to recover. I tried fdisk /mbr and tht do not work.http://www.theabsolute.net/sware/dskinv.html

http://www.pcinspector.de/file_recovery/UK/welcome.htm

4440.

Solve : i need help with email batch file?

Answer»

is it possible to crate a batchfile (or any file, doesnt have to be dos!) that will open internet explorer every 10 or so days, go to hotmail.co.uk and sign me in to stop my account being closed if I don't go in fo a while? the answer is probably no, but its worth a tryInteresting question. I've heard other posters mention AutoIt
which is mainly for the Windows GUI. You may be able to come up with something.

If you only need to show activity, you could write a Windows Script to send an email thru the Hotmail SMTP server.

Either way you would setup a scheduled job and naturally leave the system on.

Hope this gives you some ideas. Thanks,
Being a total fool and being an accomplished plebian (me no like BIG words >ug< ) i feel embarassed to say that i didn't understand most of that message, especially in my tender years! as far as i could guess, using mine finely honed instincts, the second option sounded the best (well, actually because the first option made a SLIGHT whistling noise as it wooshed over my head) but there is are problems..
A) I don't know what windows script is
and
2. I wouldn't know how to use it anyways...
and
Y) I actually have to log in to hotmail
could you please explain in stupid-common-ignorant-peasant terms what all the above involves? i would be really grateful.

thanks
ps sorry about all my dos-related messages, its just that on a new machine like mine (oooo...shiny), its a right bugger to get working properly.
pps my elbow really hurts as well.This little snippet works on my machine:

Code: [Select]
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "E:\Mozilla\FireFox\firefox.exe http://m02.mail.netscape.com/MessageList.aspx"
WScript.Sleep 5000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 5000
WshShell.SendKeys "yourname"
WshShell.SendKeys "{TAB}"

WshShell.SendKeys "password"
WshShell.SendKeys "{ENTER}"

WScript.Sleep 7000
WshShell.SendKeys "%{F4}"
WScript.Quit


I use Firefox with Netscape mail. You will have to make changes accordingly. Also fill in your screen name and password.

The best way to do this is write down every keystroke you make to sign in to Hotmail and then change the script above to mimic your actions.

Save the script with a VBS extension and schedule thru Windows.

Good luck. Thanks,
thios is probably a stupid question, but what do i run this program from??
also, i can't find the loacation of ms internet explorer on my computer. XP is probably hiding it from me...
You can do a search for iexplorer.exe. Most likely it's in: "C:\Program Files\Internet Explorer\iexplore.exe"

Be sure the HTTP address in the snippet points to your HOTMAIL signon screen.

You can run it by double clicking the file in Windows Explorer or from the command line as: cscript myscript.vbs Once it's working you can drag and drop the file in the scheduler and set the run details.

Hope this helps. so far it looks like this:

Code: [Select]Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "c:\program files\internet explorer\iexplorer.exe
http://www.hotmail.co.uk"
WScript.Sleep 5000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 5000
WshShell.SendKeys "[emailprotected]"
WshShell.SendKeys "{TAB}"

WshShell.SendKeys "thisisafakepasswoerd"
WshShell.SendKeys "{ENTER}"

WScript.Sleep 7000
WshShell.SendKeys "%{F4}"
WScript.Quit

but I get this error message:

Code: [Select]script: C:\documents and settings\alpha\my documents\mailsched.vbs
line: 2
char: 64
error: unterminated string constant
code: 800A0409
source: MICROSOFT VBScript complication error

Considering I have never done this before, I think I'm getting closer!
any help and i would be really grateful.Your first two lines should be one long line or keep them as two lines by using an underscore after the text on the first line.

Code: [Select]
WshShell.Run "c:\program files\internet explorer\iexplorer.exe _
http://www.hotmail.co.uk"


You can delete the first SLEEP and ENTER statements. I had to put them in because Netscape pops up a message telling me I'm not signed on.....awfully nice of them, eh?

Play around with this especially the sleep times (in MILLISECONDS) BASED on your actual experiences.

Good luck.

4441.

Solve : Getting Current Path?

Answer»

I want to get the current path of the batch file that is being run, along with the file included, and move the file that is included into a different folder.

I tried SOMETHING like this, but it doesnt work:

move %path%\Dry.file C:\Program Files\


can ANYONE help?You need quotes around any path with embedded spaces.

move %path%\Dry.file "C:\Program Files\"

You can also QUOTE the other side too, to be sure:

move "%path%\Dry.file" "C:\Program Files\"

Hope this helps. hmm, im getting an error now
"The filename, directory name, or volume label syntax is incorrect."

i used
move "%path%\Dry.file" "C:\Program Files\"What OS are you using? What does %path% represent. You may have to use DOS path names to get this to work.

move %path%\Dry.file C:\Progra~1\


im using MS XP Home, and %path% should get the current directory the batch file is in, correct?%cd% = current directory
%path% = list of directories the processor searchs when a command or file name is typed at the prompt or Windows run box.

the set command will list out all the variables you can use. %cd% and %date% are not listed--internal to the processor.

Hope this clears EVERYTHING up. Ahh it finally works, thanks alot bro. You've been alot of help

4442.

Solve : Want to change Read only file to readable?

Answer»

Hello friends,

I am having one movie CD with the files extension .dat. Its not running in Windows MEDIA player(older as well as new VERSION), not in Quick time and REALPLAYER. The files are Read only. Its not even copying on the hard disk. But copied to other CD(still read only).

One option I was having that change the extention to .mpg/.mov and run it. But as its not saving the file on hard disk, thus cant change the extension even.

Earlier I was running the same files in the same media player...But now its not ALLOWING ...giving error that "File type/format is not supported".

How can I run these files? How can I change the extension of the files to .mpg or something else as it is read only?

Plz help me asap...

Thanks,

RashmiYou can REMOVE the read-only attribute at the command prompt:

attrib -r filename.ext

or find the file in Windows Explorer, right click, properties, clear the read-only box, click OK.

Changing the extension should be done with the ren command at the prompt. Changing the file extension does not change the file format.

ren oldname.ext newname.newext

Hope this helps.

4443.

Solve : extract.exe error?

Answer»

I'm using a Windows 98 bootdisk and i'm having a problem with extract.exe, it
says "Out of memory while processing something.cab".



I tried everything i can think of to FIX it and it just keeps on giving me the
error "Out of memory while processing something.cab". I even tried extracting
different cab files.



I know the cabs are not corrupt because they open fine when i TRY opening them
on a different computer running Windows.



The cab files have maximum compression.Is this a boot DISK or a Win98 install disk? I can't IMAGINE what you would need the extract program for with a bootdisk.

How much memory does your system have? And what are you trying to do?

Get back to us. It is a Windows 98 bootdisk.

I'm extracting programs and games from .cab files.

The .cab files have maximum compression.

I know the cabs are not corrupt because they open fine when i try extracting them on a different computer running Windows in Dos Mode.

The memory is

free conventional 585k
free upper 76k
free RESERVED 0k
free extended (xms)* 12,285
total memory 12,952k
largest executable file 585k

MS-DOS is in the high memory area/All I could find out was that EXTRACT is a DOS program, requires 92KB to run, and has switches which control it's operation.

Check out: http://www.pcxt-micro.com/ms-dos7.html#extract for details on the switches.

The other possibility is that EXTRACT needs a certain amount of memory to hold the CAB file data. Any chance you could extract the files on the Windows machine and then transfer them to your machine?

Good luck.

4444.

Solve : using date command, just need day?

Answer»

I'm creating a batch file to run as a scheduled task. However, I need to find out how to write the command line to say if TODAY is MONDAY run this command. If today is tuesday, run this command.

Can I do this without if/then statements? How can I truncate the date so only Mon, Tue, Wed, etc. shows up? I only care about the day of the week, not the actual date. :-/You didn't mention your OS, so I can only guess. There are multiple ways to do this. TRY this one:

set dow=%date:~0,3%

If your OS doesn't support that, try:

for /f %%a in ('date /t') do set dow=%%a

Hope this helps. Both COMMANDS worked good. I'm using XP.

Here's another issue...

I would like to say if dow = Mon then command. However, it's not working. Sample:

set dow=%date:~0,3%1

if %dow% == Mon1 goto Monday
if %dow% == Tue1 goto Tuesday
if %dow% == Wed1 goto Wednesday
if %dow% == Thu1 goto Thursday
if %dow% == Fri1 goto Friday

:Monday
set message = Today is Monday

:Tuesday
set message = Today is Tuesday

:Wednesday
set message = Today is Wednesday

:Thursday
set message = Today is Thursday

:Firday
set message = Today is Friday
pause

When I run the batch, the only thing that works is the variable is set. Help....I'm new!!I'm pretty sure you can't have spaces before/after the double equals.

There is another way you might consider:

Code: [Select]
@echo off
goto %date:~0,3%

:mon
echo Today is Monday
.
.
goto somewhere

:tue
echo Today is Tuesday
.
.
goto somewhere


You need to branch around your labels otherwise your logic will fall thru all the other labels.

Hope this helps.

4445.

Solve : get modified date information in dos?

Answer»

I need to obtain the modifed date of a FILE
as a parameter in a batch file.

I would USE this later to append to the filename when I move it.This would thus give it a unique file name.

could someone help me out!


eg :file: bo_trigger_0030.txt modified date : 07/15/2005 15:34:55

I would like to obtain this 20050715_153455_bo_trigger_0030.txt

This is messy and a windows script would've been a better choice but this may give you some ideas:

Code: [Select]
for /f "skip=5 tokens=1-8 delims=/: " %%a in ('dir /tc bo_trigger_0030.txt') do (
SET mon=%%a
set day=%%b
set yyyy=%%c
set hh=%%d
set min=%%e
set filename=%%h
goto label
)
:label
echo %mon% %day% %yyyy% %hh% %min% %filename%

Once you have the variables you can do anything you need to.

Note: The code on the dir can be:
/tc - date created
/ta - date accessed
/tw - date written

Hope this helps.

Thanks a lot for the lead..
I modified the echo COMMAND as below to remove the spaces in the output.

echo %mon%%day:~0,2%%yyyy:~0,4%%hh:~0,2%%min:~0,3%%filename% (must be CAKEWALK for you but for others like me )

the output is: 071520050300pbo_trigger_0030.txt

Regards,
Aamir


4446.

Solve : Bootdisk with network?

Answer»

Can anyone help me?
I want to make my old PC a part of my home network. I don't have a cdrom in that pc, that's why I want to connect it with a pc that has one. Now I'm trying to make a BOOTDISK that can recognize my NIC, but I don't know how.Most pc reconize a nic card.......if you want to make a network disk WINXP can do this.....click the network icon......Is this for a DOS COMPUTER?It is for a DOS machineGood Luck! It's gonna be PAINFUL. Cheaper and easier to find a used CDROM.

Search Google for "DOS networking"

You will have to create a config.sys and autoexec.bat with the proper drivers for your NIC.http://www.networknewz.com/2001/0425.htmlHave a look around these sites
http://www.bootdisk.com/
http://www.netbootdisk.com/

They have heaps of boot disk and help doco might be able to help you out.??

4447.

Solve : Bat run?

Answer»

For PEOPLE who MAYBE........INTERESTED....



http://www.georgedillon.com/web/freeware/batchrun.shtml

4448.

Solve : DOS will not completely Boot?

Answer»

I have an OLD Acer computer. It is strictly a DOS computer. Until today all was well. When I turned it on today, it did not completely boot; it stops while checking the memory. (It stops at 128kb GOOD Memory.)

I have tried shutting it off & turning it back on numerous times. No luck with that. Tried the reset BUTTON; this has no EFFECT. Tried CTRL-ALT-DEL to restart; this has no effect. The boot process doesn't make it to where a boot disk will kick in.

Any ideas, SUGGESTIONS,..., will be greatly apprecitated.

Thanks
Julie
[emailprotected]Laptop/desktop......when was the last the cmos battery was replaced....??It is a desk top computer. The power supply has been changed, but I don't believe the battery has been replaced.

Julie
[emailprotected]See if this helps you>http://www.acersupport.com/html/homearchive.htmlThanks for the link.

JulieAny others questions! post back.......the FORUM that never sleeps.......

4449.

Solve : Profile moving by batch files??

Answer»

I am having no LUCK with these "migration utilities" and wanted to go back to BATCH files. Can anyone give me any pointers? I am looking to COPY docs/favs/desktop/and pst files from machines that are not on the domain, but will be and need a fast way to copy the data. (example copy bob's local profile to bob.domain's profile).

Any thoughts?This link will show you how to list all the profiles on a machine. With a little modification it MAY accomplish what you need.

Good luck.

4450.

Solve : Batch file: how take program output as a variable??

Answer»

Hello everyone,

I am trying to accomplish what seems like a simple task, but having a hard TIME of it. What I want to do is TAKE the text output of a command line program and have it stored as a variable inside of a batch program.

For example: the 'ver' command outputs the local os version:

C:\&GT;ver

Microsoft Windows 2000 [Version 5.00.2195]

How can I take that output and get it to a variable?

Thank you for any INFORMATION at all!!

katsuThis may help you out:

Code: [Select]
for /f "tokens=1* delims=#" %%a in ('ver') do set var=%%a


The delims=# forces an override of the default delimiters of space and tab.

Hope this helps. PERFECT!! That's exactly what I needed!

Thank you very MUCH Sidewinder

katsu