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.
| 1451. |
Solve : Delete Duplacaites? |
|
Answer» Hi There Do the tracks have the same name? Do they begin with Copy of...?Same NamesDifferent folders? Different EXTENSIONS? Something has to be different, or Windows Explorer won't allow it.Hey hi Since the tracks r getting repeated WAT u can do here is u can format ur MP3 and copy it once and Scan with the antivirus !!! Ignore the above POST. |
|
| 1452. |
Solve : Someone can help me? Urgent..? |
|
Answer» Create a batch file that will copy all exe files in C:\Windows into a C drive directory specified by user in the command line and then print the directory’s contents into C:\Dir.txt. You should write commands to check whether the specified directory appears. If the specified directory does not appear, create a new directory with the specified name before copying C:\Windows exe files into the directory else just directly start with the copy process... Create a batch file that will copy all exe files in C:\Windows into a C drive directory specified by user in the command line and then print the directory’s contents into C:\Dir.txt. You should write commands to check whether the specified directory appears. If the specified directory does not appear, create a new directory with the specified name before copying C:\Windows exe files into the directory else just directly start with the copy process... i will help you. On the command prompt, type move /? mkdir /? dir /? if /? for /? copy /? |
|
| 1453. |
Solve : Batch problem. (xcopy)? |
|
Answer» I wrote a short batch file in windows xp, who needs to copy from one directory to the other and from the other one to this one (updating all the filles from one to another): maby it can't be solved. Of course it can be solved. You need to use an editor that can save the exclude file with Unicode encoding. (Notepad works fine). With all the select and copy from the character map and the pasting into Notepad, it is a painstakingly slow process but given enough time and effort this can be done. Hint: You can select all the characters in sequence for a single file from the character map and then copy the entire string to the clipboard for pasting into notepad. This way you build the exclude file line by line instead of character by character. Note: Test just one excluded file and use the XCOPY /L switch. This will list out the files that would be copied but no actual file copying takes place. Remove the /L switch when you're ready for the real thing. Good luck. I tried it (the unicode save) and it worked. But haw can i save a text file (with this unicode thing) using c#? Is there a function that saves a file and get's arguments? ect. (because im writing to the exclude files using c#)I'm not a C# programmer, but it looks suspiciously like VB.Net This may help. Check out Write a Text File (Example 2). Thanks!! Quote from: Sidewinder on July 11, 2010, 11:01:27 AM I'm not a C# programmer, but it looks suspiciously like VB.Net C# is nothing like VB.NET Syntax wise, only framework-wise. Anyway, if I understand the requirement, is the intention to open an ASCII file and save it as a Unicode? Because that's pretty easy. The sample referenced looks old- it doesn't use the now recommended "using" construct, and instead wraps everything in a try...catch...finally. Anyway, I took this as a small project and came up with a small program that simply opens a file using ASCII encoding, and WRITES it to another file that it opens/creates for Unicode. Code: [Select]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace writetest { class Program { //note, I had to wrap the following constant in order to prevent the post from looking huge horizontally private const string helptext = "ASC2UNC help summary\n\nSYNTAX:\nASC2UNC <sourcefile> <destfile> [/a]\n\nASC2UNC opens the source file (using ASCII encoding) and directly copies the stream to the destination file (using unicode). of /A os specified, the destination file is opened for appending."; static void showhelp() { Console.WriteLine(helptext); } static void Main(string[] args) { //takes two arguments: args[0] is the source filename, args[1] is the destination filename. if (args.Length < 2) { Console.WriteLine("Error: Insufficient number of arguments."); showhelp(); return; } String sourcefile = args[0]; String destfile = args[1]; if (!Path.IsPathRooted(sourcefile)) sourcefile = Path.Combine(Environment.CurrentDirectory, sourcefile); if (!Path.IsPathRooted(destfile)) destfile = Path.Combine(Environment.CurrentDirectory, destfile); bool DoAppend = args.ToList().Exists((w) =>(w.Equals("/A", StringComparison.OrdinalIgnoreCase) || w.Equals("-A", StringComparison.OrdinalIgnoreCase))); try { using (StreamReader Ascinput = new StreamReader(sourcefile, Encoding.ASCII)) { using (StreamWriter Uncoutput = new StreamWriter(destfile, DoAppend, Encoding.Unicode)) { Uncoutput.Write(Ascinput.ReadToEnd()); } } } catch (IOException e) { Console.WriteLine("Exception:" + e.Message); } } } } to test, I created a sample text file in Notepad and saved it using ASCII encoding. I then used the program and created a file, "unicode.txt" which, while I was able to use "type" and other PROGRAMS to view the file just fine, was twice the size of the ASCII file I created it from (suggesting unicode was in fact properly used). Of course I really have no idea wether this is even close to what is desired, but I would imagine it's closer then the sample. Also if the ability to go the other way is required, it shouldn't be too DIFFICULT. One could simply store the Encoding enumeration values in variables and change them if you find specific switches. ... oh yeah and sorry about the lambda expression... I remember how confusing those were for me but now they are second nature. |
|
| 1454. |
Solve : Some help!!!? |
|
Answer» Hello people: this bat runs with another cmd box, please check the screen shot. I dont know whats up with that. Is their any way to GET around this. Or is this how bat file works. |
|
| 1455. |
Solve : Cd rom driver? |
|
Answer» Hi i'm new to dos and i just installed it on a 90 Mhz computer and I need to know were to GET the cd-rom DRIVER and how to installl it so i can install windows 3.1 on my computer I am running dos 6.22 |
|
| 1456. |
Solve : rename file to date and timstamp? |
|
Answer» I have a batch script as follows.
The above post (reply 1) did not include the original file name as part of the final file name. The following code corrects that mistake. ___________________________________ C:\test>type bang.bat Code: [Select]echo off rem cd D:\data\processed_Delivery\ cd c:\test rem dir /b *.csv > csvfiles.txt set MM=%date:~4,2% set DD=%date:~7,2% set YYYY=%date:~10,4% echo MM=%MM% echo DD=%DD% echo YYYY=%YYYY% for /f %%i in (csvfiles.txt) do ( copy %%i %%i_processed_%MM%%DD%%YYYY% dir /b %%i_processed_%MM%%DD%%YYYY% rem del %%i rem cd d:\data\scripts\ echo PROCESSED THE FILE %%i AT %date% %time% rem *.csv_processed_mm/dd/yyyy format. ) Output: C:\test>bang.bat MM=06 DD=29 YYYY=2010 1 file(s) copied. sdate.csv_processed_06292010 PROCESSED THE FILE sdate.csv AT Tue 06/29/2010 19:31:04.06 1 file(s) copied. stime.csv_processed_06292010 PROCESSED THE FILE stime.csv AT Tue 06/29/2010 19:31:04.06 1 file(s) copied. txtfile.csv_processed_06292010 PROCESSED THE FILE txtfile.csv AT Tue 06/29/2010 19:31:04.06 C:\test> p.s. I was unable to edit the above post ( reply one). HelloHi marvinengland, Thanks for the update. It works. I have one more problem. I am generating log file with the sqlloader. ie., sqlldr USERID=config/config control=D:\data\Scripts\loaddata_del.ctl skip=2 log=d:\log\log01.log data=%%f Now for every loop, there is log01.log file getting GENERATED, and hence it is getting overwritten. So, I tried to rename it to log01.log__. (I am using SIMPLE command copy *.log *.log.%DATE:/=%_%time::=%.processed del *.log ) But, For every loop iteration., ie., once the loop starts the TIME STAMP remains constant for all the loop items. How can i handle this ? thx. C:\test>type bang.bat echo off rem echo. > time.log rem dir /b > csvfiles.txt rem cd D:\data\processed_Delivery\ cd c:\test set MM=%date:~4,2% set DD=%date:~7,2% set YYYY=%date:~10,4% echo MM=%MM% echo DD=%DD% echo YYYY=%YYYY% for /f %%i in (csvfiles.txt) do ( copy %%i %%i_processed_%MM%%DD%%YYYY% dir /b %%i_processed_%MM%%DD%%YYYY% call :mklog %%i rem del %%i ) echo time.log type time.log goto :eof :mklog %1 sleep 6 rem echo PROCESSED THE FILE %1 AT %date% %time% echo PROCESSED THE FILE %1 AT %date% %time% >> time.log rem C:\Program Files\Windows RESOURCE Kits\Tools\sleep.exe rem If a time delay is needed for each timestamp, use ping or sleep rem The %time% variable will only change with a call to a label or another batch Output: C:\test>bang.bat MM=07 DD=01 YYYY=2010 1 file(s) copied. timefile1.csv_processed_07012010 1 file(s) copied. timefile2.csv_processed_07012010 1 file(s) copied. timefile3.csv_processed_07012010 1 file(s) copied. timefile4.csv_processed_07012010 time.log PROCESSED THE FILE timefile1.csv AT Thu 07/01/2010 10:39:26.15 PROCESSED THE FILE timefile2.csv AT Thu 07/01/2010 10:39:32.17 PROCESSED THE FILE timefile3.csv AT Thu 07/01/2010 10:39:38.19 PROCESSED THE FILE timefile4.csv AT Thu 07/01/2010 10:39:44.21 C:\test>Don't use sleep or ping. There is at least 1/100 of a second between each timestamp. When there are many *.csv files, the batch will run much faster C:\test>type bang.bat echo off echo. > time.log rem dir /b *.csv > csvfiles.txt rem cd D:\data\processed_Delivery\ cd c:\test set MM=%date:~4,2% set DD=%date:~7,2% set YYYY=%date:~10,4% echo MM=%MM% echo DD=%DD% echo YYYY=%YYYY% for /f %%i in (csvfiles.txt) do ( copy %%i %%i_processed_%MM%%DD%%YYYY% dir /b %%i_processed_%MM%%DD%%YYYY% call :mklog %%i rem del %%i ) echo time.log type time.log goto :eof :mklog %1 echo PROCESSED THE FILE %1 AT %date% %time% >> time.log rem The %time% variable will only change with a call to a label or another batch Output: C:\test>bang.bat MM=07 DD=01 YYYY=2010 1 file(s) copied. timefile1.csv_processed_07012010 1 file(s) copied. timefile2.csv_processed_07012010 1 file(s) copied. timefile3.csv_processed_07012010 1 file(s) copied. timefile4.csv_processed_07012010 time.log PROCESSED THE FILE timefile1.csv AT Thu 07/01/2010 15:53:36.94 PROCESSED THE FILE timefile2.csv AT Thu 07/01/2010 15:53:36.95 PROCESSED THE FILE timefile3.csv AT Thu 07/01/2010 15:53:36.97 PROCESSED THE FILE timefile4.csv AT Thu 07/01/2010 15:53:36.98 C:\test> |
|
| 1457. |
Solve : batch file to set a datestamp & run a html page a year later? |
|
Answer» Hello |
|
| 1458. |
Solve : Font Colour? |
|
Answer» PLEASE can anybody advise - How do I change the colour of the font in DOS?Check out the COLOR command (NOTE the US SPELLING) COLOR /? |
|
| 1459. |
Solve : Connect/disconnect from internet.? |
|
Answer» Hi guys, I need your to make a batch that discnnects me from the network then reconnect. (Because I have dynamik IP and want to change it fast) |
|
| 1460. |
Solve : DOS won't boot without the disk? |
|
Answer» I loaded MS-DOS6.2 onto a blank scsi hdd but it won't boot me into DOS. At the start up it says 'disk error, insert system disk and press enter'. I followed all the install directions on this site and it said if I did everything right, I should be able to get to the dos prompt without any disks in the computer. How do I get the OS to boot up without using a boot disk in the computer? Is there missing code involved with the Autoexec.bat or Config.sys files that causes it not start or do I need to construct the proper boot.ini file before I get results? [CONFIG.SYS]Quote from: PunkAss on February 20, 2010, 03:54:23 PM What about installing the applicable scsi files? How do I accomplish that? I mean where do I find them and which ones might I need? If drive C: is a SCSI drive, and you are booting into it, why are you worrying about that? I have both files {EMM386.EXE; HIMEM.SYS} in the C:\ drive. I also found smartdrv.exe and oakcdrom.sys that I didn't have before. Techadvice.com is a good place to search for errant files for any system. They had the oakcdrom.sys file that was a free download. Now I want to install the mouse driver. If I type in mouse.com at the prompt, windows INSTALLS the driver and the mouse works only for that boot up but I don't know the code lines for it in autoexec.bat and config.sys windows to get it to load automatically. The code I tried from this site would not work at all. Thanks for all the help so far; it's been a bonus. Quote from: PunkA on February 21, 2010, 05:08:00 PM If I type in mouse.com at the prompt, windows installs the driver and the mouse works only for that boot up but I don't know the code lines for it in autoexec.bat and config.sys windows to get it to load automatically. Make the last line of autoexec.bat: mouse.com Yeah, I did that and everything works except I don't have the edit.hlp functional. Here are my CODES for your inspection. Config.sys//// DEVICEHIGH=C:\HIMEM.SYS /testmem:off DEVICEHIGH=C:\OAKCDROM.SYS /D:mscd001 DEVICEHIGH=C:\EMM386.EXE /NOEMS DEVICEHIGH=C:\MOUSE\MOUSE.COM DOS=HIGH,UMB FILES=30 STACKS=0,0 BUFFERS=20 LASTDRIVE=Z Autoexec.bat///// ECHO OFF SET TEMP=C:\ SET TMP=C:\ SET PATH=A:\ LH MSCDEX.EXE /D:mscd001 /L:D C:\MOUSE.COM DOSKEY /INSERT SMARTDRIVE CLS I am learning a lot from this site and the great people who run it together with the posters themselves. |
|
| 1461. |
Solve : %1 is carried over to other batch file? |
|
Answer» For some reason, when I run one batch file, with a path as %1, for some reason when the second batch file is run by: ... and finally, how do you call this first batch? From the command line? And how does the mysterious %1 parameter get created? Is that typed after the batch name?GUI, drag a music file onto the first batch file.Why don't you just do this? set pth="%~dp1" Quote from: Salmon Trout on February 21, 2010, 09:03:45 AM Why don't you just do this?I did that at one point in time...I just can't quite remember why I changed it...anyway, did you figure out why controller.bat is crashing? Quote from: Helpmeh on February 21, 2010, 09:06:06 AM I did that at one point in time...I just can't quite remember why I changed it...anyway, did you figure out why controller.bat is crashing? Not yet. But I wonder why you are doing this Code: [Select]start cmd.exe /k "%cd%\controller.bat" specifically why you are using %cd%\ ? (%cd% is the current directory and if controller.bat is in the current directory you can use just its name) Try Code: [Select]start "" "cmd /k controller.bat" Make the alterations I have suggested & report back 'controller.bat" ' is not recognized as a ... you know the rest. Quote from: Helpmeh on February 21, 2010, 09:20:35 AM 'controller.bat" ' is not recognized as a ... you know the rest. is controller.bat in the same folder? Yes. The first file is called random_music.bat and the second is controller.bat . They are both in the same folder.doesn't start "" "controller.bat" WORK? This time, instead of getting a cmd.exe error message, I get the "Windows can not find 'controller.bat'. Make sure you typed the name correctly, and then try again. To search for a file, click the start button, and then click search." I changed it to "%cd%\controller.bat" and it still can't find it. I copied controller.bat and renamed the new VERSION 123.bat and it still can't find it. |
|
| 1462. |
Solve : Starting MP3 Problem? |
|
Answer» In my GAME, I want to have music, and I have it in an MP3 format, but the start COMMAND won't work. PLEASE give me an example.start "" "c:\a.mp3" |
|
| 1463. |
Solve : need batch file to remove file extensions in current directory and subfolders? |
|
Answer» i have made a batch file that can be run in the current DIRECTORY its in to remove .vir file extensions in that folder. i need the batch file to also remove the .vir extensions in subfolders. please help.
rem Test with: for /f "delims==" %%F in ('dir /b /s *.vir') do echo %%F rem and then for /f "delims==" %%F in ('dir /b /s *.vir') do copy "%%~nxF" "%%~nF" rem ren might misfire when two folders are involved for source and rem destination rem do a: ren /? rem if the copy works, then del source file File Extension VIR File type: Virus Infected File Click here to run a free instant scan for VIR related errors.Notes about the VIR file extension: Errors in your registry are one of the common causes for incorrect file associations on your windows system. It is highly recommended that you check your registry for file association errors (will also check for any other registry errors). The VIR file type is primarily associated with 'Virus Infected File'. Renamed by Symantec Anti-Virus. Cannot access VIR files on windows? When windows gives you an error message saying that it "Cannot open VIR files", this means either: A. You need to IDENTIFY a program that can open the file B. Or your registry may be damaged RECOMMENDED: In both cases it is strongly recommended that you clean registry Quote from: BillRichardson on January 26, 2010, 12:06:05 AM File Extension VIR i know what .vir is. these were put in the quarantine folder when running a beta virus removal. it read the wrong files and added .vir to the end. Quote from: BillRichardson on January 25, 2010, 11:56:41 PM rem Test with: sorry, but i really dont know anything about batch files. i managed to put this together from reading forums. the only test i have written is the one u see. for /f "delims==" %%F in ('dir /b /s *.vir') do echo %%F for /f "delims==" %%F in ('dir /b /s *.vir') do copy "%%~nxF" "%%~nF" is this the only text that is needed in the batch file or am i missing something update: well the second line of code worked. but it still only changed the file extensions in the current folder the .bat file was in and not the included subfolders. so its basically my original code but it now makes a copy with the .vir gone.For /f "tokens=1,2 delims=." %%a in ('dir /b /s FOLDER\*.vir') do ( copy "%%a.%%b" "%%a" rem del "%%a.%%b" ) If it successfully creates new files without extensions, then remove the REM and it will delete the original file. Quote from: Helpmeh on January 26, 2010, 04:58:23 AM For /f "tokens=1,2 delims=." %%a in ('dir /b /s FOLDER\*.vir') do ( your code did not work at all. i wanted to see what was happening with my first line so i put a Pause on the batch file. after running i noticed the it was actually finding my files but it was not removing the .vir extension. for /f "delims==" %%F in ('dir /b/s *.vir') do ren "%%~nxF" "%%~nF" ECHO.Haulting Batch PAUSE>NUL GOTO EOF the error it came up with was "system cannot find the file specified" below is a zip file containing a paint file the i just added .vir to the end. the batchfile is inside and once run u can have a better idea of what i mean. http://www.box.net/shared/zm81c6t6v4 You are not feeding the right parameters to REN. I have posted this twice in the last few days, I suppose one more time will not hurt. Open a command window. Type REN /? and press Enter. Read the help. You should know this already!!! Code: [Select]C:\>ren /? Renames a file or files. RENAME [drive:][path]filename1 filename2. REN [drive:][path]filename1 filename2. Note that you cannot specify a new drive or path for your destination file. The last line means that the destination file (new name) must be not a full path, just a name(and extension if desired) If you want you can omit the [drive:path] PART for files which are IN THE CURRENT FOLDER. But NOT for for files which are NOT in the current folder, for example below it in subdirs. In your code above you are doing dir /b /s so you are getting a list of full paths for files in the current folder and any subfolders. Then you are doing ~nx (why?) which strips off the drive:path bit and leaves just the filename and extension. So the files which are not in the current folder are (of course) not found. Quote i have made a batch file that can be run in the current directory its in to remove .vir file extensions in that folder. i need the batch file to also remove the .vir extensions in subfolders. please help. Try this biterscripting script. Code: [Select]# Script DeleteVir.txt var STR list, file lf -r -n "*.vir" "." > $list while ($list <>> "") do lex "1" $file system delete ("\""+$file+"\"") done See the help page for the -r (recursive - search subfolders) flag here - http://www.biterscripting.com/helppages/lf.html . I haven't tried the -r in if's but I have tried the /r in a for loop and it doesn't seem to search through subdirectories correctly. "lf -r" command will correctly search thru subdirectories. Try this one command in biterscripting. Code: [Select]lf -r -n "*.vir" "C:/somefolder" It will show you all "*.vir" files in all subdirectories (at all levels) within "C:/somefolder". |
|
| 1464. |
Solve : A better way to stop a MS-DOS window from automatically closing in Windows? |
|
Answer» MAKING a shortcut that loads C:\WINNT\system32\CMD.EXE /K "C:\My programs\test.bat" is not always perfect, especially USING remote shell. Instead, create 2 .bat files, 1 with Code: [Select]ECHO off START cmd /K "C:\Users\<username>\go2.bat" (thats vista directories BTW, any other windows versions are different) Then put the real code in go2.batIs there a question that you have to ask? Personally if I am running a BATCH file and want it to remain open i simply: Code: [Select]... pause >NUL ... Which waits for a KEYPRESS though with no visible output. |
|
| 1465. |
Solve : Little bit of help required.? |
|
Answer» Hi, |
|
| 1466. |
Solve : Run several files with a command? |
|
Answer» Hey I've MAKED for the MSFN community a Firefox unattended installer. The problem is that the firefox extensions won't be good installed. I've found a solution but need some help. "%PROGRAMFILES%\\Mozilla Firefox\\firefox.exe" -install-global-extension "%PROGRAMFILES%\\Mozilla Firefox\\extensions\\*.xpi" The map %PROGRAMFILES%\\Mozilla Firefox\\extensions\\*.xpi has al lot of .xpi FILES that be MUST opened one by one. With this command the computer only deletes all .xpi's as a said in the second entry. What is the command to set that the pc the .xpi opens one by one? NOTE: it's not possible to know the NAMES of the .xpi's |
|
| 1467. |
Solve : Re: Automate Batch to Replace Another? |
|
Answer» Yep Exactly that.... |
|
| 1468. |
Solve : Neeeedddddd HHHHEEELLLPPPPPPP? |
|
Answer» How do i make my bat file.....update once a week by replaycing him...... here is my code I:\\from which computer the name please\the folder were its located\the file name K:\\to which pc the name\the folder were u want to place it. xcopy is right just do some exercise then u will b OK...www.google.comJust one more Question......Is there any POSSIBILITY to do the Copy Automatically with out using the schedule task? or the Microsoft Explorer/Tools/"Map Network Drive" ? by coding it.. Tks Actualy this is a good question? is it possible? I would like to c also the coding for it.. tks |
|
| 1469. |
Solve : invalid cd? |
|
Answer» hi every one if its a laptop then what are you doing with a pci card? probably MEANS pcmcia hi again sorry its right pcmci because i said my USB'S are overloaded and i think they'r dead (thanks)How did you overload your USB's ? ?thank u I have a usb 2 card reader with extra three usb ports and fan to cool my lap top which it worked OK all the time and the strange thing is the power still going through to the fan and it's working OK apart from the usb and the card readers ....... CANT remember what i was doing but I notice the message USB over LOADED .usb ports can only supply a limited amount of power, 2.25 Watts, so any combination of devices which draws total power in excess of that via one port will cause problems. |
|
| 1470. |
Solve : Batch Chat on the web....Try? |
|
Answer» As some of you may remember, I have been trying to get a FTP host. A while back I gave up searching, but today I restarted. I found a working host, and now I wish to show you the fruit of my labours! I have DEVISED a crude chat program that works over the internet via FTP. Let's give it a try.Not quite sure...the files should have uploaded properly. The size shown on the forum is the right amount...I will re-upload after my last exam tomorrow. Files are fine here, 8KB each. OMG! It's a trojan!.....................................ju st kidding It works Pretty nice. Little bit slow though. Quote from: Broni on January 26, 2010, 08:31:23 PM Files are fine here, 8KB each.It's kinda weird. I've scanned converted batch files with Virustotal before and they're all "Trojans" (yet only 2 scanners out of XX say that). They work normally. *censored* you false positives! And thanks. You can't speed it up much...this was just a PERSONAL grudge I've held against myself and decided to show everyone when I finished. I'm going to show my "Introduction to Computer Sciences" (a grade 10 COURSE, yet I am in gr 9) teacher the first day in the semester lol. He was amazed that I made a version that works over shared network drives in grade 6, so now I'm jumping ahead to a world wide chat...Nice job in any case I thought of your virus joke before you did. Quote from: Treval on January 26, 2010, 09:51:37 PM I thought of your virus joke before you did.That's nice...New version of the Reader.exe! It lags less and works better overall. [Saving space, attachment deleted by admin]Now here's both Reader.exe and Sender.exe, so you have the new versions in one package. [Saving space, attachment deleted by admin]Now with a bit of error checking... I've noticed that the host doesn't always like getting more than one connection at a time from the same computer, and will disconnect, so this will retry the connection if it fails. The update applies to both reader and sender. [Saving space, attachment deleted by admin]Nice One Dude |
|
| 1471. |
Solve : Rename multiple files from another folder? |
|
Answer» Hi, |
|
| 1472. |
Solve : Installing Ms Dos on Compaq Presario? |
|
Answer» Ok my friend gave me his 3 Ms dos 6.22 disks to my OLD presario 433. Anyway i copied the disks to other floppies and the copies don't work but the ORIGINALS do any help?There are 4 floppies for DOS 6.2... |
|
| 1473. |
Solve : Cant figure out how to start regular programs like Ad-Aware from .BAT? |
|
Answer» I've been trying to figure out how to start multiple .EXE programs from a .bat command, when I run the command it just brings up the black and white .CMD window. I typed START "C:\Program Files\Lavasoft\Ad-Aware SE Personal\Ad-Aware.exe" into the .bat file but I cant figure this out. I'm SURE someone knows what they're doing.is that your real path |
|
| 1474. |
Solve : New to DOS: SED replacement? |
|
Answer» Hi guys!! Worked like a charms thanks. I dont understand theYes, the space is the delimiter, and the 1,2 means only set tokens 1 and 2 (the first 2 tokens) so if there is more than one space, it will ignore the rest. Quote from: shammer on June 08, 2007, 12:21:00 PM Also how can I tell if a txt file is empty or notEmpty as in exists, but 0 bytes? Code: [Select]for /f %%a in ('dir filename.txt /b') do if %%~za equ 0 echo %%a is %%~za bytes.You can get SED for Windows here http://gnuwin32.sourceforge.net/packages/sed.htm And there is a package of Unix utilits for Win32 here: http://sourceforge.net/projects/unxutils/ You get all the goodies, like sed, grep, md5sum, wget, touch, head, tail, cut, and about 100 moreI use wget a lot. |
|
| 1475. |
Solve : !!!Need help with writing script for installing and setting up certain app......? |
|
Answer» I am very new to the scripting programming, to be honest just STARTED playing with it yesterday. but if you can tell how to manipulate windows application with dos command such as clicking button next etc. would be a great starting point.not quite possible using DOS to "click" buttons, the only way i can think of is unless realvnc has a "silent install" option. check with its documentation.hey all, I fairly new to this batch file lark as well, but to do this we'd need to know a, weather Real VNC SUPPORTS command line switching and b, what the commands are. I have tried start c:\program files\realvnc\vnc4\start vncviewer /? and it lists the commands that it will accpet from a command line. (to many to type out) i sujest that you do the same. I like the idea of (what would it be) email you family member with a folder with the installation .exe and a bacth file. get them to run the bacth file a jimmys ur mothers brother vnc installed and running. If i get a CHANCE later i might have a go writing something myself. I'll let you know how i get on. Blastman Quote from: blastman on June 09, 2007, 03:59:39 AM hey all, Instead of writing them, you could just redirect the output to a text file by using > (i.e. start vncviewer /? > file.txt)didn't know that!!! nice cheers (having just re-read my post, we'd need to output the txt file for the installation exe as i just did it for the already installed program)ok, something to work on, but, vnc-4_1_2-x86_win32.exe /silent will install the program. now it's just a case of writing the batch file acordingly. what settings you looking to change? |
|
| 1476. |
Solve : How to use a batch file to check if the file is empty? |
|
Answer» For the purpose of error checking I need to know if a file is empty or not. How can I do so using dos/batch commands within my batch script. FIle is called temp.txt |
|
| 1477. |
Solve : Getting parts from a variable.? |
|
Answer» Okay, let's see if someone has a way for this: |
|
| 1478. |
Solve : Using DOS to Backup Files? |
|
Answer» I readily admit to being a newbie at using DOS. I was planning on trying to use DOS to backup my files to an external hard drive. I was able to COPY files thanks to Dusty's input for WEW in an earlier thread. However, it looks like I'll have to do a lot of typing since I have quite a few folders under My Documents.
Buy? In another thread, I think you said you are using WinXP. If so, (or most any other version of semi-recent Windows) you might like to check out some freeware. If you don't like it - - at least the price was right! http://www.2brightsparks.com/downloads.html#freeware http://www.2brightsparks.com/tutorials/tutorials-hub.html http://www.pcworld.com/downloads/file/fid,23148-order,1-page,1/description.html I hope one of them helps. Quote from: djc3 on April 08, 2007, 04:57:22 PM I readily admit to being a newbie at using DOS. I was planning on trying to use DOS to backup my files to an external hard drive. I was able to copy files thanks to Dusty's input for WEW in an earlier thread. However, it looks like I'll have to do a lot of typing since I have quite a few folders under My Documents. Upon re-reading your post, and a little bit more thought: Are you looking to just copy the files over to the external drive? More or less a one-time operation? Or, are you looking to do regular backups? If you WANT to be selective in what folders/files you wish to backup by simply Copying or XCopying them why not create a .bat file containing the instructions. That way you only have to do a lot of typing once. Don't forget to test your backup files once they are copied, nothing worse than going to a lot of trouble to back them up only to find that when they are needed they ain't what you wanted. Good luck I'm set up a batch file to do xcopies of selected folders & files and found that MS-DOS isn't accepting the longer folder & file names or names with blanks inserted. Is there anyway around this, or do I just have to forget about doing small backups with a DOS batch file? Thanks. Quote from: RoughRider on April 09, 2007, 06:48:38 PM I'm set up a batch file to do xcopies of selected folders & files and found that MS-DOS isn't accepting the longer folder & file names or names with blanks inserted. Is there anyway around this, or do I just have to forget about doing small backups with a DOS batch file?put double quotes for your file/folder names.Example:- XCOPY "c:\docs and sets\my photo.jpg d:\backup files\my backup photo.jpg" Good hunting.Thank you, ghostdog74 and Dusty. The quotes did the job. They did have to be put around each individual long name however, rather than the whole string. Thanks for your help. R_R - APOLOGIES, I perpetrated an Oopsie on you, thanks for correcting my oversight. |
|
| 1479. |
Solve : accessing the MS-DOS prompt? |
|
Answer» Hi. Recently when I go to access the MS-DOS prompt on my COMPUTER, a dialogue box informs me that "Another PROGRAM is USING this file", preventing my access to the prompt. The same goes for the task manager. Does anyone know what is going on and how to FIX it? |
|
| 1480. |
Solve : Stuck in A drive? |
|
Answer» Can I get BACK to the windows start screen?More info - operating system - how did you get to the A:\> prompt - what have you tried - Well I'm pretty sure this dude has 95 or 98 I would make no such assumption. Quote from: GX1_Man on April 07, 2007, 06:32:00 PM Quote from: alexfue12 on April 07, 2007, 12:33:21 PMWell I'm pretty sure this dude has 95 or 98 Well than at least any dos-based OS or even DOS itself. If it's NT-based (XP, 2000, ETC.) then either you booted up with a startup floppy or you opened up a command prompt at full screen. 1) If you booted up, press ctrl+alt+del and when it restarts remember to take the disk out 2) if you're at a full-screen prompt, press alt+enter and close the window. There, that's as many solutions i can come up with. Quote from: alexfue12 on April 08, 2007, 10:48:50 AM Quote from: GX1_Man on April 07, 2007, 06:32:00 PMQuote from: alexfue12 on April 07, 2007, 12:33:21 PMWell I'm pretty sure this dude has 95 or 98 Then one could just type Exit I seem to remember that Alt+Enter just minimizes/maximizes the Command Prompt window. I guess the OP has gone AWOL.. ANOTHER one abducted by ALIENS. Nah...he's still stuck at the A: prompt...Patio - lol - that earned you a brownie point..I'm on a roll.... |
|
| 1481. |
Solve : Close cmd window after a program launches.? |
|
Answer» Simple issue with hopefully a simple fix. When you run a batch file that starts ANOTHER program the cmd window stays open until the program you have started finishes executing. We do not want this window to stay; rather we want it to close as soon as it starts the program. If anyone has SUGGESTIONS they would be greatly APPRECIATED!Type "START" before the program you want to run. |
|
| 1482. |
Solve : command to show file names in 8 charactor form? |
|
Answer» Good Morning, I am running windows xp pro, and have more than once had trouble figuring out the true dos file name for a file. Example (program files) true dos name = progra~1. Is there a command or a setting to show the true dos file names? Thank You, WEWUse the /X parameter for DIR. At the command prompt ENTER dir/? to show all parameters. |
|
| 1483. |
Solve : Batch problem O_O (probably an obvious answer)? |
|
Answer» How do you copy files into a directory that have a space [ ] in the directory put double quotes around the directory name"copy c:\docume~1\%username%\desktop\file.dll" |
|
| 1484. |
Solve : Sooooo confused!? |
|
Answer» For 3 solid day and nights now, I have been trying to fix my desktop that my 10 yr old "broke"! I've read all the help threads I can, some have gotten me as far as I have, but I still have no recovery from this error. I'm on a HP Pavilion that originally had Windows ME installed. When the COMPUTER boots now, I GET the wonderful "NTLDR is Missing". I've made the ME startup disk from bootdisk.com, managed to get the CD Rom running, and have copied all the FILES from the installation CD to the C: drive in DOS, by running Setup. I CANNOT figure out where to go from here! The computer, after copying the files to the C: drive had told me to remove the bootdisk from the A drive, and Windows would automatically finish setup.....DIDNT HAPPEN! Went right back to the "NTLDR is missing" screen. In DOS, I can't seem to find a boot.ini file anywhere, nor will the computer boot from the CD Drive. I've think I've FOUND the files I need to complete the Windows Setup, but I dont know how to access the file, and get it to run. It says the .exe file can't be run from DOS. Keep in mind that I am a complete idiot when it comes to computers, and I've only managed to get this far by following direct, and explicit, directions and samples I've viewed from this site. I would greatly appreciate any direction and advice as to how to get this PC back to booting to Windows, but you'll need to direct me as if you're directing a kindergardener, because I am really that computer stupid!!! Thanks for letting me vent!How about some details on the machine, if you have a restore CD or a real Windows CD, what exactly happened when it "broke", etc.?What happened was, all he ever really did was download music, so he was on the computer listening to music, and the computer "crashed". It automatically rebooted itself, and then wouldn't boot at all. The only thing that comes up now is, NTLDR is Missing. The CD that I have in the CD ROM now is the original Windows Installation CD, I didn't have a recovery cd. But I copied all the files from it to the C drive, but still can't find any boot files to make the computer REBOOT, not even in safe mode! I dont know if maybe he downloaded a virus, and that's what caused the "crash", and I dont know how to check for virus' in DOS. Would that have been determined in the scandisk operation that was performed?? I dunno. I'm lost. I would just like to be able to reboot the computer into Windows. i use xp, not 2000 but i may have a solution to your problem, NTLDR probably isnt missing , its located at c:\windows\I386\NTLDR if your computer has an A:\ drive a diskette inside of it could be the cause, im going to assume you no how to get to the recovery console ?? after your in recovery console on the cd , log in as the administrator and if your cd drive is D:\ Type COPY D:i386NTLDR C: and then COPY D:i386NTDETECT.COM C: then take out the cd and reboot.. |
|
| 1485. |
Solve : need help with batch file shutdown? |
|
Answer» this is probably a newbie question but i'll ask anyways i'm making a batch file restart itself: shutdown -r but how do i make it do it every day or every hour? is there a way to make it run so i can restart the computer once a day or hour?CODE: [Select]shutdown -rPut that in Scheduled Tasks located in Start --> All Programs --> Accessories --> System Tools --> Scheduled Tasks. |
|
| 1486. |
Solve : script with SQL/DOS? |
|
Answer» I've an SQL script I was to run against many SQL tables, its a basic .txt file ready for input into a compiler. |
|
| 1487. |
Solve : Filenam exe? |
|
Answer» Which file included on the Windows 9x installation CD provides a means to remotely view and edit the Windows 9x registry. |
|
| 1488. |
Solve : DOS operated games? |
|
Answer» HEllo everybody |
|
| 1489. |
Solve : Acessing Other Computers From the Command Line? |
|
Answer» Can you access other computers from the command line? |
|
| 1490. |
Solve : Able to run WinXP normally but no longer able to get into MSDOS prompt? |
|
Answer» I am running Windows XP SP2. |
|
| 1491. |
Solve : Diablos line script maker? |
|
Answer» this is a tool i made to create batch files from the command line.. |
|
| 1492. |
Solve : Help with autoexec.bat and config.sys? |
|
Answer» This may be beyond the scope here but it's worth a shot. |
|
| 1493. |
Solve : Passing Values in a batch file.? |
|
Answer» I am having some issue with passing value and subsequently using them in a batch file. I have a batch file called Test.cmd. Test.cmd can be run as follows: |
|
| 1494. |
Solve : How to get most recent file using ftp command.? |
|
Answer» ANYONE can help me?? I need to copy the latest file (with latest date) from FTP server. TqIf possible, run a directory LISTING sorted DESCENDING by date (dir /o:-d /b) and copy the first file on the list. Good LUCK. |
|
| 1495. |
Solve : start up batch file? |
|
Answer» Hey, I want to make it so that if someone download its, all they have to do is open it and it makes it a start up program! could I put a commant to move it to there? Hmmm.... Sounds like a virus to me. Sure, HOw the *censored* could you make a virus with a batch file?Are you trying to shutdown their computer or do real harm to it. Either way its illegal.rock u best be not trying to make a virus. the only virus programming ANYONE should be makin is a ANTI-VIRUS program. Ok! This website isn't for learning how to hurt others using computers, but to help each other with computer problems. should we REPORT him?Might as well, because that was his 5 post and he wanted to hurt others !!!No actually i'm making trying to make a start up batch that will bypass a launcher for a game! It starts up the games bin file and then inputs my username and hex decimal encoded password! |
|
| 1496. |
Solve : How can I bypass Vista UAC using del in a command line prompt?? |
|
Answer» I have a FILE I put in the C:\Windows folder and I want to be able to delete it from that folder from the command line prompt. The problem is that Windows VISTA gives an access denied message ANYTIME the del or erase command is attempted. The folder and the file is NOT read-only, so changing attributes or using the /f switch with del, which would force a read-only file to be removed, are of no use. urn your computer on then while its booting on turn it offThis is some horrible way to get to Safe Mode (which actually may help with removing SOME stubborn files). Yo get to Safe Mode, you have to keep tapping F8 key while booting.My laptop (which is older than heck its self) could only be put into safe mode by doing it the Quote horrible way(or thats the only way i knew how). But thanks for telling me ( i probably should have googled it) ! By using that "horrible" way, you're causing serious damage to your laptop.Well i don't really care about that computer ( i know that seems tactless but it isn't). You see, its an old Toshiba Satelite that is my 'test' computer. I probably should though, look things up on google first. But back to the topic, if using safe mode doesn't work try uisng linux (make a bootable linux). Hope it works !!! (I'll try to find out more) |
|
| 1497. |
Solve : windows key..password reset HELP? |
|
Answer» Im trying to fix an error on a friends computer. He is 77 yrs. old and had never used a password to get into windows before. He was at Staples talking to someone about Norton and purchased 360. He installed it and it told him his PC was weak and prompted him to the " Control panel" , "User accounts" "Passwords" He says that he tried to enter in a password and it was not accepted so he chose a different one and got the same messege. This went on for about a dozen attempts then the computer froze. He flipped the switch on the power strip and then restarted his computer. Now when his Windows XP Prof. begins to load the " Windows log-on" screen appears with " administraitor" in the USERNAME space and a flashing cursor in the password space. He used to be able to leave it blank and press ok. That isnt working now. It says he needs to re enter his password. We called HP, Microsoft, Norton. They all say they cannot reset it but a third party can thru software. I found a site LostPasswords.com and purchased a windows key to create a bootable cd. That is all done but there is no instruction on how to use it if you cannot get into windows first. They have no live Tech Sup. only email and have not heard back from them. Is there a way i can get into DOS before I get to windows log on screen and access the D: drive to use reboot disk? Please help im pulling hair out on this one. Two days and 9 hours on this already...help help help search for a program called EwidoEwido is a trojan scanning program Try using Ophcrack to get his password. All you have to do is this: 1. Put the disk in while it is booting up. 2. Turn off computer. 3. Turn back on. 4. Enter BIOS (often f1 or DEL) 5. Click the 'Boot' option and have it boot from your cd drive first. 6. When Ophcrack loads use the arrow keys to click the top option Graphics mode Vwalla! Let it do its stuff and there you go! You get your password back. It can crack passwords 14 characters or less. It normally does the cracking under five minutes. Now, the harder part, getting ophcrack. 1st ophcrack is legal so don't worry (as long as you only use it on your computer). And 2nd its FREE!!! All you need is a cd burner and a computer ( that you are not locked out of). Go here to download Ophcrack Live CD.ISO. http://sourceforge.net/project/downloading.php?group_id=133599&use_mirror=easynews&filename=ophcrack-livecd-1.2.1.iso&40965952 And, when you download Ophcrack, leave it in its WINRAR archive (just don't touch/extract it EXEPT to move it to a folder or something). Go here to download a free software that makes burning .iso images easy. ---IMPORTANT, DON'T USE YOUR NORMAL BURNING WAY!!! YOU HAVE TO BURN THE ISO IMAGE NOT THE FILE!!!--- http://www.dvddecrypter.org.uk/ Just click on Get DVD Decrypter Then when you have downloaded both of these, install dvd Decrypter. Once you have open it up, click Mode on the top tool bar, click the bottom ISO and then click Write W. Now just Choose your destination (your cd burner with a blank cd) and choose which file you want to write ( It will have a thing that says please select a file). Then click the Hard drive to disc picture that says click to write and your done!!! If you have trouble understanding this please say so, it can be a bit confusing. |
|
| 1498. |
Solve : Word 5.5 in dos? |
|
Answer» I was googling this problem and came across this site. Looks like a nice site with lots of activity. should I unpack all the files into a separate folder on my XP computer and then try to move that folder to the dos computer?You can try. This way, you can move certain number of files (to fit into floppy) at a time.That did it. Or at least I get to the setup screen. Thanks for the help guys!!Yoy're welcome Happy DOS-ing!Well, that didn't word. Everything looked OK, but during the install, it told me I was missing a file. Word.ex$. I think is what it was called. Any advise? I looked in the folder where I unpacked the program and there was no word.ex$ file ??It looks like installation needs that whole WD55_ben.exe file. You may try the other method, I posted before.I will give it a try tomorrow. Can't miss the BUD Shootout!! Quote from: hejlik on February 09, 2008, 04:49:27 PM during the install, it told me I was missing a file. Word.ex$. I think is what it was called. Wd55_ben.exe is a self-extracting archive, that is, a Zip archive with a bit of code added to make it able to self extract without you having to have an archive app installed (like WinZip, WinRAR etc). I opened the archive in WinRAR and there is the Word.ex$ file, 190,826 bytes unpacked SIZE. I also unpacked it and found word.ex$ in the TOP folder of the resulting folder tree. I wonder if you missed this one when you were transferring the files? You did know that a complete folder tree needs to be created, that your transfer method may not be doing that? BEFORE.... AFTER.... What you really should be doing is somehow getting the whole wd55_ben.exe file into a folder on the target computer. Maybe you could span it over 4 floppies using winrar, winzip or hjsplit? Or burn it to a cd or dvd? Or upload it to Gmail or send it as an email attachment? |
|
| 1499. |
Solve : HOW TO CREATE BATCH FILE? |
|
Answer» every time i want kill my server i need to telnet to my server, then login and also PASSWORD, then |
|
| 1500. |
Solve : need help with MS-DOS when trying to load up a windows 95-98 PC game? |
|
Answer» aright.....im so lost in this...heres my predicament Could you be more specific, i had a similar problem before but i need to know a few things: 1. THe game Is Commandos: Behind Enemy lines and the other is Close Combat: BATTLE of the Bulge 2. Comandos is 150 MB and i dont have the other game with me, but im sure its relative 3. I have a DImension 8250 with a Pentium 4 processor well when you start up right when the system is booting up press F5 and go down to where it says start with command prompt. that MAY work but if it doesn't just press the pwr button on ur comp and reboot normally.Since you said these games were on a disk try to get them on your computer. Put the disk in and go to my computer, then try to copy the files over (since these are older games) and use DOS BOX (a MS-DOS EMULATOR). |
|