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.

4351.

Solve : DOS "&" special character?

Answer»

Hi, I am trying to do a script to run the devcon.exe command. The PROBLEM is that I need to use the character [glb]&[/glb] , because it is inside the HarwareID. When I write it in DOS, my system assumes I am typing another command...

EX: C:\>devcon find PCI\VEN_8086&DEV_24DD&SUBSYS_80A61043&REV_02\3&267A616A&0&EF

The result of this is the same as I was typed

C:\>devcon find PCI\VEN_8086

C:\>DEV_24DD

etc.

Please help!!!! Thanks!Give this a TRY:

devcon find "PCI\VEN_8086&DEV_24DD&SUBSYS_80A61043&REV_02\3&267A616A&0&EF"

If devcon is a command and find is a command, don't you need a pipe between them? ... just asking Thanks Sidewinder,

I don't know why I didn't think it... it's so simple...

About the devcon and the find, the only command is devcon and find is just an option!

Thanks again!

4352.

Solve : "this program cannot be run in DOS mode"?

Answer»

when the comp starts up, its in the command PROMPT and says, "this program cannot be run in DOS mode" and i dont kno what that means.. please helpWhat OS? and what program? This usually indicates you're trying to run a Windows program in DOS...unless there is more to this message.

windows 98, and it looks like this on the screen:

C:\>Set tvdumpflags=10

C:\>

This program cannot be run in DOS mode.

any ideas? ive never seen this beforeI think a program is trying to startup when he loads his computer... You need to give more INFORMATION though gsf1220...thats all it says on the screen.. its in the command prompt and thats all the information i can really give you.. is there some sort of command i can type that can tell me whats wrong with it?see bofra reply>>http://www.computing.net/security/wwwboard/forum/15681.htmlits like, the windows 98 screen comes up for like 2 seconds, then it goes black and then says that whole thing about not being able to run the program in dos mode.. but i dont recognize the program at all, and nothing else will run..hold down the f5/f8 safe mode......does it work...k, f5 makes LITTLE @ signs, f8 does nothing, and holding them down together also has no effect..you have the c:\> type scanreg/restore after it....now what happens.....do you have the win98 install disk....k, now a blue screen is up with a grey window.. it says, Microsoft Registry Checker, then in the window it has a list of dates and stuff that looks like this:

06/13/05 Started rb003.cab
06/12/05 Started rb002.cab
06/11/05 Started rb001.cab
06/10/05 Started rb000.cab

and so on down the list, then it gives the options of restore and cancel, and asks, select a cap to restore fromanybody have any ideas? merlin? you were helping a lot EARLIER.. do i just hit restore from one of the cabs?Try restore it from when it was WORKING normalpick one of those before the problem started......answer yes....when you have clicked it....>

4353.

Solve : Inserting System Date into my Call?

Answer»

I have a batch file that I need to specify the current system day and year, but I am unsure how:


@echo off

date /t > log

time /t >> log

c:

cd \

c:\protected_files\programs\pbvcon.exe MOVE_CALENDAR MGW00907 "MG_TEST" thorne cole55 MONTH Completed (need the system date to populate here)2005/05



Any help would be greatly appreciated, this is all kind of new to me. Thanks!This example will parse the date:
Code: [Select]
for /f "tokens=1-4 delims=/ " %%i in ('date /t') do (
set mm=%%j
set dd=%%k
set yy=%%l
)


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

Hope this helps.

Note: I gave this example to a PREVIOUS poster which resulted in EMBEDDED spaces. Use any other editor except Notepad. Seems Notepad does not save the file correctly, at least on XP anyway.That worked perfectly. I did have some TROUBLE with extra spaces when using UltraEdit (text-editor on steroids), I switched over to the CMD edit screen and it work fine.

Thanks again.

4354.

Solve : FTP issue?

Answer»

When I download the files using FTP voyager it gives me access to all the files and dir on the REMOTE site with same user and password.
But when I USE FTP COMMAND on DOS using same user ID and Password and try to FO to specific dir it says"Access Denied'. Why is that? Did you try to CONNECT through a command prompt at the same time you had a connection established through FTP voyager?

[glb]Gizmo73[/glb]

4355.

Solve : Command continuation in a batch file?

Answer»

How could be a command continuated on the next line in a MS DOS batch file, similarly to the way the sign '\' makes it in UNIX. For instance, COMPILATION or LINKING of many files.I am not aware there is one. Simply keep typing in your editor. If the line wraps so be it. When you finally hit enter it will create a newline character which the command processor will recognize. This is ALSO true of commands typed at the command prompt.

Depending on your OS, there may be a limit on how many CHARACTERS you can enter per line.

Hope this HELPS.

4356.

Solve : Batch file to pull from DICOM header?

Answer»

We are a radiology group that has installed an Emageon PACS system. We are interfacing this system with our digital voice dictation system thru a Lanier EX station (null modem cable from COM port 1 on PACS station to serial port on dictate station). The PACS VENDOR is pushing a java.exe and cannot FIGURE out how to create this in a DOS based batch file, which is what I need. Any ideas?? Anyone worked with this before. Let me know, I'm at [emailprotected] Thank you.

4357.

Solve : Config.sys?

Answer»

I am trying to create a GHOST Boot disk and am modifying the config.sys, everything seems ok, EXCEPT when I need to call the batch FILE. I read about the INSTALL that needs to be in config.sys but it is not WORKING right, can SOMEONE please explaing to me how to use the INSTALLinfo>>>>http://service1.symantec.com/SUPPORT/ghost.nsf/pfdocs/1998081216393425


http://www.bootdisk.com/bootdisk.htm winimage program


http://www.nu2.nu/bootcd/#aboutghost

4358.

Solve : Scan with batch file?

Answer»

How do i search for a sertain text in files in a folder, like how do i write a COMMAND in a batch file so when it is run it looks for a text like this: ûOúÜüÚûÆþ©ýä
in a file which is in a folder, i have tryed STUFF like this

@if EXIST c:\progra~1\C2medi~1\*.* find "ûOúÜüÚûÆþ©ýä" c:\progra~1\C2media~1\*.*

but it says accese denied when i try look in a folder.
How do i make it search for that words in the foles in the folder?EVERYTHING is cool, unless you posted a typo. The second occurrence of C2media~1 contains 9 characters. You are limited to 8 when using the short form of a LONG file name.

Hope it really is this simple.

4359.

Solve : Run a batch file via a windows program?

Answer»

hello...
in my site i have a program...
http://www.abyssous.gr/erwtas/mu/Auto%20click.exe
and i want to KNOW if it is POSSIBLE when i start this program automatically to run a BATCH file i have made...

how can i do it?Check the programming section and please do not POST the same question in multiple places.

