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.

3651.

Solve : Deleting Files with .bat?

Answer»

I work with a network of computers that are used by the public and constantly have a problem with mp3's being stored on the machines. I am not allowed to have these file TYPES on the network and wondered if it was POSSIBLE to write a batch file that i can run once a week to delete *.mp3??? Im using windows xp.You can use the /s switch with the DEL command to cleanup a single drive:

Example only:

Code: [Select]
del /s c:\*.mp3


I'm not aware of a command that will enumerate the drive letters and type of drive of a machine to the console, so you will need to hardcode a DEL statment for each drive on the system.

Each machine COULD have it's own customized cleanup file and you could use the task SCHEDULER to run once a week.

A Windows Script works better here, where you can enumerate the drive letters and drive types. If you're on a domain and you have administrative privledges to the remote machines you can run a single script from your machine to cleanup the entire network. If you have a workgroup network you would need to be able to map the remote drives to your machine and cleanup each machine drive by drive.

Hope this gives you some ideas.

PS. Mass deletes are very popular this week. Must MAKE great stocking stuffers.

3652.

Solve : Autoexec error fix, cannot find program to run??

Answer»

I have been reading over the fix for this autoexec.nt error and have for the last half hour being trying to make it work, unfortunetly its all been to no avail.

Whenever I type in autoexec.nt c:\windows\system32 in the repair windows it asks me to either LOOK up or select myself the program to run it and I REALLY have no idea and would profere not to totally destroy my computer in the process.

Could someone lend a wise hand and tell me which program to select or if I need to do something before using the cmd's to repair my files.

On your WinXP CD it can be found in the i386 Dir....
Copy it to C:\Windows\System32 and you should be good to goYeah but the problem is I dont have my CD on hand and I was attempting to DUE it the other way straight through DOS and WITHOUT the use of a CD.You're doing it wrong.
There are 2 autoexec.nt files on your computer, one in the repair directory (the good one) and one in the system32 directory (the bad one). Follow me?

All you have to do is copy the good one from the repair directory and paste it into the system32 directory thus overwriting the bad one. EASY eh?

Or from a dos prompt type the following & press enter
copy c:\windows\repair\autoexec.nt c:\windows\system32

assuming you are using XP.There's quite a few XP CD's missing out there.That might be because those cracker box manufacturers/sellers don't give you one.

3653.

Solve : delete al files exept .exe?

Answer»

hi, i WOULD like to delete the whole temp folder, exept the exe files. My os is windows xp and i would like to have the whole folder cleant, but the .exe's must be still thereDidn't we just do this?

Code: [SELECT]
@echo off
for /f %%a in ('dir /b "c:\Temp\*.*"') do (if not %%~xa==.exe del "c:\Temp\%%a")


There are a few Temp folders on an XP machine. Change C:\Temp to the ONE you want. The code is wriiten for inclusion in a batch file.

Hope this helps.

Standard DISCLAIMER: File and DIRECTORIES deleted with batch files or scripts go straight to dataland; there is no layover in the recycle bin.

3654.

Solve : Copying dos commands to notepad?

Answer»

hi,

I'm a new dos user so this is probably a very BASIC question. I have run some dos commands that I want to copy and paste into a notepad or word doc so that I can keep the example. Can you tell me how to do this please.

thanks.With my dos which may be different to your dos, I highlight the text then right click to copy & paste on the dos screen.Hi,

thanks for your reply. That doesn't appear to work on my version unfortunately. It will allow me to drag the cursor over the lines I want to copy and this appears to highlight everything white but as soon as I right click it is no longer highlighted and does not give me any options.

thanks anyway.And what is the mystery version of DOS? Or is it command prompt for some type of Windows? (They are not the same, by the way?)If this is win9x and you are using the msdos prompt from WITHIN windows, at the top of the dos BOX are icons for MARK and copy. Use the mark icon and then select what you want to copy. DO NOT right click. Use the copy icon at the top. Now open notepad, and right click in the notepad window. Select paste and voila!Quote

as soon as I right click it is no longer highlighted and does not give me any options.

After that, open your notepad and paste it in using the Ctrl+V KEYS or selecting paste from your notepad menu.
3655.

Solve : Folder Wildcards?

Answer»

How might I be able to copy or move folders using wildcards?

For instance, I want to be able to move all folders with "2005" in their NAME to another folder.

Using "move 2005* [DESTINATION]" doesn't work, as no folder by that name can be found.

I was surprised that using wildcards works for files, but not for folders - so how do I get AROUND this?

move 2005*. [destination]
should work

uli

3656.

Solve : file copy?

Answer»

Need to COPY files from a server to other locations in the server and local drives. Can this be done USING ".BAT" files?
YES you can, by using the command COPY

example

copy [DRIVE][pad]

greetz

blackberry

3657.

Solve : Running a game in DOS?

Answer»

Hey,

I just downloaded a trial version of Charlie the Duck. When I click on the icon on my desktop, the command prompt window opens, with no commands already in it, then nothing happens. When I close the window, it tells me windows cannot close it because the program possibly needs more time. I waited for half an hour and nothing happened.

I am completely new to MS-DOS, and I have no idea why it's not working. I don't have the time to spend hours trawling through websites looking for an answer, so if anyone can help me I'd be very grateful.
Thanks!!Sorry, it's windows xp, and the original charlie game, not Charlie II.It may not be COMPATIBLE with XP for a variety of reasons if it's a DOS game. XP is not DOS in the end. You may get it to work with compatibility mode, but no gurantees it will run at all, or ACT normal if it does.Thanks. I had a look on the message borads for the game and someone else had tried dosbox. It didn't work for then but I've downloaded it anyway. Now I'm trying to FIND out how to use it!!
Can you tell me how open a game using dos commands, please?You've got to get past the notion that you have DOS. You don't. You have Windows command prompt. Not the same, although there are some similarities. Windows wants to control everything and not give access to the hardware with DOS PROGRAMS. The best you can do is emulate a DOS session and see if that works.

Did you do a google search for MS-DOS compatibility, or press F1 to search the Windows help index? Very informative.Ok. I don't have dos. What I do have is a dos emulator, and what I'm asking for is help in using it. What must I type into the program, be it command prompt or whatever, to tell it to run this file?
Thanks! Have a read here:

http://www.dosgames.com/xphints.phpLook for VDMsound.

This is a DOS emulater that will also support sound issues and memory. Its not the best.

Second, try adjusting the shortcut properties and set the compatiblity mode to Windows95. See compatibilty tab once you have clicked on properties for the shortcut.I read that page from dosgames.com and it is now working. Thanks very much!!You are welcome.

GX1 Man strikes again!



Was all the same user, IP address banned.lmao, immaturity at its peak.... *sigh* When i try to install worms i only get this message THE SYSTEM FILE DOES NOT FIT FOR MS-DOS- AND WINDOWS is there anything i can do to MAKE it work?

3658.

Solve : return value in dos command?

Answer»

Is there any equivalent to SHELL variable in Unix in DOS that gives the return value of the LAST command EXECUTED? Is so, what is it?check out the "errorlevel" variable as WELL as the "call" command

3659.

Solve : find command in batch file?

Answer»

