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.
| 7101. |
Solve : Batch File to search a word and replace with another in same line? |
|
Answer» Hi All, I am looking for a batch file Is there a reason why you didn't follow up your previous thread? It's polite to say "yes it worked" or "It didn't work because it did [this] instead" |
|
| 7102. |
Solve : What Switch Prevents Path from showing?? |
|
Answer» Fellow Forum Members, |
|
| 7103. |
Solve : Net Send Command?!?? |
|
Answer» I am on a network with several computers on a workgroup, that workgroup is in mor than one room. I want to be able to send net messages in only my room. All the computers in my room are TITLES IT(#) # being any number 1-25, if i send the COMMAND net send IT* [message] will it send only to the people in my workgroup with the net name begining with IT? I want to test this theory but i nearly got introuble when i sent the net send * [message]command that sent the message to multiple rooms. Just a yes/no answerThe Syntax is |
|
| 7104. |
Solve : NET SEND !!!!!! HELP? |
|
Answer» Dear SIR, |
|
| 7105. |
Solve : Batch file to copy an paste text? |
|
Answer» is there way for a Batch script to paste text stored with the batch script? like a log on id Pretty much give you the same ANSWER for both of your QUESTION and the Same answer they gave you on the DosTips FORUMS. You would need to use a program like AutoIt or AutoHotKey.you could use set /p string=>File2.txt is there way for a Batch script to paste text stored with the batch script? like a log on idBatch files are used in some cases where you need to send a file to a remote computer that requires a password. Is that what you MEAN? -OR- A simple way to tog into a web site, like Facebook, when the user has some handicap that limits his vision or typing skill. Auto Hot KEY is often used by people with handicaps. Or people who nae lazy. Automate your work with Autohotkey (CH Archives) |
|
| 7106. |
Solve : help delete old files? |
|
Answer» Hi everyone, |
|
| 7107. |
Solve : Stop Auto Boot in Dos?? |
|
Answer» Guys, |
|
| 7108. |
Solve : Batch for for deleting files older than 20 minutes? |
|
Answer» Back in 2006 this code was post to this forum: I ran the code but I am getting this for this line of code: Did you try it without any changes? Quote from: Also, would get creationdate work? Yep. Well, the file ran correctly without changes. Good call and thanks. I was trying to manipulate the code when it didn't need it. I thought the bat file couldn't reside in the same directory as the files being evaluated/deleted for >20 min.Thanks for testing it as written, and you are right that after 20 minutes the batch file age will include itself if the filespec is * or *.* Replace this line with the following line to fix that issue. Code: [Select]for /f "delims=" %%a in ('dir * /a-d /b') do call :CheckMins "%%~fa" Code: [Select]for /f "delims=" %%a in ('dir * /a-d /b ^|find /i /V "%~nx0" ') do call :CheckMins "%%~fa" |
|
| 7109. |
Solve : zipping files with batch file? |
|
Answer» Hello. I'd like to create a batch file that uses Power Archive to zip 2 .txt files into one archive. |
|
| 7110. |
Solve : batch and http? |
|
Answer» Hey Guys, |
|
| 7111. |
Solve : How to program/set a certain key to turn on laptop from shut down or hibernate? |
|
Answer» Hi there, If you say the electricity is physically off, I wonder how the power button on media keyboards work? Because, I think, it's not designed only for turning off the machine, am I right? I've never seen a USB keyboard of any KIND with a power button (except possibly for macs, and who even knows how those work). I've seen them with sleep buttons, but wake-from-sleep happens on key presses with the right power settings anyways. I think you have a catch-22 here -- You need the laptop on for USB devices to work, but you need the USB keyboard to work in order to turn the laptop on. Since this is a laptop, I'm guessing you're probably using wireless, and would you really want to have your wireless always-on so you could wake it up from another computer? Not to put ninjatex down or anything but it sounds a bit silly. (I CHECKED my computer and I can't enable wake-on-lan on my wireless adapter anyway) Even if you can get the keyboard to work in some way, when the computer is off, the BIOS is the closest thing to software running, and it's not sophisticated enough to figure out which key you're pressing to turn the computer on.Use the Power switch... Makes no sense you would need a keyboard switch for this...It would seem that you are using the laptop on mains power so battery life isn't an issue, and Windows can be set to leave a USB device powered permanently (instead of putting the ports to sleep) and in this case you can set the USB port/keyboard to be powered and should be able to resume from sleep or hibernation modes... maybe.Quote from: foxidrive on October 09, 2012, 08:35:24 AM It would seem that you are using the laptop on mains power so battery life isn't an issue, and Windows can be set to leave a USB device powered permanently (instead of putting the ports to sleep) and in this case you can set the USB port/keyboard to be powered and should be able to resume from sleep or hibernation modes... maybe. That's fine if he's in sleep (and maybe in hibernate, but i kindof doubt that one), but when he shuts down his computer? Maybe it's best if the OP just leaves the computer on and goes to sleep, but never as far as hibernate.Quote from: patio on October 09, 2012, 07:50:33 AM Use the Power switch...Quote from: patio on October 09, 2012, 07:50:33 AM Use the Power switch... He wants to leave the laptop closed and under the DESK, so he won't have access to the power switch; that's why he wants to do it with a USB keyboard. I think it's quite ridiculous myself...There is Wireless Wake-on-LAN (see http://technet.microsoft.com/en-us/library/ee851581%28v=ws.10%29.aspx) but yeah, it's for a pretty specific use case.There is a mode called hybrid sleep which acts like hibernation but will wake up as if sleep was used. I assume that a key press will wake it up from hybrid sleep if the BIOS options are set appropriately also, maybe after setting the USB KB to be permanently powered. Quote None of all you've said here didn't work, except one thing that I didn't knew to give it a go, it's what foxidrive said: Quote from: foxidrive on October 10, 2012, 03:11:47 AM There is a mode called hybrid sleep which acts like hibernation but will wake up as if sleep was used. I assume that a key press will wake it up from hybrid sleep if the BIOS options are set appropriately also, maybe after setting the USB KB to be permanently powered. I've looked into BIOS too, but there weren't any settings to help, and that's because, I think, it's mainly a laptop, actually ASUS X50GL.Go into Win7 control panel > Power options and used the advanced settings to ensure that hybrid sleep is enabled, and try it.It worked, so... thank you all, especially foxidrive. Have a nice day. |
|
| 7112. |
Solve : For loop with xcopy? |
|
Answer» I've got a directory with sub directories like this: |
|
| 7113. |
Solve : Batch asking for drive letter,...? |
|
Answer» Hi, hope someone can help me with this problem: which batch command must I USE so the program asks for input (I want to type in the letter of the mapped drive) and uses it to copy files to the specified location - e.g.: I plug in an USB stick (drive is mapped and provided with a drive letter), run the batch file, give input about the drive letter, program uses the correct path. |
|
| 7114. |
Solve : bat scipt to input text from another file? |
|
Answer» im not very GOOD with this but can SOMEONE help me with the following. i'm trying to do something with mame arcade driver files. i have a text file names drivers.txt with words listed like below... worked pperfect thank you so much. if dont mind me asking what is everything in the first line doing. and thank you againFrom the FOR help. Code: [Select]FOR /F ["OPTIONS"] %variable IN (file-set) DO command [command-parameters] filenameset is one or more file names. Each file is opened, read and processed before going on to the next file in filenameset. Processing consists of reading in the file, breaking it up into individual lines of text and then parsing each line into zero or more tokens.If you need more info on for loops, type 'for /?' in cmd, to get a 3 page explanation on the different types and how they work. |
|
| 7115. |
Solve : Batch Script to Delete The Oldest Folder With a Specifc Name? |
|
Answer» I spent a little time on this one a can't seem to find exactly what I need. I don't have anything to OFFER because I'm truly stumped. I have 3 folders named like this: Foxidrive. Thanks, I modified it to -d It's not creation date though, and that could be what the OP wants. This is the same thing but sorted by creation date. Code: [Select]@echo off for /f "delims=" %%a in ('dir "rox*" /t:c /a:d /o:-d /b') do set "folder=%%a" echo rd /s /q "%folder%" pause And yes, foldernames with ROX-YYYYMMDD are certainly preferable to sort by.Thank you! Works like a charm. I appreciate it. It's inspired me to take it a step further. How can I run the loop against a text file that contains a list of servers? Text file will include computer names: Computer1 Computer2 Computer3 etc. . . . Do I SIMPLY place the path to the text file in the parenthesis ("" ' dir "Rox*" . . . )? Thanks again, MJPerhaps I can nest the for loops like this: Code: [Select]For /F "Tokens=*" %%I IN (textfile.txt) DO ( for /f "delims=" %%a in ('dir "\\<path-to-\Rox*" /t:c /a:d /o:-d /b') do set "folder=%%a" rd /s /q "%folder%" Will that work? |
|
| 7116. |
Solve : Need to echo two inputs to a batch program? |
|
Answer» Hi All, we'd need to see the relevant portions of the perl script. Agreed. Here is a simple perl script that accepts 2 inputs from STDIN (the keyboard) waiting each time for ENTER. $userinput1 = <STDIN>; $userinput2 = <STDIN>; print "User input 1 $userinput1\n"; print "User input 2 $userinput2\n"; print "OK\n"; if I do this... @echo off echo X> test.txt echo Y>> test.txt <test.txt C:\Perl64\bin\perl.exe test.pl I get this... User input 1 X User input 2 Y OK Noting that the .plx extension is commonly used on Windows systems to associate Perl files with the Perl interpreter so, if the association exists, we can actually do this <test.txt test.plx |
|
| 7117. |
Solve : The handle could not be duplicated during redirection of handle 1? |
|
Answer» So i'm trying to WRITE a batch file that will write "0| | |#start" into a file called &%plist%.list where %plist% is a previous input. Why do you want to use an ampersand for the beginning of the file name? Indeed. The ampersand is not called a "poison character" for nothing. Filenames with an ampersand (or a caret) are parsed OK when typed from the command prompt but if you try to drag-and-drop such files they need at least one space, otherwise you will find out about a long-standing bug in Windows drag and drop functionality. If a file path contains at least one space, then Windows automatically encloses the path in quotes so that it gets parsed properly. Windows should do the same thing if the file path contains & or ^, but it does not. This is true up to and including Windows 8. Also such filenames make batch processing more COMPLICATED and are usually avoided by experienced batch script writers. I was using it for a sorting mechanistic, instead of jumping in and out of folders all the time, but any character past $ on the number line will do. ($ are my batch files.) Btw: I didn't know about the & and the command line stuff, Thanks.Quote from: Lemonilla on October 14, 2012, 08:23:59 AM any character past $ on the number line will do. ($ are my batch files.) A lot of people use the underscore character _ |
|
| 7118. |
Solve : Is it possible?? |
|
Answer» Hello guys, i just JOINED this site a few minutes but i have something bothering me; I would like to know if it is possible to create a chat on command prompts via internet. Thanks for your replyCommand Prompt does not support very MUCH networking. |
|
| 7119. |
Solve : Small hard drive cloning? |
|
Answer» Not to clone, just to copy. Is the syntax alright, then? No- from xcopy /?: Quote /EXCLUDE:file1[+file2][+file3]... So if you wanted to exclude the windows directory, you would need to put \windows\ in a separate text file, and specify that text file to xcopy. FWIW this probably wouldn't work. Many files in the User profile are opened exclusively by windows (such as the registry data files), in addition to programs themselves having locked files*, as well as things such as the "System Volume Information", which will cause a permission error when xcopy tries to inspect it. Possibly the same story with the pagefile (which would be pointless to copy anyway). You can probably make a good sized text file, just with the list if necessary exclusions. *It is a common misunderstanding that a program having a file open prevents it from being copied. It is fully possible for programs to open files in a shareable manner, but some programs are written lazily; essentially when opening the file the program has to say what other programs can do with it (read, write, delete, etc). If the program doesn't say anything about it, Windows takes the safe route and locks the file for the duration of the time the program has it open, and prevents other programs from accessing it. From typing "help xcopy" in the XP-DOS prompt I got the same result (lazy of me). But I like your answer. And if I understand it correctly, the syntax (i.e order of switches) is still correct except for the specification of the excluded files. But why would I need to put \windows\ in a separate text file? I don't even understand what you mean by this. Reading the xcopy help tells me that it is actually possible to run: xcopy c: e: /s /exclude \windows\ Because windows already is a root directory. Best regards, Roger PS While I was testing and LEARNING about xcopy I discovered a fantastic thing. You were actually able to copy an open file! And windows sucks when it comes to that kind of SIMPLE and good features. When I discovered this I naively thought that it also could copy itself Quote from: rogerk8 on October 17, 2012, 11:30:53 AM And if I understand it correctly, the syntax (i.e order of switches) is still correct except for the specification of the excluded files.the /EXCLUDE switch is documented in /?- it specifies a list of files containing strings. The rest of the paragraph describes the format of the text file as well as how the strings within the file will be parsed and compared with each filename. eg. "When any of the strings match any part of the absolute path of the file to be copied, that file will be excluded from being copied. For example, specifying a string like \obj\ or .obj will exclude all files underneath the directory obj or all files with the .obj extension respectively." is referring not to the strings provided on the command line, but rather how strings should appear in the text files specified in the /exclude switch. Quote Reading the xcopy help tells me that it is actually possible to run:/exclude is documented as accepting text files that contain strings, not the strings themselves. using the above will likely give you a message of the sort Code: [Select]Can't read file, \windows\ 0 File(s) copied Quote And windows sucks when it comes to that kind of simple and good features.It has nothing to do with Windows itself. When an application opens a file, it is supposed to specify a "Share mode"; that is, how other programs can use that file while it's open. (whether other files can read, write, or delete it are separate, so a program could lock file writes but allow other programs to read the file while it has it open). If the program opens a file but doesn't specify a share mode, Windows decides that caution is the better part of valour and prevents Reads, Writes, and Deletes, effectively locking the file until the application closes it. Another interesting point: some people occasionally have issues where Explorer.exe keeps a file open. This is not, however, Windows Explorer that is keeping the file open, but rather "Shell EXTENSIONS" which explorer loads. The result is that the shell extension, usually installed as part of a third party program, will open the file, but not specify a share mode, so the file get's locked; and then it never closes it. The result is that Explorer (which is the associated process) get's blamed. It's not really a bug in explorer, but a bug in an extension. Quote When I discovered this I naively thought that it also could copy itself It works for me: Code: [Select]Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Windows\system32>xcopy xcopy.exe C:\xcopy.exe Does C:\xcopy.exe specify a file name or directory name on the target (F = file, D = directory)? F C:xcopy.exe 1 File(s) copied C:\Windows\system32> My absolute favorite Quote of this entire 2 page Topic is from the topic starter... Quote I rest my caseQuote from: patio on October 17, 2012, 04:40:44 PM My absolute favorite Quote of this entire 2 page Topic is from the topic starter...resting one's case before putting forth the arguments that make it is an effective debate strategy. As long as nobody notices, I suppose.His quote...not mine. But point well taken.Quote from: patio on October 17, 2012, 06:22:57 PM His quote...not mine. Sorry, I was referring to it's use elsewhere.Have I understood you correcly BC_Programmer that if I just put the actual expression \windows\ in a text file f.i called excluded.txt and store this in the root I could run xcopy c: e: /s /exclude \excluded.txt\ ? Actually, the number of folders in the root seldom are that many so you can actually copy them manually without that much of an effort Take care! Best regards, Roger PS Thanks for "I rest my case" (if I understand english correctly...)Quote from: rogerk8 on October 18, 2012, 01:35:52 PM Have I understood you correcly BC_Programmer that if I just put the actual expression xcopy C:\*.* E:\ /exclude:\excluded.txt would likely be what you want.One final time. While you indirectly have told me that the syntax in excluded.txt is right I could actually run: xcopy C:\*.* E:\ /exclude: \excluded.txt This is amazing! Thank you very much! Best regards, Roger PS The above command will then actually give me a simple backup. Without the commonly believed necessity of cloning. The fun thing now is that you are still able to "clone" if this is what you prefere. In that case, you should however make use of your (windows) istallation CD BEFORE the above. Please tell me that I have understood this correctly. Quote from: rogerk8 on October 18, 2012, 02:24:04 PM The above command will then actually give me a simple backup. Without the commonly believed necessity of cloning. I already mentioned some reasons this wouldn't work. It won't copy any hidden or system files (though that probably isn't desired) and it will encounter Permission errors trying to copy the registry data files in the active user profile. ANother common XCOPY problem when copying lots of files is that it encounters a Insufficient Memory error, which may be in part traced to longer file names (or possibly it creating lists of files to copy, or something to that effect). Another option worth considering, if you insist on this methodology of using a batch file, might be Robocopy. I don't think it comes with XP, but if memory serves it is available through the windows Resource Kit.Please excuse me for being so stubborn This is nowadays almost academic, but I am still curious. If I use XP-DOS and have enabled all hidden files to be visible the above command will work, or will it not? You don't have to answer this. It has no relevance anymore. People could just copy their visible root-folders by hand. But it would be nice with a simple command to do that for you. Thank you anyway for answering! Best regards, RogerQuote from: rogerk8 on October 18, 2012, 03:32:13 PM Please excuse me for being so stubborn No. type this in a CMD prompt to find out why: xcopy /? |
|
| 7120. |
Solve : I need to find a part of a text-file and displa...? |
|
Answer» I've WRITTEN a batch-file that PING a certain IP, and dump it to a textfile: "PINGRESULT.txt" |
|
| 7121. |
Solve : copy files from FTP path using windows scripting? |
|
Answer» Hi All |
|
| 7122. |
Solve : How Do I Run CMD Hidden..??? |
|
Answer» when you call "CMD.EXE /C CALC.EXE" is there any way to hide the CMD window without use of shortcut files ect.? can cmd.exe be ran hidden or not..?? well, aren't we snappy.meh, just want an answer, not the 3RD degree questionings..Quote from: gumbaz on May 18, 2010, 02:43:56 AM meh, just want an answer, not the 3rd degree questionings..Yes it is possible.and you wouldn't mind sharing that precious knowledge with me would you, good ol buddy ol pal..I have crossed swords with gumaz before, when I was Dias de Verano. He has no idea of courtesy. gumbaz, this is the way to get no answers: Quote can cmd.exe be ran hidden or not..??Quote from: gumbaz on May 18, 2010, 02:50:27 AM and you wouldn't mind sharing that precious knowledge with me would you, good ol buddy ol pal..In fact, I'd rather not share that knowledge, and I have a good idea that neither will BC.Yes bro it is possible to run cmd in hidden use "QUICK BATCH FILE COMPILER" in this compiler u find a ghost run option in option. so just click there a compile and En JOY ! I HOPE U NOT MAKE ANY BAD USE !!!!!!>....Use a .vbs file to run your batch file. Example: HideBat.vbs Code: [Select]CreateObject("Wscript.Shell").Run "FILE_1.bat",0,True "FILE_1" change to name of your .bat file, that you wish to run hidden. ************************* or http://www.ntwind.com/software/hstart.html http://gallery.technet.microsoft.com/ScriptCenter/8bbed56f-a7aa-491f-a296-687dd96098a3/The vbs isn't hidden, however. Graveyard post. The OP might be dead by now. cmdow can run a task silently - some AV programs flag it as a threat because of that. |
|
| 7123. |
Solve : File Size Handling in Dos? |
|
Answer» Need Dos Batch script code for handling file size. Need way to obtain file size compare it and then goto copy mode 2 different directories.Why is it that poster's refuse to disclose their OS? Is it some kind of state secret? Why is it that poster's refuse to disclose their OS? Is it some kind of state secret? NULL is not a CMD processor keyword. CMD will SEE NULL as a literal and %~z1 will presumbably resolve to a numeric value. The chance of a equal compare are pretty slim. You MAY want to add a not exist test for %1 in the getsize routine to error out; otherwise any subsequent compare with %/size% will fail. Note: One line SETS the /size variable, but another checks the size variable. They are not one and the same. Hope this helps. |
|
| 7124. |
Solve : How to do BATCH FTP? |
|
Answer» Please Help Me... I am a newbie. I have two windows servers, and I want to transfer files automatically from server 1 to server 2. Which server will I install the IIS? What script can I use to transfer files? Which server will I run the script? Please help me,You don't need IIS or ftp to trasfer files between servers if they are on the same network. You can use any of the copy commands builtin to windows to do that. Copy, Xcopy or Robocopy.I'm so sorry, I am really new to this things, can you please let me know how to do any of those, thanks so much.Here is an example: Thanks so much, it really works great.That is BEYOND the scope of this FORUM category. |
|
| 7125. |
Solve : Numerical Overlay? |
|
Answer» Good Afternoon, |
|
| 7126. |
Solve : error 35 general protection? |
|
Answer» Hello everyone, I just REGISTERED, I hope to post in the right place So I start a setup.exe file that tells me erroe [35] general protection FAULT in setup.exe 0097:4 C58 code 0000 SS 0087 ds 0087 as 0107 |
|
| 7127. |
Solve : run two programs? |
|
Answer» HI i want to RUN TWO PROGRAMS the problem that the second programn ot start until i CLOSE the first one bat file: -------------- prog1.exe prog2.exe ------------- i need to close first , and what if i want to run in more tiomes simultnniosly |
|
| 7128. |
Solve : changing multiple filenames in DOS?? |
|
Answer» Hello, |
|
| 7129. |
Solve : Using if statement in batch file? |
|
Answer» Hi! |
|
| 7130. |
Solve : DOS command to connect a given adapter to a specific wireless network? |
|
Answer» Is there one or more DOS-level command(s) to switch from one wireless network to another? |
|
| 7131. |
Solve : Need a batch script to find and replace values in all files in folder/sub-folder? |
|
Answer» Hello, |
|
| 7132. |
Solve : Adding a counter to FOR loop? |
|
Answer» I am TRYING to make a script to update a mac address for a device, i used the following |
|
| 7133. |
Solve : Batch file error? |
|
Answer» OMG! I have seen some pretty poorly written batch files but this just became #1 on my list of worst batch code I have ever seen.Here's a version of your batch file which is EASIER to debug, while still allowing individual shutdown and offline messages. Round about line 17,795 the label names and workstation numbers seem to get out of step.... There is a set of stations which are processed as a set, and several of those. Quote from: Nobody is going to be able to debug this. I had a go. Using a sed tool and extracting the essential bits and reformatting it, adding some IFs to the working bit. Foxidrive I commend you for tackling this, especially since the mood you have been in lately. Did you win the lottery down there.Quote from: Squashman on January 18, 2014, 06:55:16 PM Foxidrive I commend you for tackling this, especially since the mood you have been in lately. Did you win the lottery down there. YES!!! Last night. $18.85 The code could be simplified further - there are settings for times that could probably be all using one figure, but I left the operation mostly alone. In the stations that are processed as one set, each subsequent PC in the set gets an extra second delay to shutdown, for no good reason that I can see. PC one gets 10 seconds delay and PC ten gets 20 seconds delay.$18.85 ! ! ! Dinner's on foxidrive ! And Kudo's to you guys and the work you do here in the batch section...lemonilla you squash Salmon etc. etc....I agree with you on the shutdown time. I see no reason for that.Thank you all Dear brothers, that' is not about the employer, but about me where I want to Make a better place for myself among my colleagues and I'm trying to make a program abbreviated time and effort to gain access to network devices and deal with them instead of dealing with the ready-made programs that make us, we look for every time device computer and then press right click then CHOOSE connect then restart i want to do this in one step, It's write their hostname, and then press Enter And as you said Squashman my way in write this batch file is pretty poorly i'm just beginner but i will try and try many times till be my batch is the best in use Moreover,you should help and teach me better than laughing of me. thanks for all special thank for foxidrive for your best; And if any one has any soft COPY information about Batch's learning PLEASE, send it to me and i'll try to do all my bestQuote from: Abo-Zead And if any one has any soft copy information about Batch's learning please, send it to me and i'll try to do all my best Try looking at: http://ss64.com/nt/ That's the site I used to learn batch. Quote from: patio on January 19, 2014, 07:18:55 AM And Kudo's to you guys and the work you do here in the batch section...lemonilla you squash Salmon etc. etc....It took me over 15 minutes to figure out you didn't mean that I was squishing Salmon with something... Quote from: Lemonilla on January 19, 2014, 02:42:18 PM It took me over 15 minutes to figure out you didn't mean that I was squishing Salmon with something... With what might you have been squishing me? (Do I want to know?) You can learn a lot by participating in forums like these. Read the threads and learn from them and eventually you will be answering questions instead of asking questions. Dostips.com also has plenty of tutorials as well. |
|
| 7134. |
Solve : DATA TRANSFER PROBLEM? |
|
Answer» I have an old computer whith a floppy and a HD 20MB, running MsDos 3.30. |
|
| 7135. |
Solve : Set Path from cmd line? |
|
Answer» Hello , You can add a folder to the %PATH% environment variable like this Thank you Salmon, that was great, now i can set path to any folder from the cmdline.Too bad its not permanent.Quote from: Floppyman on October 20, 2012, 12:43:04 PM Too bad its not permanent. In XP you can do that like this Right-click My Computer, and then click PROPERTIES. Click the ADVANCED tab. Click Environment variables. Click the Path variable Click Edit to change its value, adding your folder to the start or end, using a semicolon as separator as I showed above. Then keep clicking OK buttons to go right back out For Win 7 and Vista?, and when using the resource kit in XP there is a command called SETX which will set a variable in the master environment from the command LINE, too.Thank you Salmon, but i know the second way i.e., from My Computer and then properties, i just wanted to know from the command line . Any ways this site is great, great place to share knowledge. Thanks once again.Quote from: Floppyman on October 21, 2012, 12:23:58 PM i just wanted to know from the command line As foxi said, setx.exe is the command line tool Windows XP Service Pack 2 Support Tools http://www.microsoft.com/en-us/download/details.aspx?id=18546 |
|
| 7136. |
Solve : Change my MAC address via batch file...? |
|
Answer» I want to do this every 30 minutes or so. |
|
| 7137. |
Solve : Copy Doc files from Documents and Settings folder !!!? |
|
Answer» Hello agian, I believe this will work: Hello John, i did as you did and gave the path right except i wanted the doc files in c:\Document and Settings\My Documents\ and c:\Document and Settings\My Documents\downloads to copied on f: it didn't work. Sadly, however i came up with a solution and gave this command: Code: [Select]@ECHO off xcopy /y "%userprofile%\Desktop\*.doc" f: xcopy /y "%userprofile%\My Documents\*.doc" f: xcopy /y "%userprofile%\My Documents\Downloads\*.doc" f:This worked like a charm every doc file containing in My document and Download folder as well as the Desktop got copied in F: To go a step further i went and gave the same command and replaced the *.doc with *.txt in another line and it copied the txt file as well. Code: [Select]@echo off xcopy /y "%userprofile%\Desktop\*.doc" f: xcopy /y "%userprofile%\My Documents\*.doc" f: xcopy /y "%userprofile%\My Documents\Downloads\*.doc" f: xcopy /y "%userprofile%\Desktop\*.txt" f: xcopy /y "%userprofile%\My Documents\*.txt" f: xcopy /y "%userprofile%\My Documents\Downloads\*.txt" f: Anyways John thanks for trying to HELP, i just saw the environment variable that was set for Document and Settings folder along with the user. From their it was all good. p.s: PATTING myself. Good work. You can use a for in do loop to copy multiple filespecs, like so: Code: [Select]@echo off for %%a in ( doc txt swf ini avi mp3 ) do ( xcopy /y "%userprofile%\Desktop\*.%%a" f: xcopy /y "%userprofile%\My Documents\*.%%a" f: xcopy /y "%userprofile%\My Documents\Downloads\*.%%a" f: ) |
|
| 7138. |
Solve : saving? |
|
Answer» My windows ME won't boot. |
|
| 7139. |
Solve : Batch File save? |
|
Answer» I am looking for HELP in CREATING a batch file that will save a single file to multiple folders. |
|
| 7140. |
Solve : Compare Lines Within a Text File? |
|
Answer» Hello, |
|
| 7141. |
Solve : Read file name create folder and move file to folder.? |
|
Answer» I want the batch file to delete it's after wards. I want the batch file to delete it's SELF after the job is completed.At the end of the batch file add: Code: [Select]del "%~F0" 2>nul See if that works to delete the batch file. Don't be a prat and play tricks on someone with it though - otherwise Satan will hunt you down and play the bongos on your balls.Nothing foolish... To old for that crap... Thank you! |
|
| 7142. |
Solve : Move a file that begins with A or a, to a subfolder? |
|
Answer» I would like to know how to Move all folders in a subfolder that start with an "A or a" to ANOTHER folder found in a subfolder called A. EDIT: The subject says files but your description says folders. Make up your mind. Sorry for the confusion. Should have been folders Not Files... Mind moving a mile a minute... Thank you for the response! Quote from: foxidrive on October 21, 2012, 10:14:44 PM EDIT: The subject says files but your description says folders. Make up your mind. Parent Directory folder containing subfolders folders that begin with letters. Move the sub folders to matching first letter folders located in a sub folder on the hard drive. Again sorry for the confusion. I will be well thought out before I post again.Try that batch file in your reply then. It will move all the folders into one set of folders in the same directory. They will be called "!folder a" "!folder b" "!folder c" "!folder d" etc.I already have existing folders lettered from a-z. I just am trying to copy folders to those in a different location that already exist. Code: [Select]@echo off for %%a in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do move "%%a" "d:\backup\folder\" |
|
| 7143. |
Solve : copy by date time stamp? |
|
Answer» Stumped and here for ASSISTANCE... Trying to figure out a way to just copy files of a specific date no matter the time stamp, and I am thinking I can do this through parsing a DIR output for files of the specific date no matter the time stamp, write this to a file, and then import line for line which ones to copy although I am stumped in making this happen in batch without resorting to a programming language. I am stumped in making this happen in batch without resorting to a programming language.Often this is a policy issue. What is your workplace policy ? Does your workplace prohibit using programming languages to do the job? And if you really want to solve this real world problem its still more appropriate to sell the idea of using a programming language (benefits vs costs) to the management. Or is this just some "pet hobbyists" task that you just thought of doing with just using batch? Programming languages does provide convenient apis for stat-ing files and getting the date of files. If you really wish to do it natively, the DIR command can display creation/modified times but you will have to spend more time parsing out the date portion. vbscript (powershell) may lighten the task for you.Look at 'xcopy'. Or you could loop through 'dir', but that would take a while if you had more than a hand full of files. Not tested: (will not work if you're files have spaces in the name) Code: [Select] :: This is your destination folder's pathway set "copy_destination=myDestination" :: This is the date it will look for (formatted just like in 'dir') set "copy_date=myDate" :: Loops through the output of 'dir' while ignoring directories until the date equals %copy_date% :: Then it copies the 5th segment to %copy_destination% for /f "delims= " %%A in ('dir /a:-d') do ( if "%%A"=="%copy_date%" do copy "%%E" "%copy_destination%\%%E" ) EDIT: I posted the info below based on only SEEING a response initially of Quote Look at 'xcopy' After I posted this response below I saw you added more info to above post. Hello Lemonilla ... I looked at xcopy before posting for assistance, and the problem with it is that the only switch that is close to what I want to do that I know of is /D:m-d-y , but this switch does not just copy the files on that date that is entered but it completes the following process: Copies files changed on or after the specified date. And I just need to fetch the files for a specific date instead of all files from that date onwards. Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. Code: [Select]C:\Users\dave>xcopy/? Copies files and directory trees. XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W] [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U] [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/B] [/EXCLUDE:file1[+file2][+file3]...] source Specifies the file(s) to copy. destination Specifies the location and/or name of new files. /A Copies only files with the archive attribute set, doesn't change the attribute. /M Copies only files with the archive attribute set, turns off the archive attribute. [b] /D:m-d-y Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time.[/b] /EXCLUDE:file1[+file2][+file3]... Specifies a list of files containing strings. Each string should be in a separate line in the files. When any of the strings match any part of the absolute path of the file to be copied, that file will be excluded from being copied. For example, specifying a string like \obj\ or .obj will exclude all files underneath the directory obj or all files with the .obj extension respectively. /P Prompts you before creating each destination file. /S Copies directories and subdirectories except empty ones. /E Copies directories and subdirectories, including empty ones. Same as /S /E. May be used to modify /T. /V Verifies the size of each new file. /W Prompts you to press a key before copying. /C Continues copying even if errors occur. /I If destination does not exist and copying more than one file, assumes that destination must be a directory. /Q Does not display file names while copying. /F Displays full source and destination file names while copying. /L Displays files that would be copied. /G Allows the copying of encrypted files to destination that does not support encryption. /H Copies hidden and system files also. /R Overwrites read-only files. /T Creates directory structure, but does not copy files. Does not include empty directories or subdirectories. /T /E includes empty directories and subdirectories. /U Copies only files that already exist in destination. /K Copies attributes. Normal Xcopy will reset read-only attributes. /N Copies using the generated short names. /O Copies file ownership and ACL information. /X Copies file audit settings (implies /O). /Y Suppresses prompting to confirm you want to overwrite an existing destination file. /-Y Causes prompting to confirm you want to overwrite an existing destination file. /Z Copies networked files in restartable mode. /B Copies the Symbolic Link itself versus the target of the link. /J Copies using unbuffered I/O. Recommended for very large files. The switch /Y may be preset in the COPYCMD environment variable. This may be overridden with /-Y on the command line. C:\Users\dave>Thanks Lemonilla for showing a potential method to use. I will give that a try and report back. I am guessing that: Quote :: Loops through the output of 'dir' while ignoring directories until the date equals %copy_date% ...means that it will continue to loop after the files matching the date are copied from the specific date requested until DIR is exhausted of all files which the others would be a date not equal to the date to fetch, and if that is the case then this is a perfect solution to making this happen in batch without over complicating it by using a language to interface with command shell/DOS. I was starting to think that I was going to have to echo out the DIR and > to file, and then use C++ or Perl to then read in the DIR output file and look line for line for files of that specific date and build a list of files to copy in another file. And then process the list of files that were generated to complete the copying process until EOF. Your method as it is appears to be the best method without over complicating it as I would have ended up doing without your help... THANKS SO MUCH !!!! The format of the last modified timestamp varies from region to region but forfiles is one way to do it. This copies *.txt files in the current folder to "d:\target folder\" if the modified date is today (it just echoes the copy commands atm) Put an echo before the if command to see what format the date is in for your region. Code: [Select]@echo off FORFILES /M *.txt /c "cmd /c if "@fdate"=="17/01/2014" echo copy @file 0x22d:\target folder\0x22" 2>nul Code: [Select]@echo off FORFILES /M *.txt /c "cmd /c if "@fdate"=="17/01/2014" echo copy @file [b]0x22[/b]d:\target folder\[b]0x22[/b]" 2>nul Curious as to what 0x22 is? Is this a misinterpreted character or is 0x22 intentional? Found the answer to this looking at forfiles/? as seen below. Quote To include special characters in the command Never worked with forfiles command before. Very Interesting!!! My date format is MM/DD/YYYY so I am assuming that "@fdate"=="17/01/2014" is just set to 01/17/2014 if I wanted files last edited on today to be copied for example. Code: [Select]C:\Users\dave>forfiles/? FORFILES [/P pathname] [/M searchmask] [/S] [/C command] [/D [+ | -] {MM/dd/yyyy | dd}] Description: Selects a file (or set of files) and executes a command on that file. This is helpful for batch jobs. Parameter List: /P pathname Indicates the path to start searching. The default folder is the current working directory (.). /M searchmask SEARCHES files according to a searchmask. The default searchmask is '*' . /S Instructs forfiles to recurse into subdirectories. Like "DIR /S". /C command Indicates the command to execute for each file. Command strings should be wrapped in double quotes. The default command is "cmd /c echo @file". The following variables can be used in the command string: @file - returns the name of the file. @fname - returns the file name without extension. @ext - returns only the extension of the file. @path - returns the full path of the file. @relpath - returns the relative path of the file. @isdir - returns "TRUE" if a file type is a directory, and "FALSE" for files. @fsize - returns the size of the file in bytes. @fdate - returns the last modified date of the file. @ftime - returns the last modified time of the file. To include special characters in the command line, use the hexadecimal code for the character in 0xHH format (ex. 0x09 for tab). Internal CMD.exe commands should be preceded with "cmd /c". /D date Selects files with a last modified date greater than or equal to (+), or less than or equal to (-), the specified date using the "MM/dd/yyyy" format; or selects files with a last modified date greater than or equal to (+) the current date plus "dd" days, or less than or equal to (-) the current date minus "dd" days. A valid "dd" number of days can be any number in the range of 0 - 32768. "+" is taken as default sign if not specified. /? Displays this help message. Examples: FORFILES /? FORFILES FORFILES /P C:\WINDOWS /S /M DNS*.* FORFILES /S /M *.txt /C "cmd /c type @file | more" FORFILES /P C:\ /S /M *.bat FORFILES /D -30 /M *.exe /C "cmd /c echo @path 0x09 was changed 30 days ago" FORFILES /D 01/01/2001 /C "cmd /c echo @fname is new since Jan 1st 2001" FORFILES /D +1/16/2014 /C "cmd /c echo @fname is new today" FORFILES /M *.exe /D +1 FORFILES /S /M *.doc /C "cmd /c echo @fsize" FORFILES /M *.txt /C "cmd /c if @isdir==FALSE notepad.exe @file" C:\Users\dave>Quote from: DaveLembke on January 16, 2014, 08:01:14 PM Never worked with forfiles command before. Very Interesting!!! It's a useful utility, but a bit slow to TRADE off it's usefulness. Put echo before the if and run it, you will see the strings echoed to the console. The funny part is that I used 0x22 because of the quotes, but totally missed the fact that I'd used normal quotes for the string compare - and it works. I didn't know I could embed quotes inside the cmd tail - but now that I tested further if I put quotes where 0x22 are then it doesn't work. bizarre.In reference to Lemonilla's batch: Code: [Select]:: This is your destination folder's pathway set "copy_destination=myDestination" :: This is the date it will look for (formatted just like in 'dir') set "copy_date=myDate" :: Loops through the output of 'dir' while ignoring directories until the date equals %copy_date% :: Then it copies the 5th segment to %copy_destination% for /f "delims= " %%A in ('dir /a:-d') do ( if "%%A"=="%copy_date%" do copy "%%E" "%copy_destination%\%%E" ) I edited it as: Code: [Select]@echo off :: This is your destination folder's pathway set copy_destination=c:\test123 :: This is the date it will look for (formatted just like in 'dir') set copy_date=01/01/2013 :: Loops through the output of 'dir' while ignoring directories until the date equals %copy_date% :: Then it copies the 5th segment to %copy_destination% for /f "delims= " %%A in ('dir /a:-d') do (if "%%A"=="%copy_date%" do copy "%%E""%copy_destination%\%%E") And I get the following error? Quote C:\test321>copytest Googled this error and nothing on this problem with 'do' just other stuff following same error BTW I am using Windows XP Home SP3 for OS. Also tried out foxidrives solution and got a SIMILAR internal/external command problem for 'forfiles' similar to 'do'problem with: Code: [Select]FORFILES /M *.* /c "cmd /c if "@fdate"=="01/01/2013" echo copy @file 0x22C:\test123\0x22">nul Quote C:\test321>forfiletest3.bat Attached pic shows source of C:\test321 attempting to copy 2 files with same date as 01/01/2013 to C:\test123. Both of these batches have been run from the C:\test321 location where the files exist to be copied from. [recovering disk space, attachment deleted by admin]Quote from: DaveLembke on January 18, 2014, 12:59:50 PM 'FORFILES' is not recognized as an internal or external command, Forfiles is not a native command in Windows XP - but is a free download from Microsoft.Ok cool. I will download it then. The other day when I looked at it I was on Windows 7 Pro, and today I am on Windows XP Home system, so I assume its bundled with Windows 7 Pro maybe but not XP. The "DO" error is because the IF command does not require a "DO".Removed 'do' and its not happy Code: [Select]C:\test321>test10.bat %Ec:\test123\%E The filename, directory name, or volume label syntax is incorrect. 0 file(s) copied. %Ec:\test123\%E The filename, directory name, or volume label syntax is incorrect. 0 file(s) copied. C:\test321> with using this: Quote @echo off Also tried rev 11 on this with : Quote @echo off and got this error: Code: [Select]C:\test321>test11.bat The filename, directory name, or volume label syntax is incorrect. The filename, directory name, or volume label syntax is incorrect. C:\test321>Missing the Tokens option with the for command. |
|
| 7144. |
Solve : fdisk? |
|
Answer» fdsk error ,error reading FIXED DISK, trying to FORMAT but can't,helpok.Try running scandisk to fix any BAD sectors. |
|
| 7145. |
Solve : DOS hidden FTP? |
|
Answer» Hello, |
|
| 7146. |
Solve : invailid what ?? |
|
Answer» what does invalid setting in the ms-dos.sys FILE: org_drag _bootmeunu= mean and how do I fix it i have windows 98?!LOOKS like a spurious entry in msdos.sys - MAKE a copy of the entire msdos.sys file for backup, edit your msdos.sys file & delete the entry, save the file and reboot. |
|
| 7147. |
Solve : Installing local printer from network using command line with a silent installer? |
|
Answer» I am primarily a hardware guy but now been faced with having to change our printing from the server to local printing due to a new application we are using. Thank you and you are correct. I am a moron....... I had my head so wrapped around this rundll32 printui.dll, printuientry stuff for a script I was working on, I was making it more than what it was. Thank You for the slap in the face. Sometimes I guess we all need it from time to time. And yes that got me what I needed.I had a moment with an FTP script yesterday. Couldn't figure out why it wouldn't automate. Helps if you use the correct options. I do it all the time every day but yesterday that brain cell must have gotten stuck in the off position. Happens to all of us.BTW Squash didn't slap you...he simply tapped you on the shoulder... |
|
| 7148. |
Solve : invalid setting in the ms-dos.sys file: org_drag _? |
|
Answer» what does INVALID setting in the ms-dos.sys FILE: org_drag _bootmeunu= mean and how do i fix it and how do i GET out of safe mode when WINDOWS does START? |
|
| 7149. |
Solve : Time for a new OS!? |
|
Answer» Microsoft sucks! Let's assume that each instruction takes an average of three clock cycles. This would mean that the processor is actually processing 1 BILLION instructions every second!Much of the time required to boot Windows (or any modern OS) is due to I/O wait states. It doesn't matter if your CPU can process 1 million or 20 billion instructions a second if the data required for those instructions is sitting on a hard disk; and memory is still only a fraction of the speed of the CPU itself. Quote Hello, there's got to be something wrong here.It doesn't take several minutes for my computer to start. Many of the systems I've seen using SSDs start from a cold boot in only a few seconds (counting from button press to either desktop or login screen). Of course we didn't have a stopwatch, but there wasn't enough time to grab a beverage. Quote And my guess is that Microsoft is using too much automaticly generated code (fundamentally incompetent programmers that is).Not sure I understand. Macro's are one of the most powerful language features available in any language. Though I'm not really sure what you are referring to here. ("automatically generated code" makes me think you think they use some sort of Wizard...) Quote Because let's face it, almost noone these days programs in the most code effective language there is, i.e assembler.Windows is written in C and Assembly, with time critical portions- such as those that are more prevalent in the kernel- being written in Assembly. Here's the issue with such a language debate. Surely, as you are evidently aware, it all started with machine language. All programs had to be written as sequences of machine language instructions (which were fed in various ways, punch cards, tapes, etc). Soon after of course people started to use a slightly more convenient form of representing machine code, Assembly language. The list of COMMANDS available is the same as machine code, of course, but instead og referring to the add instruction as 11001101 In assembly language the list of commands is the same, but you get to use more programmer-friendly names. Instead of referring to the add instruction as 11001101, or CD (in hex), you get the privilege of calling it add. The problem with machine and assembly language is triplefold- first, they can only do, fundamentally, very simple things. If you wanted to tell a computer to beep 10 times, there is not likely to be a machine instruction to do something n times, So of you want to tell it to do something 10 times using machine instructions, you might have to do something equivalent to: Code: [Select]put the number 10 in memory location 0 a if location 0 is negative, go to line b beep subtract 1 from the number in location 0 go to line a (Obviously this isn't really machine code, but the point is that assembly/machine language works at a very base level of instructions.). Also remember I said triple fold- second, we have the issue of code readability and discovering bugs. The above psuedo-representation has a bug, for example. Third, the problem is that today not only are processors extremely fast, but they also have multiple cores of execution; in order for a program to be written to be as fast as possible on a modern Quad-core (or more) machine, for example, it would have to exploit all the cores so they were doing as much of the work as possible. Assembly language, however, being an imperative language by design, focuses on sequences of instructions; having more than one thing occur at a time is something handled by the hardware pipeline itself (eg the Pentium processor) but actually exploiting multiple cores (each of which have their own pipelines) is up to the programmer, and doing so properly is practically out of the scope of any reasonable Assembly programmer. Additionally, the actual mechanics of parallelizing a piece of sequential code could easily be said to follow a pattern; this is something embraced by concurrent languages such as Erlang, which focus on tasks, rather than on a single sequence of instructions. These concepts, which are fundamentally a functional construct and follow in the footsteps of Lisp, are something that are practically required to properly exploit today's processors. Actually, now that I think about it, I know what you mean by Machine-generated- you are referring to compiler generated code. Higher-level languages, such as C, expand your toolbox; they let you use more powerful abstractions, such as "do this N times" rather than wimpy ones like "Add the values in these two registers" or "jump to this memory address if the previous comparison wasn't equal". The advantage here is that being able to build software out of more powerful abstractions means you have to use fewer of them. The above psuedo-machine code written in C might look like this: Code: [Select]for(int i=0;i=<10;i++) beep(); Which is easier to read, easier to edit, and has the advantage of making the bug in the previous version more clear. When you get to build your programs out of bigger concepts, you don’t need to use as many of them. Another gigantic advantage to high-level languages is that they make a program more portable. For example, if you have a program written in x86 assembly, it's going to be useless for an ARM processor or for a Motorola Processor or what-have-you. Even a language like C mitigates this because the same source can be fed into compilers for different architectures. For Windows, this meant that the codebase only needed revisions to move from 16-bit x86 to protected mode x86, and from there to 64-bit, rather than having to be rewritten entirely for each specific set of instructions (the available instructions in each mode differs). Instead, the logic about what instructions are available are simply GIVEN to the compiler and the compiler learns how to best use them; fundamentally, the act of "optimizing" assembly code is more machinations than an art; fact is that in order to properly "tune" assembly language to the point where you exceed the speed of a modern compiler, you will need to know the processor in question- how every single instruction is executed, what fiobles it has- etc. as well as spend countless hours putting that knowledge to use. The end result is that you might end up with a program that is 10% faster for 100 times the investment of man hours- repeated for the number of architectures your product is going to TARGET. And that isn't even counting the additional time required to track down bugs in such a situation. Quote I only wish the code was open source.it's Open to some people, through an NDA. It's not that INTERESTING. It definitely didn't use a wizard, though. I hope saying it's not interesting doesn't violate the source license NDA... Quote One reason is that I have a real naive dream of designing my own OS.Cool... good luck! Why would Windows being Open Source help you with a homebrew CPU, though?You are amazing BC_Programmer! Putting so much time and effort into replying to me. I am honored! I wish I had SSD-disks. These kind of disks makes my point less obvious. I know from a friend that the reason for multiple cores actually are current consumption. I was amazed to hear that but it makes sense. He said that current consumption isn't linear. It is exponential (with regard to clock frequency) The thought about this is however still the actual need for multiple cores in smartphones etc. Isn't this something like "giving up"? I can't see the development in mutiple cores. I just see the unneccesary complication. This is because I still think that the software engineers and their compilers simply generates too much irrelevant code. I think we should revert to single cored processors and make use of the one and only good designing language, assembly. I understand that it is more easily readable when stuff are written in higher languages but I can't see the user benefits. Now you have the problem with slow downloads on smartphones for instance. And what do we use there? Am I wrong if I say some rediculous 24-bit resolution for each pixel. WHY? When I attended Chalmers, I for instance had the opportunity to experiment with the bit-resolution of an audio file. CD uses 16 bits (some 65000 levels). I needed no more than 5 bits (32 levels) before I thought it sounded ok (I am not kidding). I do however think this is a "workaround" of the problem. And I think we do not need 24-bit resolution on our pictures. Maybe I'm wrong but my point is that we are sending and receiving more data than is neccesary (for a nice experience). I have f.i not understood the point of HD. Is that really neccesary? Maybe for really big screens. The point I am trying to make is that we are using too much unneccesary data at the same time as we (read Microsoft) designs programs in a not so efficient way. Maybe the programs are easy to read but you can bet that they are not optimized with regard to efficiency. They are optimized with regard to maximum shortest development time and profit. I rest my case :-) Best regards, Roger PS Thank you for your comment on my CPU project. Open souce will of cource not affect that :-) I just like open source. This is because I think information should be free. Free for anyone to use, free for anyone to start a company (with their own design). I am attaching yet another fun picture of my project (which I have been developing for 1,5 years now) [year+ old attachment deleted by admin]1) Buy a MAC 2) Switch to Linux. 3) Topic Closed.Hi! What is Alpha? Intensity, or? I thought only RGB was needed. It seems that I know less about computers than I thought. And this kind of explains it all. I do however still think that: 1) We do not need all the features a program nowadays provide (this will just make it load/start more slow than neccesary) 2) We do not need the hysterical resolution that nowadays are common (but the long-term use is hard to predict...) 3) I am not certain anymore but it seems like we could write more code-effective programs (using single cores and assembly) 4) Multiple cores are not the future in the long run (because there's a limit on how many cores you can actually use) 5) Maybe the problem (read slow computers) isn't the high-level language. Maybe the problem is badly designed compilers. I know I am being stubborn but this is what I think. My next generation of CPU (using a FPGA instead of a CPLD) I think will have a 32-bit wide address bus and 16-bit wide data bus. But if I fail at this (or maybe both) I would like to buy a similar CPU on the (second hand) market. What kind of CPU should I look for? 486? It doesn't matter if both the address bus and the data bus is 32-bit wide. But I kind of like the asymmetry because this is how my first CPU will work (if I ever get it to work, that is). Finally, you have taught me that assembly do not work so well with multiple cores. So that is another reason why I stick to my belief. I think I have said all I wanted to say. Take care! Best regards, Roger PS Attaching the schematic of my CPU. And yes, the other one above was more of a block-diagram than a picture of the actual architecture. Because I'm so bad at computers but at same time very interested (especially in hardware), could you please recommend a book I should read? It need perhaps not be for dummies but approximatelly at that level. I am very interested in hardware protocols (like the formatting of an hard drive f.i) and the way a (modern) computer actually work. All hardware considered. And drive routines (freely translated from swedish) If it isn't you Mr G, then it's got to be you Mr B! [year+ old attachment deleted by admin]The Alpha value represents the transparency of whatever colour the RGB value has returned. As for the other questions...I'll leave that to the experts.Quote from: Helpmeh on October 24, 2012, 08:27:57 PM The Alpha value represents the transparency of whatever colour the RGB value has returned. FWIW, this topic was locked and (apparently) unlocked and now he's responded to the post I made in his double-post on the same subject in this one, too (for some reason...). |
|
| 7150. |
Solve : is there any socket library for MS-DOS?? |
|
Answer» is there any SOCKET library for C PROGRAMMING in MS-DOS that is indepentant of packet driver. PLEASE get me solutions |
|