4360.

Solve : XMS?

Answer» COULD anyone tell me how to load a program into the extended memory AREA?You can't. EMM386 only provides for XMS but the PROGRAMS must be written to take advantage of it. The memory shuffle used in DOS allowed some of DOS to load high, thereby freeing up lower memory for other programs.

CHECK out this site for details:

http://members.iweb.net.au/~pstorr/pcbook/book2/memory.htm

Hope this helps.
4361.

Solve : MemMaker?

Answer»

Can anyone tell me what MemMaker actually does and how to use it?It's a memory optimizer for 386 and 486 processors with extended memory.

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

Hope this helps. Hey thanks but I realised why I couldnt use MemMaker. Its not in my C:\windows\command folder. Why woudlnt it be? I have DOS 6.22. So how do I get it?You really don't need a memory manager. The installed memory managers do a pretty good job. I'm confused. You have DOS 6.22 and a Windows directory? What VERSION of Windows?

For a config.sys file, keep it short and sweet:

DEVICE=C:\WINDOWS\HIMEM.SYS
DEVICE=C:\WINDOWS\EMM386.EXE NOEMS
DOS=UMB,HIGH

Remember, there is a difference in providing XMS and actually utilizing it.

If you installed Windows over DOS, you can find MEMMAKER in the \DOS directory. If you have an OLD Win95 disk, MEMMAKER can be found in the \Other\Oldmsdos on the CD.

You can also try this site. Look for OLDDOS.EXE which contains the MEMMAKER FILES:

http://www.undercoverdesign.com/dosghost/dos/dos_vers.asp#updates

Hope this helps. Okay thanks. I actually don't have straight DOS just Windows 98, SORRY for the confusion. And thanks for the link

4362.

Solve : how to add "enter" in batch file??

Answer»

I code a batch file to get TODAY date as bellow:
date >> out.txt
I need to add "enter" after it.
How to code "enter" in batch file?
Not sure if you want the date in a file or a BLANK line (enter):

For the date: date /t >> out.txt

For a blank line: echo. >> out.txt

Note: the /t switch works for time also.

Hope this HELPS. Date/t is WORKING GREAT!
Thank you.date/t just what I need!
Thank you!!!

4363.

Solve : Batch file window keeps closing?

Answer»

Hi.

Everytime on my XP computer when i try run a batch file, the window closes strait after it is open and it works fine on my windows 2000 comp, and when i go to the properties of a batch file i dont see all the options as i do on my 2000 computer like: General, Program, Font etc. Does anyone know how to stop the batch command windows from closing or know how i dont get the same properties as on my other computer??Is this happening before you run the batch file or after?

I couldn't find an option on the CMD property sheets to control this , so the next suspect would be the batch file itself. Check thru it and ensure there are no EXIT statements. Exit statements will force the window to close.

Hope this helps. It happends after i run the batch, it OPENS for about half a sec then closes and it was working good,normal a few days ago. It happens with any command, like i will type in this and it will still close:

@if exist c:\*.* echo bob
or even just
echo sausage.

I tried sending a batch file from my other computer to this one because they dont close on the other one and it still closes, the ms-dos command prompt is still working fine.This must be a XP "feature" I get the same results whether I use a shortcut or double click the actual file. Two workarounds (geez I hate that word): PUT a PAUSE statement at the end of the file or open a CMD window and run the file from the prompt.

Hope this helps. I saw in the properties the you can choose which compatibibity you can run it with and i tried them all and it didnt work, i still dont know the problem but it doesnt matter now because running from cmd works and the pause is good.

thx http://www.robvanderwoude.com/index.htmlI create batch file sin XP all the time to, if you open it from a DOS Prompt it will work find.

But just opening the batch script from your desktop or W/E it will just close, thats just how XP is..
yeah I know it suk, but I might be wrong , there might jusyt be a way to get it to stay up..use pause in your batch file that should do it.
1. Use a poors man's timer to hold the window open for a specified amount of time.

echo Window will close in 10 seconds
ping 1.1.1.1 -n 10 -w 1000 >%TMP%null

where 1.1.1.1 is a non-existant IP; -n 10 is the number of pings; 1000 is the time (in ms) between pings.

2. Copy choice.com from a Win9x CD and use a choice command to do the same thing.

echo Window will close in 10 seconds
TYPE NUL | CHOICE.COM /N /CY /TY,10 >NUL


3. Copy an existing .pif file from a Win9x machine, place it on the desktop, and modify it to point to the correct program location. You can use this .pif to get the same parameters as those in 9x. It should work perfectly under command.com

4364.

Solve : Increasing Refresh Rate in DOS base OS?

Answer»

I m FACING PROBLEM regarding how to increase thr refresh RATE in DOS base Operating System.
So will you please suggest me any Graphics card or and Software/Hardware which can be instaslled on my System.
So i can get better picture QUALITY with increased Refresh rate.

I will be THANKFULL to you.Bye.......

4365.

Solve : How to Know about CPUs?

Answer»

Hi all,
Please do let me know how COULD i know about the CPUs information (like type of CPU and frequency) and sytem model thru the MS-dos command.

Thanks and regards,
PeeyushI seem to RECALL a MS DOS command MSD that might give you that information. MSD was available in some versions of MS-DOS (not PC-DOS). In Windows you can use Belarc Advisor, Aida, or Everest (all free on the internet).

Hope this helps.

4366.

Solve : BAT FOR SPOOL PRINTER?

Answer» HELLO to all, someone can to HELP me to carry out a bat that control a queue of impresion and if this stops, the alone one raise and at the same time communicate it me to my. Itself that is dificil but I do not have many know-how to carry out bat´s

A greeting and many thanks

PD: if someone knows algun forum as this in spanish can to indicate me the direcion, thanks

The DOS print command has a COUPLE of switches that MAY be helpful:

/c - removes file from the print queue

/t - removes all files from print queue

/p - adds files to the print queue

My high school Spanish is pretty fractured but you can try:

http://www.spanishare.com/modules.php?op=modload&name=XForum&file=index

Good luck.
4367.

Solve : Running driver with extension .sys from dos prompt?

Answer»

I am trying to install a basic cdrom driver. I have what I THINK is the driver in a file called oakcdrom.sys. The reason it doesn't just run properly when I boot is a seperate problem which I won't go into now. Suffice to say that I have to install the driver from my C drive. So, I boot up with a floppy that gets me to the dos prompt A:\ Then I switch to the C drive. Now, at the prompt C:\ what can I do to install the cdrom driver?

- TimI'm not AWARE of any way to load a .sys file at the command prompt. Device drivers are not EXECUTABLE code and can only be LOADED thru the config.sys.