I am trying to execute find command in batch MODE. The command that i gave is
find %1% %2% in a file called file4.bat and INVOKED it with file4.bat file1.bat file4.bat. I get the error
"Find Parameter format not correct"
COULD you please let me know the error.

Thank you,
s.subhafind "search item"
is the correct syntax

uliI invoked it with file4.bat "file1.bat" file1.bat. I get the same error.Quote

I invoked it with file4.bat "file1.bat" file1.bat. I get the same error.


what are you trying to find actually? if you are finding patterns inside a file, use findstr instead.You might try changing the FIND command in file4.bat to:

Code: [Select]
find "%1" %2


Not SURE what you're trying to do, but as written, your code will run file4.bat and search for the string file1.bat within file4.bat.

Too surreal for me. :-/
3660.

Solve : String Manipulation?

Answer»

Can one split the contents of a text file into INDIVIDUAL words using any DOS command?Are you talking real DOS (what version) or some sort of Windows command prompt (what version)? They are not the same.I was refering to MS Windows 2000(version 5.00.2195)Quote

Can one split the contents of a text file into individual words using any dos command?


Not just any command but the FOR command can read a file and PARSE the data.

Type for /? at the command prompt for more details.

3661.

Solve : MS-DOS v1.00 need?

Answer»

Where I may download the OLDEST VERSION of MICROSOFT DOS version 1.00 (not PC-DOS 1.10)?
ThanksNowhere legally.

3662.

Solve : Don't show MSDOS prompt?

Answer»

Hi there!
I've just created a very simple batch file, which logges a user every time he/she logs on, like this:

Code: [Select]del LOGGED\*.txt
copy %USERNAME%.txt logged\%USERNAME%.txt

