| 1. |
Solve : I dont know how to do a batch? |
|
Answer» [size=14]I need a batch I'm using windows xp and as you know if I boot the machine it means DOS Actually we know no such thing. Are you running this batch file in XP to create this bootable CD or in the environment you have booted to? If your batch file runs in XP then there are no errors in either the batch file or the script. If you EXPECT your batch file to run in the booted environment, you can't expect the CD drives to to be referenced as drives S and T. If your batch file runs in the booted environment, the batch file needs to be referenced in the startup file (ie. autoexec.bat for DOS) and the CD drives must be assigned drive letters with the MSCDEX driver. Let us know exactly what you are trying to do. 8-) [size=14][highlight]you can't expect the CD drives to to be referenced as drives S and T.[/highlight] If you chang the D in the following line in Autoexec.bat to what letter you want the first cd rom referenced to the letter you assign, and I'm usually using (s) here is the line LH %RAMD%:\MSCDEX.EXE /D:mscd001 /L: D After changing LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:S When you boot for EXAMPLE win 98 or xp cd it will work from any cd rom because the path of the batches does not referenced to any letter but to %cdrom% Ok how can I do it this way I am using dos 7 files ,98 and xp what will work I will use (some thing will allow me to boot of course in dos) i study 98 , xp and part's cd autoexec.bat but because my knowledge of dos is low level i could not Succeed Thanks [/size]It seems that for any strange reason the drive T: don't is mounted at boot (maybe hardware ?) I haven't installed WXP, but the the command MOUNTOVL works for W2000 Proffesional and later. If you are running the version of MS-DOS for XP, I suppose it will works: C:\Documents and Settings\Administrador>mountvol Crea, elimina o lista la información de un punto de montaje de volumen. MOUNTVOL [unidad:]ruta volumen MOUNTVOL [unidad:]ruta /D MOUNTVOL [unidad:]ruta /L ruta Especifica el directorio NTFS para establecer el punto de montaje volumen Especifica el nombre de volumen que será el destino del punto de montaje /D Quita el punto de montaje de volumen del directorio especificado /L Lista el nombre de volumen montado para el directorio especificado Los valores posibles para "volumen", junto con los puntos de montaje actuales, son: \\?\Volume{f8ed6643-aeca-11d9-acb5-806d6172696f}\ C:\ \\?\Volume{63a6c030-730d-11d3-a2c2-806d6172696f}\ <-- don't mounted *** NO HAY PUNTOS DE MONTAJE *** \\?\Volume{f8ed6645-aeca-11d9-acb5-806d6172696f}\ <-- don't mounted *** NO HAY PUNTOS DE MONTAJE *** \\?\Volume{f8ed6646-aeca-11d9-acb5-806d6172696f}\ D:\ \\?\Volume{f8ed6647-aeca-11d9-acb5-806d6172696f}\ <-- don't mounted *** NO HAY PUNTOS DE MONTAJE *** \\?\Volume{f8ed6648-aeca-11d9-acb5-806d6172696f}\ <-- don't mounted *** NO HAY PUNTOS DE MONTAJE *** \\?\Volume{763b6850-7013-11d3-96f3-806d6172696f}\ E:\ \\?\Volume{34babd31-aebf-11d9-bfb5-806d6172696f}\ <-- I have umounted this vol *** NO HAY PUNTOS DE MONTAJE *** \\?\Volume{f8ed6640-aeca-11d9-acb5-806d6172696f}\ A:\ \\?\Volume{63a6c031-730d-11d3-a2c2-806d6172696f}\ I:\ \\?\Volume{9624f342-aec3-11d9-b444-9b5a09c9f193}\ H:\ You must have the vols S and T, if not, try to mount one of this without mountage point: C:\Documents and Settings\Administrador>mountvol T:\ \?\Volume{34babd31-aebf-11d9-bfb5-806d6172696f}\ C:\Documents and Settings\Administrador>mountvol Crea, elimina o lista la información de un punto de montaje de volumen. MOUNTVOL [unidad:]ruta volumen MOUNTVOL [unidad:]ruta /D MOUNTVOL [unidad:]ruta /L ruta Especifica el directorio NTFS para establecer el punto de montaje. volumen Especifica el nombre de volumen que será el destino del punto de montaje. /D Quita el punto de montaje de volumen del directorio especificado. /L Lista el nombre de volumen montado para el directorio especificado. Los valores posibles para "volumen", junto con los puntos de montaje actuales, son: \\?\Volume{f8ed6643-aeca-11d9-acb5-806d6172696f}\ C:\ \\?\Volume{63a6c030-730d-11d3-a2c2-806d6172696f}\ *** NO HAY PUNTOS DE MONTAJE *** \\?\Volume{f8ed6645-aeca-11d9-acb5-806d6172696f}\ *** NO HAY PUNTOS DE MONTAJE *** \\?\Volume{f8ed6646-aeca-11d9-acb5-806d6172696f}\ D:\ \\?\Volume{f8ed6647-aeca-11d9-acb5-806d6172696f}\ *** NO HAY PUNTOS DE MONTAJE *** \\?\Volume{f8ed6648-aeca-11d9-acb5-806d6172696f}\ *** NO HAY PUNTOS DE MONTAJE *** \\?\Volume{763b6850-7013-11d3-96f3-806d6172696f}\ E:\ \\?\Volume{34babd31-aebf-11d9-bfb5-806d6172696f}\ <-- here is the drive T: T:\ \\?\Volume{f8ed6640-aeca-11d9-acb5-806d6172696f}\ A:\ \\?\Volume{63a6c031-730d-11d3-a2c2-806d6172696f}\ I:\ \\?\Volume{9624f342-aec3-11d9-b444-9b5a09c9f193}\ H:\ [size=14]I don't understand your file Do you think this will work in Ms dos only [/size]You don't HAVE MSDOS. Get your mind around that concept. DOS defaults to one more drive letter than you physically have. Try using the lastdrive=t directive in the config file on the CD bootable OS. Just out of idle curiousity, where did the %ramd% variable come from and why do you need a ramdrive? A basic DOS system can be booted from a single floppy. I'm still not clear what you're trying to do. 8-) |
|