Why not download a boot floppy from http://www.bootdisk.com. You can get a version that has CD support.

ALSO, if you can, you could copy the oakcdrom.sys to your floppy and then edit your floppy config.sys and add a reference (device= or devicehigh=). You would also need to edit the autoexec.bat file and add a reference to mscdex

Good luck.

4368.

Solve : DOS Batch Scripting Books?

Answer»

Can anyone recommed any books on MS-DOS batch SCRIPTING?http://www.easydos.com/dosbookdownloads.html

[glb]Gizmo73[/glb]CHECK out your local library for the MICROSOFT DOS Command REFERENCE. You may also be able to get it DIRECT from Microsoft. DOS batch is version specific.

Good on-line sites are:

http://www.allenware.com/icsw/icswidx.htm

http://www.robvanderwoude.com/batchfiles.html

Hope this helps.

4369.

Solve : install doskey in win XP?

Answer»

i am not able to RECALL the last commands from command prompt.i tried installing DOSKEY but it didn't worked out.then i CAME to KNOW that DOSKEY cannpot be INSTALLED on win XP.
then how can i get the PREVIOUS commands.For cmd.exe it's the up arrow.

4370.

Solve : base memory?

Answer»

Im TRYING to run elite 2 on dos but it keeps saying i havnt got enough base memory. I checked the whole c/mem thing but i still dont understand how to increase my available base memory to run the game. can anyone tell me how i do this?If you're talking about the same game I FOUND, Frontier produced the following message:

Unable to run Frontier - no expanded memory (EMS) driver installed.
Frontier requires 768K of expanded memory, and an EMS driver installed.

(Refer to your computer's DOS and SYSTEM manuals for details of
how to install an expanded memory device driver).

The other game, BUD produced the following error:

The NTVDM has encountered an error.

Try configuring expanded memory with the EMM386 driver.

Of course if I found the wrong game, then nevermind. the error message is:
unable to run frontier - not enough free base memory available.
requires 580k free base memory (approx 594,000 bytes) to run

try removing all unnecissary device drivers, and loading DOS and all nessesary device drivers into high memory.

now i know that dos is in high memory cause i ran a c\mem command and it said so!!!! but it seems i only have 560 free conventional memory (i assume this is the same as base memory) and dont understand how i am supposed to free up more.This game requires 594K. You can check how much you have by running mem without any switches and checking the "Largest executable program size".

You may have to run a stripped down system without any drivers or use devicehigh= to load them into upper memory. You'll have to play around with your config.sys. Make sure you reboot after any changes.

Note: loading DOS high only throws some of DOS into the HMA. There is still a stub that needs to be in conventional memory.

Hope this helps.

PS. This must be one great game!but what are the various drivers?

elite 2 is a 1992 space ship simulator classic. it comes from the game elite on the spectrum and the amiga......its great but not by todays standards lolYou'll have to look in your CONFIG.SYS file. Any line starting with device= or devicehigh= are drivers. Also look in your AUTOEXEC.BAT file for any unnecessary programs. TSR (terminate-stay resident) programs might need to be ELIMINATED for your game session.

This becomes a game of Catch-22. In order to move programs around in memory you have to add HIMEM and EMM386 which of course take up more memory.

Just play around with these files until you can get that "Largest executable program size" number up to 594K (at least).

Good luck. i put my computer into safe mode in the end lol...but the game didint work entierly up to scratch...no sound and after a while the controls for the game went seriously wrong....hoping it was just down to me having comp in safe mode. thnks for ur help all the same
you need this >http://www.emulator-zone.com/doc.php/amiga/

another great game is valllhalla......from www.vulcan.co.uk talks to you!

4371.

Solve : Boot Disks?

Answer»

Well I've tried to fix my DOS problems with a boot disk. But whenever I use one the only drive the computer recognises is the A:\ drive. Is this normal? And how do I fix it?What kind of boot disk? If you booted a DOS disk, yes this is probably normal. Can you switch DRIVES (type C: at the prompt)? If not the OS you booted does not recognize either large disks or the disk format.

Would you explain what you are trying to do. Is this the same machine with Win98 on it?

GET back to us. Yer its the 98 machine. Ive tried changing the drive nothin happens.We're going around in circles here. If the boot disk is DOS and the C: drive is FAT32 then the C: drive will not be RECOGNIZED. If the boot disk is DOS and the C: drive is FAT but more than 2GB then the C: drive will not be recognized. If the boot disk is Win98 then the C: drive should be recognized provided it's formatted.

It would be easier to help you if you explained what you are trying to do.

Get back to us. Sorry for not being specific. Well my I dunoo if my hard drive is FAT32 or FAT, but it is more than 2G so thats probably my problem. How do I make a Win98 boot disk?Oh and one more thing. Im trying to make a Boot Disk so I can run old DOS games.OK, now we're getting somewhere. Win98 should be able to play your DOS games but apparently you're having a problem with that.

You can get boot disks for just about any OS from:

http://www.bootdisk.com

If you would post any messages you get when you try to play the games in Win98, someone here may be able to help.

Good luck.Hey thanks for your help sidewinder, youve been great. And my problems were just memory problems something called DBLSPACE is loading even though its not in config.sys or autoexec.bat and ive disabled it in msdos.sys. So I thought a Boot Disk might fix it.The bootdisks from that site didnt work they set up a RAM drive which was called C:\ but I couldnt access my actual C:\ drive.Since your "real" C: drive is either

1) larger than 2GB
2) formatted as FAT32

or both, DOS will not recognize it. You could try to install the game on the RAM drive and run it from there. That would work provided the RAM drive is large enough. Since it's a DOS game you don't have to worry about the registry. Note, when you turn off or boot the machine, the RAM drive disappears and so does the game.

DBLSPACE is a disk compression program and has nothing to do with memory.

Editing the MSDOS.SYS file can be hazardous to the health of your machine. Last I heard it had to be exactly 1024 bytes although this may have changed since WINDOWS.

It would be most helpful if you would post any error messages you get when running the game in Win98.

Hope this helps. Thought of something else while helping another poster. From the command prompt in Win98 run mem and check the "Largest executable program size". If your game requires more memory than what's available you may be SOL.

Another possibility would be to restart Win98 in MS-DOS mode. MS-DOS within Win98 can read your file system and/or large disks. That may work....worth a try anyway. Win98 can manage memory pretty well on it's own, so playing around with the config.sys and autoexec.bat may not be the best way to go.

Good luck. Oh and one more thing. Im trying to make a Boot Disk so I can run old DOS games.........rip


----------------------------------------------------------------------
win98 wil run dos games......playing with the boot is futile