(in the directory under "logged", there are 5 files named with all of the usernames, so they get copied to logged each time he/she logs on; the batch file starts up automatically, because I've created a link in the C:\Documents and Settings\All users\START Menu\Programs\StartUp Dir). It all works fine.

But, as being fond of clean SCREENS without adds you don't need, is there a way to prevent the MS-DOS window from appearing at all when a user logs in? No OUTPUT results, no MS DOS-window flashing, NADA?

Thanks in advance,
FrankTry using START /MIN to launch your batch file. You may have to add an EXIT command as the last line of your batch file.

Note: This should work provided your batch file does not produce any console interrupts.

Hope this helps.

3663.

Solve : Trying to load devices through autoexec.bat?

Answer»

I am pretty new to writing batch files and I've been given the task of writing a batch file that prompts the user to choose between booting (RUNNING) several different network capable Ghost start-up utilities. I have gone about this 2 different ways so far. I started out using a menu based in the config.sys file. But then I decided to try out the choice function in the autoexec.bat file. I like this option more, but I can't seem to figure out how to load the appropriate devices through autoexec.bat. The config.sys file has been the only way I've been able to get this to work so far, so I went back to it. This is my Config.sys file:
------------------------------------------------------------
[menu]
menuitem=DOSBOOT, Start this computer with MSDOS and Utilities
menuitem=BR57BOOT, Start this computer with Broadcom b57 Ghost Boot Disk
menuitem=BR44BOOT, Start this computer with Broadcom b44 Ghost Boot Disk
menuitem=GHOST, Run the Ghost Utility

[DOSBOOT]

[BR57BOOT]
DEVICE=\boot\net\protman.dos /I:\boot\net
DEVICE=\boot\net\dis_pkt.dos
DEVICE=\boot\net\B57.dos

[BR44BOOT]

[GHOST]

[COMMON]
SHELL=\boot\command.com /p
LASTDRIVE = Z

-------------------------------------------------------------------
The devices under the BR57BOOT are what I need loaded. Is there any way for me to load those through autoexec.bat?
Here is my autoexec.bat file:
-----------------------------------------------------------------
@echo off
SET TZ=GHO+08:00
prompt $p$g

SET PATH=c:\boot;c:\boot\ghost;c:\boot\net

if %config% == DOSBOOT goto DOSBOOT
if %config% == BR57BOOT goto BR57BOOT
if %config% == BR44BOOT goto BR44BOOT
if %config% == GHOST goto GHOST

::ECHO 1. Start this computer with MSDOS and Utilities
::ECHO 2. Start this computer with Broadcom b57 Ghost Boot Disk
::ECHO 3. Start this computer with Broadcom b44 Ghost Boot Disk
::ECHO 4. Quit
::CHOICE /C:1234 /N /T:4,30 ENTER selection:
::IF ERRORLEVEL == 4 GOTO RUN_QUIT
::IF ERRORLEVEL == 3 GOTO BR44BOOT
::IF ERRORLEVEL == 2 GOTO BR57BOOT
::IF ERRORLEVEL == 1 GOTO DOSBOOT

:DOSBOOT
call msdos.bat
goto END

:BR57BOOT
call broadb57.bat
goto END

:BR44BOOT
call broadb44.bat
goto END

:GHOST
call ghost.bat
goto END

:FAILED
echo Unknown boot menu selection
goto END

:END
--------------------------------------------------------------------
by the way, I'm booting from a USB flash drive. Any help WOULD be much appreciated.The autoexec.bat and config.sys files are not interchangeable.

The config.sys file consists of directives to configure your hardware devices and DOS itself. It is read once during boot and is not an executable file.

The autoexec.bat runs after the boot and can be used for any startup commands (ie. loading TSR programs, starting the network, even starting a database server). It is executed just like any bat file is.

Device drivers are not executable code and run as extensions to DOS itself.

In most cases, DOS based systems run with both files so as to customize your PC experience. (Wow!, did I write that? )Quote

In most cases, DOS based systems run with both files so as to customize your PC experience



Amazing! I see a future for you.Quote
Amazing! I see a future for you.


Good. I enjoy writing fiction. Maybe some day I can write for the Microsoft Press OFFICE. Then you will be known as $idewinder !
3664.

Solve : Rename adding date in XP?

Answer»

I used a batch to rename a FILE as following on Windows 2000: ren test.xml test%date:~4,2%-%date:~7,2%-%date:~10%.xml This worked fine.
Now, I'm working on XP and it doesn't work anymore.
How can I get it to work again?How do you know it didn't work? Did it not rename the file or did you get an error message. It would have been helpful had you posted the error message. The command syntax is fine.

Does test.xml exist?
Does test.xml exist in the same directory as the batch file? If not you need a relative path or a FULLY qualified path to test.xml.

Guesswork is fine, but we need more details.

Let us know. I do not get an error message.
test.xml exists.
Also, the batch file works if I ask it to rename the file to test1.xml.I cut and pasted your code and it works fine (on an XP machine). TRY turning ECHO on and when the batch file runs, NOTICE how the variables get resolved.

This is pretty basic stuff. If you still have problems, post your batch file and let us know what directory your logged into when you run the batch file. Also what directory test.xml lives in.

3665.

Solve : How to open a ms-dos batchfile on my hard drive ??

Answer»

I WANT to use a command promt to open a ms-dos batch file LOCATED on my hard drive.

Can I please get a example on how to open the ms-dos batch file located on my hard drive.Example your batch file is in directory c:\my_bat\my.bat:
C:(enter)
CD my_bat(enter)
my.bat(enter)

it's all!

Thanks for the reply.

The file is in its own seperate folder that I created.

here is an example C:\Downloads\frcASPI17

the file is in folder frcASPI17

Do I still use the same process as posted aboveC:
cd downloads
cd frcASPI17
file.bathellwy

I must be doing something wrong that did not work.

It says cant find path when i put in cd downloads the PRESS enteri don't understand about what you are talking... your bat fail is on cd?? Cd means change directory Correct ?

I tried a acouple other folders typing cd folder name enter and it still says system can not find path.

First ensure that you are starting in the root directory of C:

All that should be SHOWING in your command window should be a couple of lines of Copyright info from M$ and below that C:\>

If there's anything else showing after the C:\> (for example Windows or any other folder name) type CD\ to get you to the root directory then enter your cd commands and finally the .bat file name

Good luck

3666.

Solve : how to make txt files with bat??

Answer» PLEASE help! @ECHO off
>> name.txt ECHO your message
pausethanks BLACKBERRY!no PROBLEM
3667.

Solve : How to make folder with *.bat ??

Answer»

I want to create batch file witch creates directory that i want..
example.
i want create C:/helwy..Try: md C:/helwy..

Good luck. thanks!!!!!! it's working... and MAYBE someone know how to create TEXT file with BAT?I THINK you need to read a good DOS book! Do you have a library near you?Quote

I think you need to read a good DOS book! Do you have a library near you?


i agree, as SEEN that you ask questions that you learn in the beginning of working with dos, that tip may be a good solution to start learning working in dos
3668.

Solve : Date format in DD/Month/YYYY?

Answer»

Dear All,

I am a fresher in writing batch file, I HAC requirment where i need to display date in the formate of DD/Month/YYYY.

I searched in google for peace of CODE.

I got this
------------------------------------------------------------------------
@echo off&SETLOCAL

:: This will return date into environment vars
:: Works on any NT/2K/XP machine independent of REGIONAL date settings
:: 20 March 2002

FOR /F "tokens=1-4 delims=/-. " %%G IN ('date /t') DO (call :s_fixdate %%G %%H %%I %%J)
goto :s_print_the_date

:s_fixdate
if "%1:~0,1%" GTR "9" shift
FOR /f "skip=1 tokens=2-4 delims=(-)" %%G IN ('echo.^|date') DO (
set %%G=%1&set %%H=%2&set %%I=%3)
goto :eof

:s_print_the_date
echo Month:[%MM%] Day:[%dd%] Year:[%YY%]
ENDLOCAL&SET mm=%mm%&SET dd=%dd%&SET yy=%yy%
-----------------------------------------------------------------------

The above code will print in the format 12 19 2005

What i want is December 19 2005

Thanks for your help.

Regards,
Satya.the batch uses "date" command. somehow the date command has no option to display long date format. (somebody else can advise on this) .
The closest command that can display the date with the word "December" is the "now" command from the resource kit. On my machine it displays "Mon Dec 19 11:23:54 2005" . Though it only displays "Dec". Use a for loop inside your batch to get the "Dec"

Otherwise you could use a better programming langauge such as Perl to do the job. This is only a suggestion.This is how I format the date, maybe hoaky but it works.

@echo off
START /W REGEDIT /E %TEMP%.\GETDATE.REG "HKEY_CURRENT_USER\Control Panel\International"
FOR /F "tokens=1* delims==" %%A IN ('TYPE %TEMP%.\GETDATE.REG ^| FIND /I "iDate"') DO SET iDate=%%B
FOR /F "tokens=1* delims==" %%A IN ('TYPE %TEMP%.\GETDATE.REG ^| FIND /I "sDate"') DO SET sDate=%%B
DEL %TEMP%.\GETDATE.REG
SET iDate=%iDate:"=%
SET sDate=%sDate:"=%
IF %iDate%==0 FOR /F "TOKENS=1-4* DELIMS=%sDate% " %%A IN ('DATE/T') DO (
SET Year=%%D
SET Month=%%B
SET Day=%%C
)
IF %iDate%==1 FOR /F "TOKENS=1-4* DELIMS=%sDate% " %%A IN ('DATE/T') DO (
SET Year=%%D
SET Month=%%C
SET Day=%%B
)
IF %iDate%==2 FOR /F "TOKENS=1-4* DELIMS=%sDate% " %%A IN ('DATE/T') DO (
SET Year=%%B
SET Month=%%C
SET Day=%%D
)

IF "%Month%" == "1" set month=January
IF "%Month%" == "2" set month=February
IF "%Month%" == "3" set month=March
IF "%Month%" == "4" set month=April
IF "%Month%" == "5" set month=May
IF "%Month%" == "6" set month=June
IF "%Month%" == "7" set month=July
IF "%Month%" == "8" set month=August
IF "%Month%" == "9" set month=September
IF "%Month%" == "10" set month=October
IF "%Month%" == "11" set month=November
IF "%Month%" == "12" set month=December

SET FORMATDATE=%Month% %Day% %Year%
echo %FORMATDATE%
echo Hit enter to continue
set /p=

3669.

Solve : Format HD, Load OS 4got to copy files 1st?

Answer»

I formatted a HD then Loaded an OS (XP) But forgot to copy pictures to thumb drive before doing so. How can I recover them using DOS Undelete?The XP command prompt does NOT permit the USE of the DOS Undelete command, the utility Undelete.exe is not available when using XP, it requires DOS as an operating system and XP does NOT run DOS just a DOS emulator.

You re-formatted before re-installing your OS so I doubt if you can recover anything as you probably formatted NTFS. DOS cannot use the NTFS system..

Sorry, I reckon your FILES are unrecoverable unless your hdd is partitioned and your files just might STILL be on a second or SUBSEQUENT partition which has not been formatted. Then you just might be able to recover something using the Undelete.exe utility from a DOS bootdisk although I think this is most unlikely.Agreed. SOL. Sorry.

3670.

Solve : How to add file to zip /arj /rar with batch file??

Answer»

i want to ARCHIVE files with bat...

example
C:/helwy.txt make to C:/hellwy.zip(.rar/.arj) where in this archive is file hellwy.txt
please help me... Do you have a compression program such as WinZip or WinRar? WinZip (and probably WinRar) can be run from the command line with the proper switches, but many people use the program interface to compress/decompress files....it's easier and more intuitive.

Need more info on your setup. I have all programs... i know that work with program interfaces is much more easier.

I MUST create batch file for school with make folder in directory c: named by user, 3 txt files named by user and these text files i must compress in rar zip or arj by user choice...

Here is my homework

Title Lab. No_3
@Echo off
cls
echo --MAKE DIRECTORY--
echo.
echo.
echo.
echo To exit write "off".
set /p name= Enter the name of directory:
if "%name%"=="off" goto end
c:
cd\
mkdir %name%
echo.
echo.
echo "Directory %name% was CREATED!"
cd %name%
echo.
echo.
echo Push any button to continue!
pause>nul

cls
echo --Text file creating--
echo.
echo.
echo.
set/p text= Enter the name of *.txt file:
if "%text%"=="off" goto end
>> %text%_1.txt echo file1
>> %text%_2.txt echo file2
>> %text%_3.txt echo file3
echo.
echo.
echo "3 text files were created in directory %name%."
echo.
echo.
set/p cont= To Continiue-"1" Dir-"2"
if "%cont%"=="1" goto archive
if "%cont%"=="2" goto dir
pause>nul

:dir
cls
C:
cd\
cd %name%
echo.
echo.
echo.
dir
echo Push any button to continue!
pause>nul

:archive
cls
echo --Zip Arj Rar--
echo.
echo.
set /p arhiv= Choose - rar, zip arj:
if "%arhiv%"=="rar" goto rar
if "%arhiv%"=="zip" goto zip
if "%arhiv%"=="arj" goto arj
echo.

:rar
echo.
echo.
echo.
echo i don't undertstand how to make archive )
pause>nul
goto end

:zip
echo.
echo.
echo.
echo i don't undertstand how to make archive )
pause>nul
goto end

:arj
echo.
echo.
echo.
echo i don't undertstand how to make archive )
pause>nul
goto end

:end
cls
echo Push any button to continue!
pause>nul
echo (c) Hellwy 2005




PLEASE HELP! HI

EXCUSE for my poor english

Try this, i think it can work :
For Rar :
%ProgramFiles%\WinRAR\WinRAR.exe a -afrar Archive c:\UserDir\*.txt
For Zip :
%ProgramFiles%\WinRAR\WinRAR.exe a -afzip Archive c:\UserDir\*.txt


U need to adapt this to your known bat..

Hope this help...

@+Max

3671.

Solve : xccopy help list?

Answer»

hi all,

I've been in IT for 8yrs and not a single time I've had the chance to delve into DOS until now, because I've got the opportuniuty to do an A+ course, after all those years I wasted. I am learning some DOS skills and know the basics such as copying, creating system disks, copying sys files from a: to c: etc. I know wot batch files are and even created one from an online tutorial.

I've being going thru the help options and I am stumped on the the following command:

c:\xcopy /? |more this command is suppose to SHOW the help option list one PAGE at a time, but it keeps missing the top portion of the help file which describes wot the command does.

Anyone with better common sense than me. By the way it works on my xp machine. On my win98 2nd ed. it is causing the problem that i've described.

best wishes

za


Right click on MSDOS prompt and select properties. Under the screen tab set the initial size to 50 lines. Click OK. Now when you open the prompt from within windows, type xcopy/? and the WINDOW should have scroll BARS to allow viewing the entire display. You can also resize the window to suit your needs.You can also use the /p switch...this displays one screen of info at a time with the spacebar available for moving the page down one line at a time. Useful in the dir command as well.IF you WANT to save it for better viewing copy and paste the commands below into your cmd prompt.

xcopy /? >%temp%\xcopyhelp.txt
start %temp%\xcopyhelp.txt
Quote

Right click on MSDOS prompt and select properties. Under the screen tab set the initial size to 50 lines. Click OK. Now when you open the prompt from within windows, type xcopy/? and the window should have scroll bars to allow viewing the entire display. You can also resize the window to suit your needs.

Quote



Is this a reply ? ? /sorry I wrote out a message by quoting wot u said but ended up cocking it up!!! ANyway wot I intended to say woz that, when I set the window to full screen mode ALT-ENTER, the problem is still there.

Your help is very much appreciated!

best regards,

za
Try following the above directions. Full screen mode is not the same as displaying it in a window.
3672.

Solve : 16 bit MS-DOS Subsystem????

Answer»

no point, i just need HELP finding the windows 32 directory
If you bothered to read this whole thread you WOULD KNOW how to FIND it.
Now, on your way...Grasshopper.

3673.

Solve : echo > into a file?

Answer»

I WANT put the following line through a batch file into the SECOND batch file

type nul > temp.txt

For EXAMPLE,

echo type nul > temp.txt >>test.bat

This failed because it will think ">" is a redirection. If I quoted
those contents like

echo "type nul > temp.txt" >>test.bat

The quotes also will be inside the second batch file, which is not what I wanted.

What's your opinion?

I am using windows XP command prompt.

graceI'm not too quick on the uptake but finally the light went on

Code: [SELECT]
echo type nul ^> temp.txt >>test.bat


Hope this helps.
You are great! It works!

3674.

Solve : install a file (bat, exe, ...)?

Answer»

First hi to all (since i'm new)

Since a week or so i'm learning to program in .bat
and I got hte following QUESTION

how do I instal a file using a batch.

I tried to following code:

@ECHO off
copy "E:\files\batchprogramming\test.bat"
"E:\files"

I want the test file copied (or cutted if possible) to the "files" folder. Can SOMEONE pls tell me how to do that?
Then I want the same file "test.bat" copied in the REGISTRY "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Runonce"
I hope someone can help me with this.

Thanks in advantageHi again,

ok nevermind about the first question about copying files (I found out myself)

but COPIE a .reg file using a batch file seems not to work.
anyone has experience with this? pls help me out.
thanks in advantageDo you just want to copy the .reg file or do you want to set a reg key?

Setting a reg key is possible with the reg [rk] command.
I don´t have experience with it. sorry.

hope this helps
uliI solved the problem after trying and trying and trying many possible things (also with a little bit help of what you said and things i found on the internet) so thanks.

REGEDIT /i /s regis.reg

This was the code I serched for (I = import, S = silence)

3675.

Solve : Original DOS system?

Answer»

Can i download somewhere the original DOS version... not the emulator but the whole system -or how it can be called too- with downloading i mean "legaly" and not an pirated version or some other illigal copies... I was just wondering if it isn't for free on microsoft's site or somethingYou cannot download it for free legally anywhere. Microsoft long ago proclaimed "DOS is dead" but they won't give up the body. Quote

You cannot download it for free legally anywhere. Microsoft long ago proclaimed "DOS is dead" but they won't give up the body.

OK, thanx for the information and ALSO for the very quick responseNo problem. GX1_Man's above information is 100% correct. It would be illegal to download and isntall MS-DOS. If you really want an official copy you could try E-Bay.

If you just want a DOS machine you may just want to setup a MS-DOS emulation using an emulator such as DosBox.

http://dosbox.sourceforge.net/

Otherwise just stick with the MS-DOS shell included with every version of Windows.www.bootdisk.com allways solves my boot/DOS needs Quote
www.bootdisk.com allways solves my boot/DOS needs
Nice, another good recommendation. There's always DRDos and FreeDos. They are probably as good as, or better, than MSDos.

Full versions of Dos 7.x can also be found and downloaded.Quote
There's always DRDos and FreeDos. They are probably as good as, or better, than MSDos.

are they free to download, if they are, can you give me a link pleaseGoogleThere's also 4DOS, which is a free download.I would SAY, look at google, yahoo, altavista, etc.
just typ 'download DOS' and you would surprise how much download sites you get.
If that is legal don't ask me but you sure will get the program.

3676.

Solve : Unable to open Batch file?

Answer»

Hi everyone,
WANTING to copy my DOS MPII software from MSxp to my laptop RUNNING 98sec ed. Open MPII.bat and it said

PROC files line145, open error SETUP.DBF (5)

Can some one please helpWe don't have enough information. Is line 145 in MPII.bat or in some secondary process INVOKED by MPII.bat.

Are you copying from floppies or another machine? Can you just copy this software or does it need to be installed?

Let us know.

3677.

Solve : choice.com question?

Answer»

I'm using "choice" in a batch file, similar to this:
CHOICE.COM /N /C:12 /T1,5

IF ERRORLEVEL ==2 GOTO TWO
IF ERRORLEVEL ==1 GOTO ONE

Is there a WAY to set this up so that any keystroke other than "2" will default to "1" or to stop invalid choices from stalling the timer?
If this isn't possible with choice, is there something else that will do this?
Thanks
RickIndirectly you already have set this up so that any keystroke other than "2" will default to "1". If a user does nothing for 5 seconds the default ("1") will be chosen automatically.

The /c switch sets up a key mask of ALLOWABLE entries. To set this up so that any keystroke other than "2" will default to "1" you would have to code every key on the keyboard in the key mask (all 101 or 102 of them except the "2" key) and code a corresponding goto ONE.

You cannot prevent the timer from stalling on an invalid choice.

Quote

If this isn't possible with choice, is there something else that will do this?
With a Win9x machine (CHOICE is not available on NT machines), you might be able to do something with a Windows Script.

Just what are you trying to do?

Hope this helps. This is a separate batch file I'm calling from autoexec.bat on win98. It overwrites the system.dat, user.dat, and a growing list of key system files and folders from copies on a CD. It runs automatically at each system reboot unless a certain keystroke is made. No screen display of the choices. This is PART of a bigger project using an "alternate registry" that gets overwritten during reboot.
I did try putting multiple entries in for one of the choices, something like:
CHOICE.COM /N /C:1[234567890qwertyuiop] /T1,5
The letters and numbers worked but the batch had problems when I added other characters. Could "IF" be used to handle to an invalid entry?
Rick
At first, a good solution might have been escaping special characters, but CHOICE only allows single character choices. Some special characters (/, \, &, and others) are used by DOS itself, which would probably CREATE some interesting but unexpected results.

You could try writing a QBASIC program.

Good luck. I don't know anything about QBASIC or any other programming language. That will have to wait until I have more time. I experimented with that batch file a little more and got some encouraging results. The first part looks like this:

@echo off
CHOICE.COM /N /C:1234567890qwertyuioplkcjhgfdsazxvbnm`[emailprotected]#$^&*()-=_+[]}{;:'",.? /T2,5

IF ERRORLEVEL ==2 GOTO TWO
IF ERRORLEVEL ==1 GOTO ONE

Written this way, any of the keys above default to "2" except for "1" which works as I wanted. The only keys I couldn't add to it are:
\|%><
Not quite what I wanted, but it will get the job done.
I do have another question for you. The rest of this batch file makes extensive USE of the copy and xcopy commands. Can the be used so that there is no output on the screen? I'd like to get rid of the "1 file(s) copied" and similar messages on the screen so that there are no indications that this is running.
Rick
Glad to see you got it worked out.

Code: [Select]
copy source target > nul
xcopy source target > nul


I don't know how much material I've looked at, but none of it explained > nul. That works great. Now I just need to go back thru this thing and double check all the paths and filenames. That and one more system backup just to make sure. Thanks again.
Rick
3678.

Solve : BAT file HELP !!!?

Answer» HELLO i am new

i'm write from poland and my english is not wery well .

i need help

i must write bat FILE, it must find mp3 files on all c disk and copy this files on one folder in drive d .but i don't know how do it.

please help me .

p.s. Merry Xmass to all This may help you out:

Code: [Select]
@echo off
for /f "delims=" %%i in ('dir c:\*.mp3 /s /b') do copy %%i d:\folder


Be sure to change d:\folder to a real folder on your machine.

Good luck. i hawe a file who can find some files on fdd it is look that

@echo off
echo .........................
echo SPRAWDZAM ZAWARTO—&#377; DYSKU
echo .........................
dir a: /p
pause

if exist a:\*.* goto copy
if not exist a:\*.* goto FINAL

:copy
md Koszyk
md Roboczy
copy A:\*.* E:\Koszyk

if exist E:\Koszyk\*.jpg goto kopiuj
if not exist c:\koszyk\*.jpg goto gify

:kopiuj
md E:\Roboczy\Jpeg
copy E:\Koszyk\*.jpg E:\Roboczy\Jpeg

:gify
if exist E:\Koszyk\*.gif goto powiel
if not exist E:\Koszyk\*.gif goto HTML

:powiel
md E:\Roboczy\Gify
copy E:\Koszyk\*.gif E:\Roboczy\Gify

:html
if exist E:\Koszyk\*.html goto strony
if not exist c:\koszyk\*.html goto teksty

:strony
md E:\Roboczy\Html
copy E:\Koszyk\*.html E:\Roboczy\Html

:teksty
if exist E:\Koszyk\*.txt goto txt
if not exist E:\Koszyk\*.txt goto INNE

:txt
md E:\Roboczy\Teksty
copy E:\Koszyk\*.txt E:\Roboczy\Teksty[/color]


but i need a program who can find all mp3 files on c disc and coly this files to d:\mp3\ and delete copy files from c disc

@echo off
for /f "delims=" %%i in ('dir c:\*.mp3 /s /b') do copy %%i d:\folder

i create d:\folder

but if i run bat file i see text 'i can find a file'

but if i write 'dir c:\*.mp3 /s /b' it find all mp3 files

why it don't wont copy this files to d:/folder/.......i'm using win xp sp1Sorry about that. I was so intent with the embedded spaces on the front end, I neglected the backend.

Code: [Select]
@echo off
for /f "delims=" %%i in ('dir c:\*.mp3 /s /b') do (
copy "%%i" d:\mp3
del "%%i"
)


Hope this helps. [glb][/glb]it's work fine thanks
3679.

Solve : Mandatory Background?

Answer»

Hello GUYS,

At my company they just put a mandatory background into affect and i want to create a batch file to run everytime i log into the machine to replace the current wallpaper picture with one i want.

I got part of the batch file to work, but it does not run properly at startup.

this is what i got so far.

rename "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\wallpaper1.bmp" 3.bmp
copy "c:\wallpaper1.bmp" "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\wallpaper1.bmp"

I have to run the batch file and hit f5 for the new background to appear.

I would like the batch file to run properly at login and to REFRESH the background ( not sure if the refresh is POSSIBLE or not )

Thanks for you helpTo have this batch file run every time you start the computer you can create a shortcut to the batch file in the Program files/Startup folder.

Not sure if this will work but you could try adding: the "win" command. Maybe it would cause windows to refresh when it attempts to load windows. But other then that there is no method of doing a F5 or refresh that I'm aware of from a batch file.You may run into problems with the ren. After the first go-round 3.bmp will exist and your batch file will attempt to rename a file to one that already exists. Try USING a an exisitence test to delete 3.bmp before you do the rename.

Just my 2¢.

3680.

Solve : Howto log all screen activity to a file?

Answer»

Hello! I am using a batchfile with xcopy for backing up my files, as I would LIKE to VERIFY everything after he batch file has RUN I wonder if there is an easy way to log all screen activity to a log-file... I am shutting down the computer AUTOMATICALLY after the BACKUP is done so the command line window is gone.

Anyone?

ChristianQuote

Hello! I am using a batchfile with xcopy for backing up my files, as I would like to verify everything after he batch file has run I wonder if there is an easy way to log all screen activity to a log-file... I am shutting down the computer automatically after the backup is done so the command line window is gone.

Anyone?

Christian

Usually you can verify your copying of files using errorlevel. you can log what you do in your batch file by piping your outputs to a file and viewing them later.
3681.

Solve : batch file that awnser for u... possible??

Answer»

hi all!

im writing a simpel script for making a boot disk.

first line is "format a: /q"

in this command follows "press retun to continue" and other commands have "yes" & "no" awnsers...

is there a way tellin the script to awnser for u ?

this is my file

cls
@ECHO off
type info.nfo
@echo on
format a: /q
XXXXXXX.exe
copy XXXXX.ini a:




thanx


//redIf you try and right in a different syntax, this should give the OPTION of answering.write a y in the file answerl.txt and it will do it.

format a: /q
hope this helps
uliQuote

write a y in the file answerl.txt and it will do it.

format a: /q <answer.txt

hope this helps
uli


good tip! 8-)

now is it possible to make the script get an awser from a specific row on "answer.txt".
that way i can have "y" and "n" on lines 1,2. and switch between em..

another question. how do i make the script fetch the [enter], [return], button/commads...?

for use in awsering the "press return to continue" or "press any key" prompts

thanks for all tips guys!


To get enter / return hit it before you save the *.txt file.

To switch between the lines you can read it out with find in a for loop.
To choose use if...else...

Where is the sense to choose, when you first automate it?

uli

Quote

Where is the sense to choose, when you first automate it?

uli



well in my job i make tons of these bootdisks. as u se first of i format the disk, then i load the progg that makes the image, and last i replace a "ini" file with a preconfigured one.

cls =clears screen
@echo off =helps the start of script look sweet
type info.nfo = PRINTS info about the script, in case anyone else at work need to use it.
@echo on =helped the start look sweet
format a: /q =runs the format command
Fl_sco5c_228.exe =runs the image loader
copy getinput.ini a: =copys the "ini" file

now the script already saves me much time but if i could MANAGE it to awnser when prompted i would be glad! hope u get the sense uli 8-)
hi all!

wanted to say that i have solved the script now.

cls
@echo off
type info.nfo
@echo on
format a: /q /y "the /y commad worked fine
XXXXXX.exe a: "dicovered tha puttin an "a:" after the image loader command
copy getinput.ini a: "would load the image without prompting


thanx for all the help guys!

3682.

Solve : username and password in batch file?

Answer»

How do I provide a USERNAME and password to a mapped DRIVE on a WINDOWS achone in a BATCH file. I know the /user: cammand for username, but cant SEEM to get he password to work. This mapping to a W2k machine, using a local username and password. I can do the following:

net use p: \\test01\filedata /user:local

It will prompt me for the password. I have tried /user:local\doggie (no good)

Tried /user:local /password:doggie

...etc

3683.

Solve : DOS on Mac?

Answer»

Can you run a DOS PROMT on a mac or apple computer?No. that is a different operating system. KIND of like wanting to play a CD in a TAPE deck.You have a full Unix Command Shell on Mac OS-X. Since version 10.3 it is a Bash with a few "special features" like sudo.

This has much more power than a windows command shell.

uliWhich is not a DOS command prompt.Put it like no one ELSE could. Thanks guys.

3684.

Solve : Connect to Internet by MS-DOS....Can I????

Answer» Hello my friends. I want to connect to internet by Ms-DOS. I want open web sites bu DOS. I know that is is POSSIBLE. PLEASE if anybody know about it write to me...What version of DOS? Or are you TALKING some version of command prompt within Windows? How are you planning to connect? What hardware?Try Googling for info.

Here's just one result. Arachne might help.

Hope you're running standalone MS-DOS???


Good luck...Perhaps he will come back and tell us. Should I make a poll on "yes" or "no"?

Not holding breath while we wait. I want to connect to internet by standard way___>Srart-Run-CMD<
I know that I can. Please help me....Quote
I want to connect to internet by standard way___>Srart-Run-CMD<
I know that I can. Please help me....

you stupid fool, you really THINK that an higly EXERT like GX1_Man don't now how to open dos, and did you even read the other messages, they wait a long time for an answer to this question " What version of DOS? Or are you talking some version of command prompt within Windows? How are you planning to connect? What hardware? " and you give us an answer that tells us how to open dos.....Telnet to your ISP and see if they have lynx installed if you want to browse in text.Quote

you stupid fool, you really think that an higly exert like GX1_Man don't now how to open dos, and did you even read the other messages, they wate a long time for an answer to this question " What version of DOS? Or are you talking some version of command prompt within Windows? How are you planning to connect? What hardware? " and you give us an answer that tells us how to open dos.....


Tha's what I like most about you Blackberry. You are so subtle! You can make a wget to download websites. (Gnu package)

(I have a problem to get this nice smiley with the cool sunglasses in my postings.
If I paste it I just get a link) :-(
hope this helps
uliUse the 'insert image' button Uli.
3685.

Solve : Dos directory changing help needed.?

Answer»

I am trying to make a batch file that will search children of a FOLDER(a few thousand) for a given file type to output in such a format in a txt file that all that is output is the filename and extension.
I am using DOS 6.22 to use MLS 110 420 (BAT ext file)
The things ive tried so far have been:

MLS.BAT[in root dir C:\BACKUPS>]

@ECHO OFF
IF "%1" = "" GOTO NOEXT
IF "%2" = "" GOTO NOFILE
DIR /S *.%1 > C:\BACKUPS\%2%1.txt
GOTO END
REM You know the rest ie. :NOEXT , etc
REM I have tried adding in the filenames only switch /B but it does not work here
REM This result is not what I'm looking for, I need the filenames/ext only

MLS.BAT[in each child, eg: C:\BACKUPS\011-20-8320\DBSDIO>]

@ECHO OFF
DIR /B *.%1 > %2%1.txt
REM You know the rest
REM This switch gives the desired output text file but there is a problem, there are
REM more than 3 thousand files in hundreds of childs and I cannot afford the time to
REM through every one and then I would have to find a way to compile all of the text
REM files into one.(which I havent discovered yet HELP ME IF YOU KNOW)

I have also used TREE /F but this will definitely not work(works fine for building my MP3 list for printing from all my band folders though).

When it comes down to it, I need to know if there is either one of two things:
1. Is it possible to move laterally through every child and grandchild one by one as if you are in it, and OPERATE a command, then move to the next one, where if you are at the last grandchild, you move up and to the next child and through its grandchilds, etc.
2. Is there a set of commands that can be used at > or in a bat that can do the search and produce the result I am looking for?

The reason is I have some ancient DOS based software that will look at this text file for other purposes but paths and other garbage will cause the software to crash.

Thanks.

3686.

Solve : .bat file help.?

Answer»

Im not very good at creating a .bat file. I mean I can make a basic one but nothing advance. Now I need some help. I help with a BATCH file that can get the name of a netware SERVER/or ip that it isi on and RUN. For example...If I have 2 server and the smae .bat is on each server in the same location. I need it so that when the login SCRIPT call it it will launch the .bat on the local server and run. I have alot of server and need a .bat that I can just copy and paste in the locations and know it will work. thanks for all the help.

3687.

Solve : Also a bat file question,help?

Answer»

I am a green hand. I COME across this qustion:
Batch File CREATION
a. Name the file output.bat.
b. The file should receive as input two parameters-a command and a file name-and should REDIRECT the output of the command to the specified file:
output command filename
c. The output.bat batch file should error-check to determine if a file by the name of filename already exists.
d. If a file by the name of filename already exists, the batch file should not OVERWRITE the existing file but return an error message that reads:
filename already exists.

hope someone nice can help me! Thanks~~~~~~~~not going to do the whole thing, but just some suggestions.

a: i am sure you know how to name it as output.bat
b: to receive parameters from the script use %1, %2 etc
c: use IF EXISTS to check for existence of the file
d: can use GOTO ERROR where you display your error message

There are many references on the web. I randomly got you 2.
http://labmice.techtarget.com/scripting/default.htm
http://www.cs.ntu.edu.au/homepages/bea/home/subjects/ith305/description.html


3688.

Solve : outputting the results to a text file?

Answer»

I am trying to do a basic file that will output the commands to a txt file

What im basically trying to do is ping a load of DEVICES and output that ping to a text file

So

ping 10.10.10.10

Pinging 10.10.10.10 with 32 bytes of data:

Request TIMED out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 10.10.10.10:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Approximate ROUND trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, AVERAGE = 0ms


I want the output in a text file, I have been GOOGLING all over the place but cant find the answers needed.

Any help would appreciated

Try this. To overwrite an existing logfile use a single > in the first command that is outputting to the log file, to append to it use >>

Code: [Select]Ping 10.10.10.10 >c:\pinglog.log
Ping 10.10.10.11 >>c:\pinglog.logthat works awesomely

thanks

3689.

Solve : i broke it....registry?

Answer»

:-/
SOMEHOW i have wiped out my windows 95 registry
i have been trying for 2 days to get it back
the only thing i can pull up is the dos screen
i have a system recovery cd but i cannot get dos to let me use the cd drive
i found a site that said make a win 95 boot disk but this did nothing for me either.
i am going nuts trying to fix this thing and the longer it TAKES me the more determined i am to get it done...but i have decided i need to ask for help......so can u tell me what i have to do?
THANKS so much
melissaDo you have MSCDEX.EXE in your Config.sys and Autoexec.bat files. See here

Good luckThanks Dusty for this informationtry to use in safe modus the option, system restoreQuote

try to use in safe modus the option, system restore


No system restore in Win 95...ow crap, i tougth it was. Because there is one in windows xp, so i tought it was copied from win 98. But i'm totaly wrong, sorry
3690.

Solve : logging defrag output?

Answer»

I'm trying to create a batch file to defrag my drives. The code is:

for /f "tokens=2-4 delims=/ " %%a in ('date /t') do set today=%%c%%a%%b
defrag e: /v/f >D:\original_programs\utilities\batch_files\defrag_e_report_%today%.txt (this line is repeated for each drive)

The code runs fine from a command prompt. But when I run it from a batch file, extra text ".txt 1" is mysteriously inserted. The output and error is SHOWN below.

D:\original_programs\utilities\batch_files>defrag e: /v/f .txt 1>D:\original_pr
ograms\utilities\batch_files\defrag_e_report_20051225

Two or more parameters that could be a volume exist.
There can be only ONE drive letter or volume mount point parameter.

If I remove the reference to the date, the line item works, but extra text "1" is also mysteriously added. The output is shown below.

D:\original_programs\utilities\batch_files>defrag e: /v/f 1>D:\original_program
s\utilities\batch_files\defrag_e_report.txt

If I don't log the output, I don't receive the extra text and the error. Anybody know how to fix this or what is going on? Is there another way to log the output. (BTW, I don't want to buy Diskkeeper for those salesmen out there.)If you had quoted the output data set name, you would notice it resolves as:

Code: [Select]
"D:\original_programs\utilities\batch_files\defrag_e_report_%today% .txt"


You could try this for the fix:

Code: [Select]
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (
defrag e: /v /f > D:\original_programs\utilities\batch_files\defrag_e_report_%%c%%a%%b.txt
)


You can stack as many defrag statements inside the close PAREN as you need.

Most commands PRODUCE two output datastreams.The 1> is notation for STDOUT; 2> would be for STDERROR. This allows you to create two redirected files. SORTA like good file, bad file.

Hope this helps.

I am not now, nor have I ever been, a member of the Diskeeper sales force.Thanks, the quotes worked.

3691.

Solve : OS Installation CD?

Answer»

What does the OS mean? And where can i find that?OS means Operating System - such as Windows 98, Windows XP, Linux etc...

What is your OS and what are you trying to achieve?

I keep getting this error:

C:\WINDOWS\SYSTEM32\AUTOEXEC.NT. The system file is not suitable for RUNNING MS-DOS and Microsoft Windows appliacations. Choose 'close' to TERMINATE the application.

What should I do? My computer's OS is XP and I know i have enough SPACE to load my game. What do I do?

Thanks Shortnsassy

oh yes one more thing-- my brother has his game on the computer and it's doing FINE. He plays call of duty online with team speak or something like that. So could his game not be letting my game get on??

byeCheck out QA006 for a solution.

Double POSTING does not increase your chances of a response. It just adds to the confusion.

3692.

Solve : Batch file to copy file to users local?

Answer»

I'm not sure if my question is in the right forum here, but since Batch files are a bit DOS-related i'm gonna give it a try.

I have a batch file that is set to copy a file from it's current LOCATION to a folder on a users harddisk.
That works like a charm as long as it's not used over a network.

That's in FACT my question. How can i make the following code work over a network (the bat-file is on a SERVER and should copy a file existing in the same folder as the .bat to the c:\windows\Temp folder of the user).

Code: [Select]XCOPY "database.mdb" "C:\windows\Temp\*.*" /y/q/r

Any IDEA's are more then welcome.Try this

Code: [Select]xcopy "\\servername\sharename\directory\database.mdb" %temp% /y/q/r

3693.

Solve : MS-DOS?!?!?!?

Answer»

Can anyone tell me what to do with ms-dos when the computer doesn't read it? My game wont work because of it. Any ideas? Quote

Can anyone tell me what to do with ms-dos when the computer doesn't read it? My game wont work because of it. Any ideas?


When the computer doesn't read what?

Which OS, which game, what error messages are being displayed?

I am trying to load my old SIMS onto my new computer and when I push the install button it always gives this error ---- 16 bit windows subsystem and then 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. That is why I can't get the game to install. Someone told me to use a demand prompt to fix it and that is why I asked about the OS because appearently you need to use that to do the prompt. Any way my computer's OS is XP and I have no idea of what to do.

My brother has his game on the computer and had no problems. He plays CALL of duty online. (team speak SOMETHING)

Please help me I would really like to play my game. You are defective.Defective or not, here is just the first of 28,200 Google hits on the error message you are getting, see if this helps.

Make Google your friend

Good luck
3694.

Solve : Lost or deleted docs - "shadows?"?

Answer»

Lost .docs due to a major computer crash (naturally only the most important ones ). Have tried EVERY conceivable search/retrieval method without success - save for trying under DOS. Have read that a "shadow/ghost" of everything ever created REMAINS on the hard drive in DOS -- unsure whether this is correct? If it is correct then could someone please help this new chum out with info on where/how to locate such "shadow/ghost" files in DOS.

Thanks a lot Quote

Have tried every conceivable search/retrieval method without success - save for trying under DOS.


Having tried all of that I reckon you might have to consider some REAL heavy forensic type software, very good and v-e-r-y expensive. You don't give us an inkling as to what OS you were/are using but assume that it's XP in either form and that your file SYSTEM was/is NTFS which NO Dos version will recognise. Your files will still be on your hdd partition unless they have been overwritten during your recovery process, whatever that was (no info given), but looks likely you have lost the Master File Table and/or some such other index.

Dos can run a utility named Undelete.exe but is only useful in a FAT file system. Undelete.exe is not available in XP, even in the XP Dos emulator.

Sorry, my knowledge level means that I can't be of help to you, I hope someone more knowledgeable picks up the thread..

Good luck

3695.

Solve : No boot drive available (updated 1/10/06)?

Answer»

Gentlemen/Gentlewomen:

I am STILL trying to install Windows 98 on my new, used computer. As a result of a suggestion from previous post, I did try to utilize typing "e:\ setup at the "A:\" DOS prompt. It yielded an error message of "Invalid Drive Specification". I don't know what that means, though. I have tried to boot up the computer this way: I insert the floppy (boot up) disk, choose Start up win CD Rom support (from the Win 98 Start up menu) SCREEN and then get the error message "No drivers found, aborting installation". However, the computer continues on to inform me that PCI bus scans are complete and it is "preparing to start the computer" and "diagnostic tools are sucessfully loaded to drive D". When I typed "B: setup" at the "A:" prompt, the message received was " Insert diskette for drive B, press any key". I also have received the message, "Insert diskette for drive A" (I ejected and reinserted the floppy) and received the error message "Bad command or file name". Of my many questions are also, how do I ascertain what the particular letter is that identifies each of my drives, how do know if I have drivers correctly installed for each of my drives and do I need to partition, format, setup (or anything else, each drive) in order to get this computer to accept/install windows 98? Perhaps the previous owner did setup, partitioning, etc.--that I don't know. Lastly, is it possible, if I left the the boot up floppy and the Win 98 CD in their slots in the CPU, that I may have erased all the data on them when I formatted (but apparently didn't partition) the hard drive, and that's why I am having difficulty getting Windows installed? THANK you kindly for your patience and assistance.

3696.

Solve : Drive probs?

Answer»

Hiya, I'm having this problem I'm hoping someone can help me with. My comp downstairs (which uses win 98) got a bad virus and I was forced to format the computer. And now I'm having trouble installing Win 98 again. I put the boot disk it goes through some OPTIONS (asks what image to use or something) then after a lot of loading, goes into the DOS Command prompt where I have no further IDEA what to do.

It seems it doesnt read the CD-Drive (even the setup says it USED a cd driver each time). I'm just wondering what dos commands are can use to check what DRIVES are available. For example D: is now MS-RAM apparently. Is there a way to check what the letter for the cd drive is? ThanksPut your Windows CD in the drive and either insert the floppy you have or download a boot disk (free at www.bootdisk.com) and choose the FIRST option you get which includes CDROM support. When you get to the a:> type in

e:\setup

and press enter and you should be off and running.

If that doesn't work, post the exact message you get.

3697.

Solve : trying to partition extended dos version?

Answer»

ok....well first...the computer i have working right now...does NOT have a floppy drive, can i burn images to cd and use that as a boot disc? if not im screwed...lolSo you never did use the boot disk, and the Caldera MESSAGE was from Partition Magic. Shame on you! Info like that can be helpful ("I don't have a floppy drive").

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

If you are making a CD from a computer running Windows 98SE and have Nero:

If you scroll down the left hand side of the first pane in Nero, below Data CD, Music CD etc is a bootable option.
Nero will ask you for a image source. You can make this by using the 'sys' command on a floppy disk. Alternatively you could try using a traditional startup disk, but I'm not sure which files it copies. I can't see any need to have the 'boot with CDROM support' option.

Don't forget to put other useful files in the root directory such as fdisk, format and scandisk.


thank you for the information, im trying it as we s peak, and i did say i didnt have a floppy, about the seventh message down....thanks again ill let ya know how it turns out!!! Brandeeok, so i tried it, and that same stupid page came up about dr dos 7.3 with the command prompt A:> so im not doing something correctly obviously, but what im unsure of! And what do they mean by copying file folder from existing windows cd i386...where would i find that folder? I do not have a windows cd, as it was downloaded with the computer when i bought it....The i386 folder in only on NT systems including Windows 2000 and windows XP, not on WIndows98. Itt contains all of the files to install those operating systems.

Are you trying to boot with the Partition Magic CD in the drive?no, there is nothing in the drive except whatever it is ive downloaded from those sites you gave me.....alright to give a quick update....THANK YOU ALL FOR ALL YOUR ADVICE.....ive finally got windows 98 downloaded, however i seemed to WIPE out the driver for my network card and am now trying to figure out what a network card looks like so i can find the name to download the driver...lol....this weekend has been a peach...haha...thanks again for the windows advice.....love this site ... its my NEW best friend...Quote

alright to give a quick update....THANK YOU ALL FOR ALL YOUR ADVICE.....ive finally got windows 98 downloaded, however i seemed to wipe out the driver for my network card and am now trying to figure out what a network card looks like so i can find the name to download the driver...lol....this weekend has been a peach...haha...thanks again for the windows advice.....love this site ... its my new best friend...


what twas the secret to your success? We are always curious how things turned out.

Can you post the computer or motherboard make and model? Then we can get the driver to make the network card (and probably other things) work.
3698.

Solve : What is a batch file??

Answer»

Can someone please tell me what a batch file is?
And what is a .bat file? (I THINK THATS a batch file too, but I'm not sure)
Did you TRY Google???

Lookee here

OK, I think I get it now. I didn't even think of googleThanks for coming BACK at US - most don't bother..

Good luck with batching...

3699.

Solve : is this redirection or something else !?

Answer»

Hi
can someone tell me what this can mean :
ECHO " Printing " >>& $logfile
is this " >>&" some kindda re-direction ?
Please help !Does an ERROR count for something ELSE? If you remove the & then it's redirection.

3700.

Solve : Process Id?

Answer»

Hi,

I WANT to know if there is way find the process id of a batch program which we just started. this id should get REDIRECTED to a FILE.

Thanks in advance
I am not 100% why you would need to process id, but if you bring up the batch file on the prompt, it should display the id number. It is usually labeled Pro. Id in XP.tlist GIVES you the process id of all processes. (If XP doesn´t have it, check the ressource kit)

HOPE this helps
uli