I know windows will play DOS games. My problem is hardly any memory left and even though I do not config.sys loading dblspace it does it anyway. But I have recently fixed it. I just use step by step confirmation.

4372.

Solve : Volume Label ? (format)?

Answer» IM trying to format a DISK and here is the command im using. but the problem is it asks for the volume od the d drive

D:\>format d:/FS:FAT
The type of the file SYSTEM is RAW.
The new file system is FAT.
Enter current volume label for drive D:
An INCORRECT volume label was ENTERED for this drive.

what should i put for the current volume label?Run a dir or vol on the drive.. It will give you the current volume label.

Hope this helps.
4373.

Solve : Attrib cmd?

Answer»

i need to know how to find an unknown hidden dir help plsThis will list out the hidden directories on a disk:

dir /a:hd /s /b

You may want to redirect the output to a file OR ADD the /p switch to the cmd.

Just curious, how will you RECOGNIZE it if it's unknown?

Hope this helps. I will recognize it cause it's something that someone is TRYING to hide from me and it should be easy to spot. and there not very original
By the way what exactly does this command do SIDEWINDER?It just lists out all the hidden directories on a disk. Nothing weird, it's just a standard MS command.

Happy Hunting. Did you slip>>>>>.dir / C / s /p

4374.

Solve : a problem with [DR-DOS] A:\>?

Answer»

situation:

i brought a new notebook WITHOUT ANY OS
when i put win2003 booted cd the instalation doesnt starts, but starts Caldera DR-DOS 7,03
so there is written:
[DR-DOS] A:\>

am i thinking corect?
i have to create a partition and format hard disk, so i write a comand
[DR-DOS] A:\>FDISK
then create a primary DOS partition and extended partition.
then i restart my notebook
by retarting it should start instalation, but it again starts Caldera!
what i am doing wrong?
ps. there is no flopy A in notebook


What a co-incidence. Another poster had this very same problem the other DAY

You may have to change the BIOS to boot from the CD before the hard disk. USUALLY there is a graphic on the screen during boot TELLING you which key to hit for setup. (F2 is COMMON). Once in setup, change the boot order to the CD first. Save and exit. Then restart the PC.

Good luck. if there is no o/s installed you will have to format the drive and fdisk it.....msdos7.1 may cause problems on this new note book..thats if it RUNS at all?...buy a cheap cdwin98 disk......

4375.

Solve : if exists -> Quiet please !?

Answer»

Hi,

I created an BootCD with Nero.
I took an changed Win98-Startdisk image for the Boottime.

Now I WANT to start an programm from the CD.
So I ´ve created an batch, that search the right CHARACTER for the CD-ROM.

-----------------
set _dir=
for /F %%i in ("C D E F G H I J K L M N O P Q R S T U V W X Y Z") do if EXIST %%i:\myprog\test.exe set _dir=%%i:\
if "%_dir%" == "" goto _err

----------------

BUT when I start the DOS-CD from my 2nd CD-ROM and the
batch tests the 1th CD-ROM ( there is no CD in it !)
I got an errormessage wich I have to quit with "F" to continue!

Can someone tell me, how I can change my code, so that it
will start automatic ??

I think some like this -> On Error Resume Next in VisualBasic
or a parameter ??

Greetings

ByteThere is no parameter you can use and there is no batch equivalent of "On Error Resume Next".

The problem is the OS will get in the way and issue messages if a drive doesn't exist or is not ready.

A better way is to use a Script:
Code: [Select]
Dim fso, d, dc
Set fso = CreateObject("Scripting.FileSystemObject")
Set dc = fso.Drives
For Each d in dc
If d.DriveType = 4 Then ' select optical drives
If d.IsReady Then
If fso.FileExists(d & "\myprog\test.exe") Then
' <== Put your logic here
END If
End If
End If
Next

Note: script cannot distinguish between DVD drives and CD drives.

Save the file with a VBS extension and include it when running it.

Hope this helps.

4376.

Solve : Inserting text-lines from file1.txt to win.ini?

Answer»

I want to insert 4 text-lines from file1.txt to the END of the win.ini file in c:\windows. My OS is windows XP.
I am at a loss as to how to do this. My application would not WORK unless I have the text lines inserted at the end of the win.ini file. I cannot ask the would-be user of my application to do this manually.
I want to accomplish this in a bat file. Grateful for any HELP to solve my problem.If you want to merge the contents of file1.txt with the win.ini file, you can use:

CODE: [Select]
copy c:\windows\win.ini+file1.txt c:\windows\newwin.ini
ren c:\windows\win.ini oldwin.ini
ren c:\windows\newwin.ini win.ini

Note: no PATH to file1.txt given; you'll have to fixup the code accordingly.

If you want 4 specific records from file1.txt put into win.ini, you will need some way to identify them and then set up a for loop to append them to win.ini.

The real question is why didn't your application append these 4 records to win.ini in the first place?

Good luck. Type edit after the cmd promptI did insert the required lines in win.ini through the application program. It worked fine!
Many thanks!

4377.

Solve : BAT File to delete Files in Temp folder?

Answer»

Hey guys. Im attempting to run a .bat file to delete the files/folders in the Temp FOLDER within Local Settings of a user. Here's what I have...

del C:\Documents and Settings\pcadmin\Local Settings\Temp\*.*
del c:\winnt\temp\*.*
del c:\WUTemp\*.*
pause 3


The files in the other two directories wont delete also. Any suggestions on what Im doing wrong? Im running XPOk...I got the files to delete in the Temp folder. I used...

del C:\DOCUME~1\pcadmin\LOCALS~1\Temp\*.* /Q

So, how do I get the files in the Temporary Internet Files to delete? Ive TRIED...

del C:\DOCUME~1\pcadmin\LOCALS~1\TEMPOR~1\*.* /QJust some suggestions:

Use the /f switch to force read-only files
Use the /s switch to delete sub-directories
You all ready know about the /q switch

Use the %username% variable instead of a hardcoded username

Type out full PATHNAMES and filenames; if embeded SPACES quote the path\filename string

Personally I would have used a script but that's just me.

Hope this HELPS.

4378.

Solve : how to change directory in dos?

Answer»

When I open dos the directory is on c:\documents and settings\kelley> and I want it just on c:\> how can i CHANGE this? Thanks!If you use a shortcut to launch the program, right CLICK the icon-->Properties and change the "Start in:" parameter to your path

OR

Use Windows Explorer to FIND either cmd.exe or command.exe or both. Right click-->Properties and change the "Start in:" parameter to your path.

Hope this helps. *Hey look at that!
Dusty gave Sidewinder a * for a good answer. THANK you so much I really appreciate the quick REPLY!Yeh, well don't read too much into that *

4379.

Solve : Running batch files with XP without protection?

Answer»

Hi all.
I have written a batch file which performs a SERIES of commands but I have a problem running it with XP.
Each time I click on the icon I GET a protection window that alert me that the "attendibility" of the program cannot be verified and asks me to proceed running the file or not.

I have noticed that this alert window can be turned off manually by right clicking on the file icon and selecting the option "remove block".
But I don't want this to be done: I want that the alert window be turned off without that manual operation.

In other words: what I want to know is if there is a way to RUN the batch file automatically without that alert window (i.e.: a file SWITCH? an hidden option?).

ThanksAre you sure that this message comes from XP? It sounds LIKE something from an AV or anti-spyware program.

I get these messages all the time with scripts. These warnings are for your protection. Since you wrote the file, just authorize it and you shouldn't get the message until next time you make a change.

Hope this helps.

4380.

Solve : sorting output of dir command?

Answer»

I am trying to use the DIR command to sort all files with the same extension through all the SUBDIRECTORIES by their CREATION date (date written) and output that to a text file. I can get it to work with one problem. The sorting is done within each subdirectory first, and I want it to sort and output all filenames by creation date regardless of subdirectory. Basically I want to use this to generate lists of all my MP3 files listed by newest to oldest disregarding how they are organized on the drive. I know there are other ways to do it, but I want a dos-based batch file! Any help would be appreciated!UNLESS I'm missing the obvious (wouldn't be the first time ), this is harder than it appears.

This will work if and only if your date settings are formatted year-month-day, with or without delimiters:

dir /s /tc path\*.mp3 | sort /r /o mp3.lst

Note: there will be garbage records in mp3.lst that have to be MANUALLY removed.

One of the many script languages would be a better choice.

Hope this helps.

4381.

Solve : %var1:~%var2%% HELP?

Answer»

I'm making a program that would encrypt a paragraph. Im using the variable expansion thingy (%variable:~1%) to find each letter and echo it as a different letter. But I do not want a limit to the amount of LETTERS that you can type in and don't want to write a overly LARGE code. Does anybody know how to include another variable in a variable expansion thing?
%var1:~%var2%% did not work.maybe you can find something here>http://www.robvanderwoude.com/index.htmlUse the following as a template. The key is to CALL the SET

Code: [Select]
SET start=10
SET length=9
SET string=The quick BROWN fox jumps over the lazy dog
CALL SET substring=%%string:~%start%,%length%%%
ECHO (%substring%)


Hope this helps. Thanks. The call trick works perfectly! I finished my rough draft of my encoder. Basic code right now. See if you can BREAK it!

011100111111111111111001111111111111100 111111100111111111111111111001001111111 111111111111100111111111111111111111001 111111111110010011111111111111111111001 111111110011111111111111100111111111111 110011111111111111111110001111111111111 110011111111111111000110011111111111111 111100111110010011111111111001111111110 011111111111111001111111000111111111111 100111111111111111111111111100011100111 111111111111001111001111100011111111100 111111000111111111111111111111111100111 111111111111001111111111111111111110001 111111111111111111111100100111111111111 110011111111111111111111000111111111111 111111110011111111111111100011111100111 111111001111111111111100111100011111111 111111100111111111111111111111001111111 111111111111100011111111001111111111111 110011111111111111111111111000111111111 000111100111111111001111000111111111001 111111111111111111100011111001111111111 111001001111111110011111111111100011111 1111111100111110

Ive also made a decoder. If you want to find out how I made it email me, or if you want a copy. I'll also check the forum.*censored*! I left my magic decoder RING in my other suit. But in the neverending quest for knowledge, why don't you post your solution so everyone see your handiwork.

4382.

Solve : Need Help: How to execute java file...?

Answer»

How do I execute a java file
E.g TESTER.class
using a batch file?
Batch files are just an easy way to stack commands that you just as easily could have typed at the command line:

1. Write tester, save as tester.java

2. Compile tester.java using JAVAC creating tester.class

3. Run tester.class with java tester

Somewhere in there you might NEED to change to the JAVA directory.


Hope this helps. u execute a java file by typing at c prompt
c:> java tester

to run from a batch file, open notepad, type

java tester

and save the notepad as tester.bat

Then u double CLICK tester.bat

4383.

Solve : Deleting text line from win.ini?

Answer» WOULD like to know how to delete (remove) text lines from win.ini using a bat file.

When my application uninstalls, it is possible to remove all files installed earlier. But I have not FOUND a way to remove text lines INSERTED in win.ini during installation of my application.

Thus when my application is reinstalled, the same text lines are inserted into the win.ini file, thus creating duplicate set of lines inserted.

Is there a way round this problem?

Grateful for any advice.Since you've limited yourself to BATCH files, I would SUGGEST you save the original win.ini during an install and re-implement it during an uninstall.

Just a thought. edit
4384.

Solve : [DR-DOS] A:\>?

Answer» hey does any one know what to do when this comes up?
[DR-DOS] A:\>
It's just a DOS prompt and it's WAITING for instructions from you. Did you boot the system from a floppy?

no i booted it from CD-ROM, i dont know what to write though , im trying to reinstall XP bt its nt running automaticallyI can't imagine how the CD drive would be assigned as A:

Did you check the BIOS to make SURE the CD is the first device in the boot sequence?

When you get that A: prompt can you change to the C: drive?

What kind of XP disk is this, retail (full install or update) or recovery disk from manufacturer?

Let us know.its a CD-R which i WS given from college, should be a full installer, when i use it on the Pc am usin now it doesnt autorun though its gt the autorun thingi!
im now tryin to get sme command tips how to use Dr-Dos to make it install, dunno if u gt ne tips. You could try running SETUP from the CD drive but I'm not sure XP will install from DOS. If not you can make the six XP boot disks from Microsoft:

Home version: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=E8FE6868-6E4F-471C-B455-BD5AFEE126D8

Professional version:
http://www.microsoft.com/downloads/details.aspx?displaylang=en&familyid=55820edb-5039-4955-bcb7-4fed408ea73f

Download whichever version you need, run the file, have six floppies available.

Let us know how you make out. kool man, fanx
ill do it and let u no 2mro or sumink.load the cd.....open it right click with the mouse......you will see a setup icon .....winxp0........click it....dr dos is a program.......it looked promisiing still does, bt my 4th disk ws 4some reason corrupted so i hav to do a new download from college which is time away from home but will do it and try agen later on todayBoot disks are just that, they will let you boot the machine. Once booted you still have to install the OS from your CD.

Good luck! dude, all this wk it hasnt worked. the download iz ok bt the disks r always havin files corrupted or missin. ive used dif disks, new disks bt still wen it reaches disk3 or 4 or 5 thers always a problem. bt ima keep tryin wil let u no tha outcome. im sure itl work tho.no i booted it from CD-ROM, i dont know what to write though , im trying to reinstall XP bt its nt running automatically briiin



Is it possible for you to explain your problem moreIf you want new bootdisk try www.bootdisk.com
what i would do is go back to the person you got this disk of and ask them for help. It might be that you have a corrupt CD.ok i hav installed XP but the computer keeps going from boot screen to screen that looks like when you press F8 while booting up,
basically on the "F8 kinda screen" it also SAYS,
Sorry for this...There might have been hardware changes...
then gives options: Start XP normally, SafeMode etc and theres a count down. but when i click on either or wait for the countdown to finish? it boots up and returns to the same screen.

i hope u understand what ive tried 2 explain am not 2 good at it, but dude am so greatful 4 ur help.

PS: my name iz abit diff coz this thing wudnt let me post with briiin
4385.

Solve : MS-DOS parameters too long in Win XP?

Answer»

Hi!
I have a LINKER for the PL/M language made by Intel which work fine under win98 but not under win XP. At the DOS-prompt I write:
c:\ver317c\RL51 & < F.dat

RL51.EXE and F.DAT is located in the same folder


The content of F.DAT is a list of files, to be used by RL51 as parameters.

F.DAT contents:
STARTUP.OBJ , INITIAL.OBJ , &
MANU_CON.OBJ, AUTO_CON.OBJ, &
SCALE_CA.OBJ, VOL_CAL.OBJ , &
TRANSP.OBJ , TARING.OBJ , &
FUNCTION.OBJ, TESTFUNC.OBJ, &
NEWPLACE.OBJ, MANMOTOR.OBJ, &
SCA_FEED.OBJ, VOL_FEED.OBJ, &
MAINFEED.OBJ, FEEDHELP.OBJ, &
INPUTS.OBJ , MOTORCON.OBJ, &
COMMUNIC.OBJ, BUSTASK.OBJ , &
BUSHELP.OBJ , COMMUN.OBJ , &
HELPPROC.OBJ, PLACEHLP.OBJ, &
MOT_HELP.OBJ, DISPLAY.OBJ , &
MULT_DIV.OBJ, ANA_WAIT.OBJ, &
STR_FEED.OBJ, TRACE.OBJ , &
RXHELP.OBJ , TXHELP.OBJ, &
CRC.OBJ , PUBLICS.OBJ , &
UTIL51.lib , &
PLM51.lib &
TO F_W_C.ABS OVERLAY

As you can see, there are a lot of files to be used by the linker. When I invoke the command mentioned above, the following error MESSAGE appears:

C:\ver317c>rl51 & < F.DAT
The syntax of the command is incorrect.

It seems like XP does not like the "&" and the "<", so I used the SET-command to assign the string in the file F.DAT to a variable instead, and I wrote all the parameters at one line inside a batch file called link.bat. When running link.bat, the folloing was shown on the screen:

C:\ver317c>rl51 STARTUP.OBJ, INITIAL.OBJ, MANU_CON.OBJ, AUTO_CON.OBJ, SCALE_CA.O
BJ, VOL_CAL.OBJ, TRANSP.OBJ, TARING.OBJ, FUNCTION.OBJ, TESTFUNC.OBJ, NEWPLACE.OB
J, MANMOTOR.OBJ, SCA_FEED.OBJ, VOL_FEED.OBJ, MAINFEED.OBJ, FEEDHELP.OBJ, INPUTS.
OBJ MOTORCON.OBJ, COMMUNIC.OBJ, BUSTASK.OBJ , BUSHELP.OBJ , COMMUN.OBJ , HELPPR
OC.OBJ, PLACEHLP.OBJ, MOT_HELP.OBJ, DISPLAY.OBJ , MULT_DIV.OBJ, ANA_WAIT.OBJ, ST
R_FEED.OBJ, TRACE.OBJ , RXHELP.OBJ , TXHELP.OBJ, CRC.OBJ , PUBLICS.OBJ ,
UTIL51.lib , PLM51.lib TO F_W_C.ABS OVERLAY
The system cannot EXECUTE the specified program.

Then I shortened down the list of files, and after some experiments I found that if the list was short enough (less files in the list), the linker worked. So it seems to me that XP does not take as many characters in the parameter list as DOS under WIN98 does. The problem is that I need to link all the files in the project and must keep all file names in the list of parameters. How can I manage to do it?

BEST regards,
Morten from Norway
I suspect the problem is with what has been typed at the command line. I haven't been able to find any use of the "&" character in the command line.

Why won't RL51 < F.dat work?

I found a web site:

http://www.intel.com/design/mcs51/technote/3073.htm

but they seem to perpetuate the problem. Try it without the "&" and see what happens. It's my understanding that the command line limit for WinXp is 128 characters.

Let us know. Thanks!

I need to use the whole parameterlist, otherwise it will not link as supposed.

I have removed the "&", the result is the same.

I print the command and the parameter lis tinto a batch-file instead:
When the list is redused from a contents of 36 files/499 characters down to 7 files/116 characters the linker works, except that the error list is huge of COURSE, as a lot of files are missing in the link. Then one more file is added to the list, the result is 128 characters (including the command). Now the error "The system cannot execute the specified program." appears again. I reduced the length into 127 by simply removing one space, now it works!

So, my question now is: Are the number of allowed character in the command line greater for win98? How can I increase the size in DOS under XP Proffesional?

Thanks again!
Best I could come up with is the max characters for CMD is 8K. The max characters for DOS (command) is 127. Win95 and WinNT had a max_path variable that could be changed. I couldn't find max_path on a XP machine, although you might want to define a value and see what happens.

You might find something useful at:

http://maillist.perforce.com/pipermail/jamming/1998-November/000592.html

Let us know how you make out.

4386.

Solve : how2change the current directory

Answer»

Hello, i CREATED a BATCH file where in to copy a certain file/s from a network drive to "\documents and settings\user account\desktop

where in the user account is the current user logged into the computer.

what is the command in order for the batch file to recognize the current logged user..

please help.

thanks in ADVANCE You may find something of use here>http://www.robvanderwoude.com/index.htmlUse the %username% variable. If you're wondering where that CAME from just enter set /? at the command line.

Hope this helps.Hi

Thanks for the reply. (%username% ) worked.
And thanks for the link. very informative

Glad we COULD be of assistance.

4387.

Solve : MS-DOS will not run application..help!!!?

Answer»

ok whenever i try to run a certain application i have it gives me this error. "H:\PROGRA~2\LIMEWI~1\GTASAN~1.EXE C:\WINDOWS\SYSTEM32\AUTOEXEC.NT. the system file is not suitable for running MS-DOS and microsoft windows applications.Choose 'close' to terminate the application." and when u click ignore, the error just pops up again.please help me. i am in diar need.!!!!!!thx :-/ winxp......and limewire......wellThis seems to be an increasingly frequent problem. It would be interesting to know the cause.

To fix run the following from the command prompt:

copy c:\windows\repair\autoexec.nt c:\windows\system32

After you copy the file, find it in Windows Explorer, click properties and lock it down by giving it a read-only attribute.

Merlin is right, PnP programs like Limewire, Kazza, and Bit Torrent are an invitation to numerous problems. But hey, it's your machine.

Hope this helps.hey i registered now and i did wat u said or what i thought u said. :-/ i went to c:windows\repair\autoexec.nt and then i copied and pasted it into the system 32 folder. is that rite? and then i went into properties and put it as read only. then i opened that file that wasnt working b4 and now ms-dos went into the file and then for 3 seconds its good then in the blink off an eye it says "program to big to fit in memory" so then i went into the file IM trying to get to work and put that as a ready only. i dont no if thats rite and the same thing pooped up. so sidewinder or some1 else help me out a bit. im a [emailprotected]@b

PS. i also have 100 GBS of memory on my hardrive.so wat does it meen the the program is to big to fit in memeory?!?!What OS is this? How much RAM do you have and what program are you trying to run?

Get back to US. i have a dell demension 4600
windows xp
ati radeon 9800 pro 128mb
512mb of ram
2.66ghz
100gb of memory

and the program i am trying to run is a dvd rip of gta san andreas that i dl-ed off limewire
it runs off ms-dosI found the game specs and your system appears to be ok. Where did you get the idea this game runs in DOS? The specs mention you need DirectX 9c which is not a DOS add-on.

Try running the game in Windows. I'm pretty sure that's what it was designed for.

Use Limewire or any PnP program at your own risk. ok well if it doesnt run in ms-dos (wich it keeps on running in) how do i change the program it runs off of because i cant change the program it runs off of because u usually go to properties then click change to chnage the program but there is no change. it just runs off ms-dos and i cant change that. well if you can, tell me how to run it with windows and i could get this done a lot quicker if u just aim me or msn me. my aim is Hellraven1110104
and my msn is [emailprotected]
and my email is [emailprotected]
so please just aim me so i can fully understand this problem i have. thank you I have XP JUST LAST WEEK PRINT ARTIST AND MY CARDFILE WILL NOT WORK IT SAYS MS-DOS DOES NOT WORK WITH WINDOWS PROGRAM.
IT HAS FOR THE LAST 2 YEARS.
PLEASE HELP!First up, please do not use all CAPS. It comes across as shouting and is considered rude. Next, please don't tag your post on someone else's. It's better to start your own post...less chance it will get lost.

Please give us the exact message you're getting from these apps. Most but not all 16-bit programs (DOS) work perfectly fine with Windows.

Get back to us.

4388.

Solve : edit c:\autoexec.bat?

Answer»

I want to edit my autoexec.bat file to eliminate the number of programs that start up when the computer is booted up. I tried going into the command prompt but when I put in, edit c:\autoexec.bat, it is BLANK? How to I view it so I can change it?Your system MIGHT not require one. The editor opened up a new one for you to create. Also some OSes don't use autoexec.bat and some require it be in the root DIRECTORY of the system DISK. Try doing a Search or Find for autoexec.bat before creating a new one from scratch.

What OS are you using?

I use windows XP. The programs I want turned off are the Yahoo chat, msn messenger and windows media player that are all trying to open at once. Can I edit the autoexec file to turn them off at start up?

Thanks
Download and run 'Autoruns' from
http://www.sysinternals.com
There are many other ways to stop these programs from starting at bootup but the Autoruns program will help you see everything else that's going on.
Tip: In Autoruns, select tools & HIDE windows stuff.

4389.

Solve : ping prompt?

Answer»

how can i send a PING promptC:\WINNT\system32>ping

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] destination-list

Options:
-t Ping the specified host until stopped.
To SEE STATISTICS and continue - type Control-Break;
To stop - type Control-C.
-a RESOLVE addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet.
-i TTL Time To Live.
-v TOS Type Of SERVICE.
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to WAIT for each reply.

4390.

Solve : Running EXE with parameters?

Answer»

i'm trying to run a self-compiled application.. was coded in MATLAB.. the application takes in 3 paramaters, namely, filename1, filename2, type. type should be of integer value, between 1 to 4.

however, when trying to run the application in the ms-dos prompt, i get the error of "invalid setting" (which means that the type value is invalid..) i've tried using 3, '3', 51 (ascii for 3), but none of it works... can anyone help?Well maybe you should be looking at the source CODE to ensure that the "type" is correctly defined. I've NEVER USED MATLAB, being more of an Assembler and C++ proggy, but if my prog was producing a PROGRAMMED error message then I would LOOK at the source not DOS.

4391.

Solve : copying a file from a cd in msdos?

Answer»

im trying to copy a game from a cd itried to run it from windows wont let me tried to copy it . it said that it was a ms dos file ,so my questionn is how would i do that i think its somthing like cd/copy/redaleart2 ,do i go to the d drive or from f , f is my c drive d is the cd drive thank im cluless please reply ty
The format of the COPY statement is:

copy source target

In your case, you are going from F to D

copy f:\path\filename.ext d:\path\filename.ext

Hope this helps. Since I had it backwards, just REPLACE the reference to D to F and F to D.

copy d:\path\filename.ext f:\path\filename.ext

If you don't know the path, run a directory list on the CD.

dir d:\*.* /s

If you're using Windows, use Explorer which will give you a visual GUI to help you out. You can drag and drop the file from Explorer.

Good luck. Quote

The format of the COPY statement is:

copy source target

In your case, you are going from F to D

copy f:\path\filename.ext d:\path\filename.ext

Hope this helps.

ya so whats filname.ext or how would i find out . also i tried to from explorer and it froze up HELP PLAESE I NEEDTO FIGURE THIS OUT WHAT IS FILENAME AND EXT
It is not necessary to SHOUT.

filename.ext is the naming convention that is used to name files on your computer.

path is the roadmap to the address of the directory where the file lives WITHIN the file structure of your computer.

Why Explorer keeps freezing is a whole other problem. If you run a dir command on the CD as DIRECTED in my previous post, you will get both the filename.ext and path specification that you need to run the COPY command.

If you don't UNDERSTAND any of the previous comments, perhaps this can help:

http://www.cotse.com/helpdesk/documents/dos/

Good luck.
4392.

Solve : C:\> Prompt?

Answer»

Okay, first of all, I have no idea what I'm doing. I don't know much about computers at all.

Here's the situation:

My hard drive died, so I installed another one (a used one) that a relative gave me. After starting up, everything was fine. But I had trouble accessing the Internet, plus there were way too many files, applications, etc., on the desktop. So after getting some advice from a friend, I decided to reconfigure the hard drive and start with a clean slate. So I used a boot disk labeled "Windows 98 Boot Disk Adaptec AIC - 78XX Driver". No errors...everything was fine.

Now, after starting up, I see the Windows 98 screen for a split second, and then I see a black screen with the following:
(Top third) Info about Diskette DRIVES, Pri. Master Disk, etc.
(Middle) "PCI device listing..."
(Bottom third) "Microsoft (R) Windows 98 (C) Copyright Microsoft Corp. 1981 - 1998" and "C:\>"

I don't know what to do at this point...

What do I type after the C:\> prompt in order to get to the desktop?

Am I supposed to be re-installing Windows? (It SEEMS like it's still there)

Thanks for your help!Did you format the hard drive?
yes - reinstall windows
no - cd\windows
win

I tried option 2, typing cd\windows and win , but I got the MESSAGE "Bad command or file name".

I guess I have to reinstall Windows???
If so, how do I go about doing that?

Sorry... I'm very clueless!Boot from startup disk with CD Rom support. Watch the screen as it BOOTS. It will tell the drive letter of CD Rom (normally E:). Insert the windows CD and type E:\setup. Or you can change the boot sequence in the bios and boot directly from the windows CD.What do I type after the C:\> prompt in order to get to the desktop Dee_T:
----------------------------------------------------------------------

win

4393.

Solve : opening a window?

Answer»

Please tell me what are the commands for batch file:

1) for opening a PARTICULAR WORD document?

2) for opening web browser?
-------

for opening a word document called "email.doc",

i MADE ( at the c:\windows prompt ) the batch COMMAND as

start/min C:\my documents\email.doc

and

start wordpad email.doc

but it showed "wrong path".

---------

next topic:

I am facing problem in understanding the path.

where to create the batch file?

at c: prompt?

or at c:\windows prompt?

or at c:\windows\desktop prompt?

because i created a notepad file named "hello" and savede it at desktop.

then i created this batch file at c:\windows prompt.

start notepad hello.txt

it opened.

but when i typed the same at c: prompt it did not open. The path is a list of directories that the OS will search if your program cannot be found in the current directory.

Do a find/search on your wordpad program and use that directory as part of the START command.

EX: start "c:\program files\windows nt\accessories\wordpad.exe c:\my documents\email.doc"

The batch file can be in any directory provided the directory is on the path list. To see your path enter path at any command prompt. If you have duplicate file names ACROSS directories, the OS will use the first one. When in doubt, it never hurts to enter a path to the file.

Hope this helps.

4394.

Solve : batch file % variable?

Answer»

1)In a batch file command i see this:

%1

what is it?

it was WRITTEN that:

The percent FOLLOWED by a NUMERIC value, BEGINNING with one, allows users to add variables within a batch file. The following is a batch file example:
echo Hello %1


i didn't understand the meaning. Pls explain. What does it mean by a variable?

2) also it was written " This can be extended to %2, %3, and so on"

How to do that???

Thanks in advance.


Actually the variables %0 THRU %9 are values that are passed along the command line when running a command or file.

%0 is always the name of the command or file you're running

Ex: copy frompath\filename.ext topath\filename.ext

%0 = copy (the name of the file or command)
%1 = frompath\filename.ext
%2 = topath\filename.ext

There is also a SHIFT command that allows you to manipulate the values and extend them beyond %9.

Check out: http://www.chebucto.ns.ca/~ak621/DOS/DOS-Var.html

Hope this helps.

4395.

Solve : if "%currentletter%"=="|"?

Answer»

I'm making an encoder and I'm trying to inculed EVERY character, but the computer is not LETTING me use the pipe in an IF command. Does anybody know if there s some other way to write | ? In HTML the are &AMP;m54 or SOMTHING like that.I like the easy options&GT;http://www.robvanderwoude.com/index.htmlPrecede the pipe character with a ^ (carat). You may not even need the quotes.

Good luck.

4396.

Solve : Hidden DOS command Extensions?

Answer» MSDOS command that GENERATE SCREEN output can be redirected to a file, the general cormat is "command >> filename.ext" (IE: C:> "nslookup web.domain.org >> lookup.txt") My question concerns the > symbol, does the double >> create the file or does the single > create the file, and which (double >> or single >) CAUSES the screen output to be appended to the file?They both do under the proper circumstances. A single > will create a new file or write over an existing file. A double >> will append data to an existing file or create a new file if it does not exist.

Hope this helps.
4397.

Solve : can't remove rawrite.exe from desktop?

Answer»

I accidentally COPIED rawrite.exe to my xp desktop and can't DELETE it. ANYONE know how to remove this in dos. I saw a thread on another site where the guy said he did it in command PROMPT. Didn't SAY how.Google for KillBox

4398.

Solve : Redirecting LPT1: to a serial port?

Answer»

I'm doing some CONSULTING and ran into an ancient DOS program the company is using. They are converting to windows. However, the DOS SYSTEM prints reports....so I need to redirect the LPT1 traffic to the SERIAL port. I can't remember how that is done. I have done before about 12 years ago.

Thanks for any help you can lend me.This may work:

MODE LPT1: =COM1:

The above statement should go in the autoexec.bat file.

Hope this helps. YEP!!!..... now I remember!

Thanks a lot!

4399.

Solve : xcopy32?

Answer»

Long time since i have played with msdos just for fun i tried an old command xxcopy32 C:\ *.* D:/s/e/r/v/k/f/c/h/y displayed error message cyclic copy.......is there a bug in xxcopy just WONDERED if i have placed the switch wrong or a letter.......i WANTED to MAKE a copy of my hard drive.....i have an iso. images of my drive.....so its not important...

o/s winme
256ram
80gig
intel coppermine mobo p3I thought a cyclic error was when the target was contained within the scope of the source. Going from C to D should not produce this error.

Check out: http://www.xxcopy.com/index.htm

Good luck. Thanks SIDEWINDER there is a bug in xcopy32 dowloaded the program it runs ok now ....

4400.

Solve : setup.exe /s?

Answer»

hi, im installing a SOFTWARE USING command setup.exe /s
silently . Is there any way that i could prompt the user telling the installation is completed?
RIGHT now the batch scrpt im using is

START //mypc/share/setup.exe /sUse the WAIT parameter:

CODE: [Select]
start /wait //mypc/share/setup.exe /s
echo Done! Done!! Done!!!


Hope this helps. Why not load the disk..the avp will scan viri/macros ......some bat