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.
| 7051. |
Solve : Extract 1st line of text file? |
|
Answer» Hello, |
|
| 7052. |
Solve : volume label help!!!? |
|
Answer» I am trying to convert my fat32 to NTFS I get the first line in (convert C: /fs:ntfs) then its SAYS |
|
| 7053. |
Solve : Minimizing a DOS window without having it shown in? |
|
Answer» How do you minimize a DOS WINDOW without having it shown in the start menu/task bar. If this was possible with a command WITHIN a batch PROGRAM, please tell me that too.dos is gayTry to redirect the file off-screen using the ">NULL" or "|NULL" [no quotes]Quote dos is gay A brilliant comment from a brilliant mind. Thank you for researching things so WELL before you post. We are all underwhelmed. |
|
| 7054. |
Solve : Display square character? |
|
Answer» So I wrote "Flood it" in batch, but I'm getting complaints that the characters I used are not easy enough to see. So I was going to try to have them appear as █ or as ▓. The issue is that those only appear as ? when I put them into cmd, and they can't be saved into a batch file. ANSI encoding changes it to this Korean looking character, which doesn't work. Is this even possible?One of the tools for DOS was a program called "Visual Basic for DOS" from Microsoft. It is no longer supported. However, it is still an excellent way to draw anything on the display of the DOS screen. One of the tools for DOS was a program called "Visual Basic for DOS" from Microsoft.This has literally nothing to do with what they are asking. Quote However, it is still an excellent way to draw anything on the display of the DOS screen.On DOS machine he wouldn't be having this problem because the US codepage by default INCLUDES ASCII drawing characters. Quote Very little attention is now given to it. But there are a few sites that provide information. Again, the full name is:It's likely that it's related to it being a 16-bit DOS program and thus not working on x64 systems at all? The only thing I can guess you are referring to is the the way Visual BASIC for DOS draws forms. But that is only useful for creating forms. It's not useful to "draw anything on the display"; though you can get that with standard BASIC outside of the Forms environment (just like any version of QuickBASIC). Quote Quotation marks are needed for a search. Even so, Google wants to equate it with Visual Basic, which it is not. Partly true. Visual BASIC for MS-DOS was released after the initial version of Visual Basic. It was not entirely compatible with Visual Basic for Windows but it was possible to have a common codebase. The primary reason is that Visual BASIC for MS-DOS was basically the next version of QuickBASIC PDS (QuickBASIC 7.1) with a Forms UI that USES extended ASCII characters to draw stacked on top. |
|
| 7055. |
Solve : Create Directory with Date? |
|
Answer» Hi all. |
|
| 7056. |
Solve : Batch file to delete unknown directories? |
|
Answer» I am trying to write a BATCH file to delete folders and files under unknown folders. I have home directories and then username for the next folder (the unknown part) then UNDERNEATH the username I have a preview folder and also files. I would like to delete the preview for all users at a specified interval. I would also like to delete the files underneath the username at a different specified interval. I do not know the usernames. Can I get a list and output to file and somehow read those into the path I would like to delete. Any help is GREATLY APPRECIATED!Unless you're are using a MS-DOS system, batch language is simply the wrong tool for this task. Yes, it can be DONE by nesting a series of FOR statements used in conjunction with DIR, DEL, RD target statements. |
|
| 7057. |
Solve : Win xp and Ms dos 7.1 on same hard drive? |
|
Answer» No MATTER how hard i try I cannot find any way to get Two os's operating harmoniously on the same partitioned hard drive. |
|
| 7058. |
Solve : Need help with a batch im making.? |
|
Answer» You can try this which works in a similar way: save it all as select.bat or similar |
|
| 7059. |
Solve : need help with a batch file that tells you last time you were on? |
|
Answer» hi.i have a LITTLE batch adventure game and there is a "info" screen.i want (if at all possible)it to display the time and date it was last used.i am new to this and will appreciate it if you could offer me an example code or tell me how to do it because i am TRYING to PRACTICE my skills.thanksMake your code create a txt file when it runs. |
|
| 7060. |
Solve : Multi change on file names? |
|
Answer» Hello FWIW Total Commander is a very capable file manager and has zillions of options you can change, and configure, starting with the colour/layout of the dual pane windows and colour of different filetypes. It remains fully functional shareware and never times outHello i know execute programs.. and still using.. have much better from totalcommander but... if i can create batch files... i can add to mouse right click.. and dont need programs... because.. i am very offen doing same works.. i wanna use with bacth command.. i will call bat files in directory and will do all works with mouse clicks. very fast and very easy.. no need programs... batch files.. fast and easy but.. i dont know create .. cant write scripts sorry...Ok. It's just that you're asking for a LARGER project than is usual and whoever helps you will need a full list of the foreign characters that you need to change, because batch can be difficult with foreign characters. You will also have to provide them with a complete list of characters you want to change, and delete, and all filespecs that you want renamed. The rar section is also not very clear to me.Please do not ask for private help via PM. This forum is for learning and solving problems for everybody. EDIT: It occurs to me that you aren't converting text files, but are changing filenames. Do a DIR /B /A-D >"input file.txt" and test that file anyway, to see if it changes the characters properly. If it does then we can take it another step. This code uses GnuSED which is a free download. It replaces the characters like this "y/abc/123/" and it is called a transliteration command: where a will be replaced with 1 where b will be replaced with 2 where c will be replaced with 3 and so on. The characters in the left side below of the y/// transliteration command are what I see in your PM. In various cases what I see may not be what you intended. Anyway, test this after downloading GnuSED using this syntax: changechar "input file.txt" "output file.txt" You will see \x22 in a few places and that is to replace the corresponding letter with a quote and that represents hex 22 in the ASCII code. Code: [Select]:: changechar.bat @echo off chcp 1252 sed -e "y/è’•—äß“”éü×ö·‘–¨ïàá«»êéôáñ—áíóñúÁé—/e---aB\x22\x22euxo-\x22-\x22iaa<>eeoan-aionuAe-/" -e "s/¿//g" -e "s/?//g" -e "s/#//g" -e "s/\$//g" -e "s/%%//g" -e "s/´//g" -e "s/&/and/g" -e "s/…/.../g" "%~1" > "%~2" pause The request follows: Quote Quote from: TosunPASA on FEBRUARY 20, 2014, 09:07:29 AMHello |
|
| 7061. |
Solve : The syntax of the command is incorrect? |
|
Answer» Quote from: Squashman on February 09, 2014, 07:15:46 AM But did you realize what your initial mistake was? I pointed it out to you clear as day with a screen shot. I'm sorry I can not understand my FAULT because I can not understand thescreen shot, please try to explain the screen shot again with clarification.There were several single form feed characters where there should not be any. Quote from: Abo-Zead on February 19, 2014, 05:13:12 PM
The screen shot shows you where all the carriage return and line feeds are in your batch FILES. Those are shown as CR and LF. As you can SEE from the screen shot you have Line feeds in the middle of your code. When batch sees a LF or CRLF combination it assumes that is the end of the command. So basically ever time you see a LF WITHOUT a CR before it, that is WRONG! |
|
| 7062. |
Solve : Adding a file to 1600 folders that have different paths? |
|
Answer» Looking for a method to put a excel file in 1600 folders (all named maintenance). The maintenance folders are in DIFFERENT paths. Looks like this, c / work / customers(around 1600 folders) / each customers folder has a maintenance folder that I would like to place the excel file in. |
|
| 7063. |
Solve : Batch command for multi files? |
|
Answer» Hello |
|
| 7064. |
Solve : Part filename to folder (dos)? |
|
Answer» Hello, You also got a batch solution on another forum. I believe i said that in my first post. The sollutions given involved Powershell. I cannot run powershell, because of a rights problem on my terminal. Quote from: foxidrive on February 18, 2014, 05:28:38 AM You failed to respond in any way at all..... I find this a little OFFENSIVE, so please clarify. In my opinion i did reply (superuser.com) on every notification/respond I got from the website/users. This script works perfect btw! Quote from: SHAPE on February 18, 2014, 06:31:30 AM I believe i said that in my first post. The sollutions given involved Powershell. Read what I wrote. You got a BATCH solution. Quote from: I find this a little offensive, so please clarify. You are offended?? You posted the question to so many places you obviously forgot to check them all. 4 Days ago. http://stackoverflow.com/questions/21774670/make-folder-from-part-of-a-filename-and-move-the-files-thereQuote from: Shape on February 18, 2014, 06:31:30 AM I cannot run powershell, because of a rights problem on my terminal.Doesn't have anything to do with rights. Powershell defaults to that setting. You just need to change the setting. http://technet.microsoft.com/en-us/library/ee176949.aspxQuote from: foxidrive on February 18, 2014, 06:43:03 AM Read what I wrote. You got a BATCH solution. You're writing as if i intentionally post my question "everywhere" but do not take the effort of answering them all. That is certainly not the case. I welcome and appriciate ideas and sollutions posted. I will respond to posts/solutions given to me, if i know how to get there. First of all, I am a "newbie" to stackoverflow.com. If I log in on Stackoverflow.com, and i want to see my posts i'm rerouted to superuser.com. I do not see the post you are refering to (see link from squashman). I also did not get an "email warning" that someone has handed me a option/sollution. Only got email warning from superuser.com. So i'm sorry that i did not respond to your sollution of batch scripting, but you offended me when you said that "i failed to respond in every way at all". I believe that i did saw every post when i log in to stackoverflow.com. It is my intention to respond to every post. I'm am gratefull for your sollution, so thank you very much. It works flawless and it makes my (working) life certainly more pleasant Quote from: Squashman on February 18, 2014, 07:34:36 AM 4 Days ago. Hello Squashman. Thanks for the link. I will look further in the powershell option.I just found your post on StackOverFlow by using a novel approach CALLED Google. |
|
| 7065. |
Solve : How to create a file sorter!? |
|
Answer» Let's say you had more then 15,000 files. Ehm.. I think Windows XP or 2K???No Version of Windows allows you to specify multiple source files with the copy command- except through the use of wildcards with the one source parameter that can be used. I was using wildcards in the original post Aww... The script has broken downhill... The "copy" should be "move" Quote from: simplyTechy100 on February 17, 2014, 05:10:22 AM I was using wildcards in the original postQuote from: BC_Programmer on February 17, 2014, 05:08:42 AM No Version of Windows allows you to specify multiple source files with the copy command- except through the use of wildcards with the one source parameter that can be used.You can only specify one source parameter. If you specify more than one source parameter you will receive a "The Syntax of the command is incorrect". All of your examples specify multiple destination filenames and do not work as a result. Quote from: simplyTechy100 on February 17, 2014, 05:12:01 AM Aww... The script has broken downhill...Move has the same limitation, and emits the same error message if you try it.Quote from: simplyTechy100 on February 17, 2014, 04:59:42 AM Ehm.. I think Windows XP and up. Or 2K and up? I don't knowSure glad you tested your code before posting it. It's true that move and copy do not accept multiple file specs, HOWEVER you can use the for instruction to feed those commands the file specs one at a TIME: Code: [Select]@echo off mkdir Documents mkdir Pictures mkdir Music mkdir Videos for %%i in (*.txt *.docx) do copy "%%i" Documents for %%i in (*.gif *.png *.tif *.tiff *.bmp) do copy "%%i" Pictures for %%i in (*.wav *.wma *.mp3) do copy "%%i" Music for %%i in (*.mp4 *.wmv) do copy "%%i" Videos Be aware those MD commands will create sub-folders under the current folder. Maybe you meant to do this. Code: [Select]for /f "delims=" %%G in ('dir /a-d /b *.txt *.doc') do copy "%%~G" DocsQuote from: Squashman on February 17, 2014, 06:10:18 AM Sure glad you tested your code before posting it. +1 Both methods worked so I went with simple. Quote from: Sidewinder on February 17, 2014, 07:01:07 AM Both methods worked so I went with simple.Your code is PROBABLY the preferred method. Just force of habit for me to always use the DIR command.Thank you everyone. I didn't even know the command for Thanks guys. Do this: Code: [Select]@echo off md Documents md Pictures md Music md Videos md Misc for %%i in (*.txt *.doc *.rtf *.docx) do copy "%%i" Documents for %%i in (*.gif *.png *.bmp *.tif *.tiff) do copy "%%i" Pictures for %%i in (*.wav *.mp3 *.wma) do copy "%%i" Music for %%i in (*.mp4 *.wmv) do copy "%%i" Videos for %%i in (*.exe *.bat *.com *.zip *.pif *.dll *.bak) do copy "%%i" MiscI added a Misc folder in case you need more stuff copied |
|
| 7066. |
Solve : Batch Files to Sort out Huge Music Collection? |
|
Answer» I have a huge music collection, albums reaching the thousands. Most of this digital music is located in folder and subfolders(alt. bitrate). I am trying to do two things. @echo off laughs are on me!!! Really don't think I have the handle on "for /r" perhaps an endless loop? This part of my request is not nearly as important as the subsubfolder move code. It would save me days, if not weeks of manual effort. Restating Problem 2: 2) This task is a tough one. Move all subfoldersof the subfolders in main_folder1 to main_folder2 main_folder_1 Sub_folder_1 subSub_folder1 Sub_folder_2 subSub_folder2 Sub_folder_3 subSub_folder3 Sub_folder_x In other words I want (subSub_folder1, subSub_folder2, subSub_folder3...) to be Moved to main_folder_2 Also Move the Sub_folder_(x) to main_folder_2 if there are no subfolder in it. Any ideas? Pardon me. May I ask a question or two? Do you: A) want to manage a huge music library with your computer? OR B) write a batch file that does a relational data base using long file names? Kept in mind, a database can have dozens of fields in one record But Windows only allows up to 255 chars in a file name. In my personal research I have never seen a functional music index made with batch files. But I don't know a lot.Maybe somebody did it on a dare! But there are lots of tools to link together files names and text. It can be done in programs like Microsoft® Access or Excel, the spreadsheet. And there is some VERSION of MySQL that runs in Windows. Did I mention iTunes? Do you ever use Winamp? Winamp Using the Library (Video) Quote from: Geek-9pm on February 12, 2014, 09:03:35 PM Pardon me. No doubt...good questions. I'm pretty sure the answer to your questions (A and B) is no. I do know of programs like WinAmp and the like to manage music libraies (frankly I wouldn't touch itunes with a 10ft pole) far too cumbersome. Each folder has a single album of songs encoded at bitrate x, and the subfolders have the same album encoded at bitrate y. I am trying to separate them into two separate collections. And with thousands of albums, this would be a pain in the ___. I want to separate them and then create databases with music management software. Show us a few sample folder structures. Use this command in a folder to get the info: dir /b /s /ad >file.txt You don't want to get it wrong, so some actual details will help to write accurate code. You can also attach a text file in a reply, if you prefer.Quote from: foxidrive on February 13, 2014, 02:26:36 AM Show us a few sample folder structures. Use this command in a folder to get the info: dir /b /s /ad >file.txt The command you offered does not produce the folder structure as needed. It is as displayed above: MusicFolder Artist1-AlbumTitle1 Artist1-AlbumTitle1 Artist2-AlbumTitle1 Artist2-AlbumTitle1 Artist2-AlbumTitle2 Artist2-AlbumTitle2 Artist3-AlbumTitle1 Artist4-AlbumTitle1 Artist5-AlbumTitle1 Artist5-AlbumTitle1 ...better yet: In this instance A-E is the main music folder, _Algol_ - Ecosphere is the sub folder, and _Algol__-_Ecosphere is the subsubfolder which needs to be moved to a new folder (in this case "A-E 160kbps") I would run the batch code for F-J, K-O, P-T, and U-Z separately. Quote from: ionic on February 13, 2014, 08:50:26 PM The command you offered does not produce the folder structure as needed. It does actually. It shows exactly the information needed, if you run it in the main music folder. Another point to be aware of is foreign characters in folder names. Batch can't handle all character sets by using one code page.Quote T:\0-Music\A - E\36 - Cocoon - SaphronThe file structure list above was posted twice, as if it wasn't long enough already! I ran the dir /b /s /ad Also, the code I wrote for the image rename sequence does not run, part of the reason could be that it skips over the :step1 i think. Test this in a folder with a few copies of your folders. When you run it in "T:\0-Music\A - E\" folder, if the current folders have any sub folders then they will be moved to "t:\moved music", as well as any folders which do not have sub folders. Code: [Select]@echo off set "f=t:\moved music" md "%f%" 2>nul for /d %%a in (*) do ( set flag=1 for /d %%b in ("%%a") do ( set "flag=" move "%%~b" "%f%" >nul ) if defined flag move "%%a" "%f%" >nul ) Test this to rename the image files. Code: [Select]@echo off for /d /r %%a in (file1.jpg) do ( if exist "%%~dpa\file2.jpg" ( ren "%%~dpa\file2.jpg" "file2b.jpg" ren "%%a" "file2.jpg" ) ) With respect to renaming the images files. Code: [Select]@echo off for /d /r %%a in (folder.jpg) do ( if exist "%%~dpa\cover.jpg" ( ren "%%~dpa\cover.jpg" "coverb.jpg" ren "%%a" "cover.jpg" ) ) This works correctly when there is both a cover.jpg and a folder.jpg in the same folder. When there is a folder.jpg only, the file is not renamed to cover.jpg When there is a cover.jpg only it renames it to coverb.jpg when it should remain as cover.jpg The following, however, does seem to do the job. Code: [Select]@echo off for /d /r %%a in (folder.jpg) do ( if not exist "%%~dpa\cover.jpg" ( ren "%%a" "cover.jpg" ) ) for /d /r %%a in (folder.jpg) do ( if exist "%%~dpa\folder.jpg" ( ren "%%~dpa\cover.jpg" "coverb.jpg" ) ) It may not be ideal, but it gets the job done. ----------------------------------------------------------------------------------------------------- With the MOVE batch file, regardless of its location it moves all folders and subfolders in the folder it resides in. Given that the batch file is located in the "A-E" folder, it should moves 1) folders that do not have sub folders and 2) if the folder has a subfolder, move it only, leaving the parrent folder intact. So, unfortunately, no go for either batch file. Thanks for the effort so far, though... I've tested this and it seems to work here - test it with some copies of your folders. Code: [Select]@echo off set "f=t:\moved music" md "%f%" 2>nul for /d %%a in (*) do ( pushd "%%a" for /d %%b in (*) do ( set "flag=1" move "%%b" "%f%" >nul ) popd if not defined flag move "%%a" "%f%" >nul set "flag=" ) pause Yes, the new code does appear to work here as well. Tried it several times. Didn't think it worked the first time. But it has not failed since, so I must not have had something right. Will try a few more times before I "hold my breath" and run it on a real folder. Will let you know. Thanks a LOT for the help. The final code I needed for the image renaming was: Code: [Select]@echo off for /d /r %%a in (folder.jpg) do ( if not exist "%%~dpa\cover.jpg" ( ren "%%a" "cover.jpg" ) ) for /d /r %%a in (folder.jpg) do ( if exist "%%~dpa\folder.jpg" ( ren "%%~dpa\cover.jpg" "coverb.jpg" ren "%%a" "cover.jpg" ) ) I'm ready to bite the bullet on a larger folder the real stuff... I ran the code(s) on the real folders and it seemed to work. I say that because some of the folders that were of a high bitrate and those of a low bitrate were in the same directory when finished. They were there only because the folder name was slightly different (one written with underscores instead of spaces). But with a little work I corrected that. So, the code did serve it's purpose well. Thanks for the help with this...! iONic |
|
| 7067. |
Solve : put my movies dates productions in ( )? |
|
Answer» Quote Backtracking a little bit - what do you mean by the above?i mean well look at example and it tells you everything we have a folder named American Beauty (1999) and inside it we have a file named American Beauty (1999).mkv Quote American Beauty (1999)\American Beauty (1999).mkvso names of folders and files inside them are similar and a question=do you have office 2007 or 2003 installed on your system? in this case before uploading each script you can test it right? just test it in a folder with a pattern like Mine(3 folders and 4 files next to each other folders are containing files with similar names of their own) well I'm not sure if error in our script occurs because of similarity of folder's name and files inside them or what i just mentioned that for you to be aware of it or maybe names hasn't got anything to do with error in script don't know Quote from: mioo_sara on February 15, 2014, 09:09:31 PM we have a folder named Your filenames and foldernames aren't the same in the examples you've shown so far. Quote from: and a question=do you have office 2007 or 2003 installed on your system? In fact I do test it by making the CSV file. I've created files using names you provided. I didn't include folders in the test to start with because folders were added afterward. Quote from: or maybe names hasn't got anything to do with error in script The names match the filespec given, and I don't know what filespecs you have used, but some names don't match the regular expression because the name must be different from what has been described. In an earlier post you showed some folders and filenames and this .CSV file was the result. It seems that the script was changed in some way because the path should not be included in line 2. Lines 4/5 and 7/8 show that you have duplicate files and folders which are not the same. Code: [Select]NUMBER,MOVIE NAME,PRODUCTION YEAR 1,"a chirismas carol 4downloads",2009 2,"a chirismas carol 4downloads\A Christmas Carol",2009 3,"Despicable.Me.2...YIFY.720p_p30download .com",2013 4,"KNOWING .BluRay.720p.x26",2009 5,"Knowing..BluRay.720p.x264",2009 6,"Prisoners Cam",2013 7,"Strangers on a Train BluRay 720p",1951 8,"Strangers on a Train BluRay",1951 9,"The Frozen Ground BluRay 720p",2013 10,"The Untouchables BluRay 720p",1987 Quote The names match the filespec given, and I don't know what filespecs you have used, well i mentioned it before(in last few post) i test it in a folder called test folder you can make it( a test folder ) and test it inside it we have 3 folders and 4 files (inside test folder) we want to make a report list out of this (test folder) and send it to excel put every unit(number of row-file or folder names-production years in a column) here you can see what we have inside test folder folders has been shown in red color we don't want program to check inside of every folder (just names of files and folders in root of test folder-we don't want any sub-folders or)..just make a report out of the main folder(test folder) and send it to excel and sort it (the way that i mentioned above) inside test folder (folders has been reded) just make a report list out of this example and send it excel Quote a Christmas carol (2009) 4downloads so we should see this list inside excel Quote In an earlier post you showed some folders and filenames and this .CSV file was the result. Code: [Select] Quote NUMBER,MOVIE NAME,PRODUCTION YEAR i all ways first try your script with the exact code that you gave me each time dear foxidrive but if there was error i remove some PARTS to find the reason error has occurred names of files( in duplicate rows) that has been changed , occurred when i removed /s i suppose ======================= but i think if you read my last post above problem can be solved easily i edited again 1- just make a report from current directory and send it to excel(no sub-folders needed to be checked) 2-you can see my files and folders in test folder above please test it Quote from: mioo_sara on February 15, 2014, 10:04:17 PM QuoteThe names match the filespec given, and I don't know what filespecs you have used,well i mentioned it before(in last few post) As it happens, you didn't mention it anywhere. I asked you if you used *.* and you said no, but you didn't tell me what you did add, or if you changed the filespec. It turns out that you gave me results from a script that you changed. If you want to FRUSTRATE someone then that's a good way of doing it. This code doesn't recurse through any subdirectories. Code: [Select]@echo off set "filespec=*.mkv *.avi *.mpg *.mp4 *.mpeg" dir %filespec% /b /a-d |findstr "([2][0][01][0-9])" >temp.txt dir %filespec% /b /a-d |findstr "([1][9][0-9][0-9])" >>temp.txt type temp.txt |repl "(.*)\(([0-9][0-9][0-9][0-9])\)(.*)\..*" "\q$1$3\q,$2" x >temp2.txt dir /b /ad |findstr "([2][0][01][0-9])" >temp.txt dir /b /ad |findstr "([1][9][0-9][0-9])" >>temp.txt type temp.txt |repl "(.*)\(([0-9][0-9][0-9][0-9])\)(.*)" "\q$1$3\q,$2" x >>temp2.txt type temp2.txt | sort |findstr /n "^" |repl ":" "," |repl " \q" "\q" x >temp3.txt >file.csv echo NUMBER,MOVIE NAME,PRODUCTION YEAR type temp3.txt >>file.csv del temp.txt temp2.txt temp3.txtQuote If you want to frustrate someone then that's a good way of doing it.me? i never tried to frustrate you or you're works dear foxidrive! in all posts you can see that i first tried your original script and then my edited one and in all posts i just displayed result of your script not mine ! here is result of new script sorry dear foxidrive in this last post i made a mistake i will test it in a few minutes worked dear foxidrive its working like a charm thank you very very much you can see the result NUMBER MOVIE NAME PRODUCTION YEAR 1 a chirismas carol 4downloads 2009 2 Despicable.Me.2...YIFY.720p_p3.com2013 3 Knowing .BluRay.720p.x26 2009 4 Prisoners Cam 2013 5 Strangers on a Train BluRay 1951 6 The Frozen Ground BluRay 720p 2013 7 The Untouchables BluRay 720p 1987 ================== but of course extensions have been removed from the list but i don't care if you want extensions then change this: Code: [Select](.*)\..*" To this by removing the 4 characters before the quote in line 5 of the script: Code: [Select](.*)" thanks dear foxidrive extensions are displayed very nice now thank you you are a professional programer i hope you be Healthy in your entire life thanks again |
|
| 7068. |
Solve : dos is gay? |
|
Answer» what the *censored* is the fuking point ms-dos sucks kock. its just a big lump of *censored* >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(LOL, well...its good for several reasons (most of which you'll probably DISAGREE with, but oh well ) 1) It's good for security reasons. If you're into security, it's good to know that with dos (batch), you can be sure that no matter what computer (PC...*nix has different commands...) your on, you can be sure you'll prevent or take what ever information you want from that computer. DOS can make some very useful (searches, moving files) things, or very HORRIBLE and STUPID things (virus', trojans). 2) Its good to know, to do little tricks with (aka, show off to your friends...see 3) 3) Well, in my old highschool, it was ok (and somewhat incouraged) to play pranks on April Fools day. So I asked the principle if it would be ok to do a prank using the computer, ignorant, he said yes. Later on that day, me and my friends used DOS to shut off all the computers at once (they were all in the same network). [I was young and stupid, and didn't realize at the time that I could affect people actually "using" the computer]. But yea, it was pretty funny to see everyone at the library peek there heads over the pc, and LOOK around. The Librarian thought it was a black out. lol. (I didn't get in trouble, as I had "permission") Ever since then, the Principle dissaloud the use of the command prompt (not to say I couldn't get into it ). 4) You can add to the autoexec.bat file to have your computer start off certain programs that you OTHERWISE would do manually (pretty much to make everyone even more lazy) 5) You can do tweaks to your computer, although you can do that much simpler/safer with other programs. Sorry it was so lengthy.Quote what the *censored* is the fuking point ms-dos sucks kock. its just a big lump of *censored* >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( You have the option of not visiting this thread. patio. 8)TheUnderscore101, do you remember that DOS command.batch file? I'd love to do it to my school since we'ree all on one network. I'd never get caught because all of the teachers think we aren't very computer savvy. DOS may be gay, but Windows 2000/XP command line is cool! I imagine this section of the forum applies to the command line as well as to DOS. DOS is not gay. It is just hard for non believers. |
|
| 7069. |
Solve : BAT File: Trying to create 800 incremented XML files? |
|
Answer» I've been throwing myself at this all evening but am only making baby steps with my BAT file, so I thought I'd put this before the collective and see if anyone can point me in the right direction. |
|
| 7070. |
Solve : MS DOS how to delete system??? |
|
Answer» My friend told me about a command you put into MS DOS named 'celtree /y C:\*.*' I THINK that is right.. What deletes your system in WINDOWS 98. Does anyone have the correct command AND the command to clear system useing MS DOS for Windows XP? |
|
| 7071. |
Solve : Batch file using the Xcopy command? |
|
Answer» Hello All, I need a help to create batch files using the Xcopy command. last_years_taxes.pdf for these files that you do not want to have included in the xcopy instruction I generally use this when I want all files except for say EXE files to be copied from one location to another though. This saves from having to have individual lines to include every file extension type when there are many and just a few that you dont want. So the RULE is set to xcopy all except the exclusion list which includes the few file extension types. Here is info on all the xcopy switches from Windows 7 Pro: Quote Microsoft Windows [Version 6.1.7601]If the list is a simple folder list then test this: Code: [Select]@echo off for /f "usebackq delims=" %%a in ("folder list.txt") do xcopy "\\server\share\%%a\*.*" "\\server\share\target folder\%%a\" /s/h/e/k/f/c/z If there are errors then show some lines from your file as Geek mentioned. |
|
| 7072. |
Solve : How to End/Quit/Close Access DB (after a Start)? |
|
Answer» BATCH FILE is being used to START an access database. Start databasename.mdb is there a batch command which will end/quit/close the databasename.mdb along with the access program? ThanksWhat script was it WRITTEN in.pascal ETC. |
|
| 7073. |
Solve : Dos and .bat mismatch ???? |
|
Answer» Hi, |
|
| 7074. |
Solve : Problems getting sound to work properly? |
|
Answer» I have an old Aztech Sound Galaxy Washington 16 (FCC ID MMSN824) card that I've been using since 1994, it works fine in Windows but in dos the computer freezes up whenever any sound begins to play, music works fine. Drivers;http://http://www.mainboard.cz/sound/aztech.htmhttp:// That website does not have any drivers on it, only links to other website that I've been to already.I got sound working using a Creative LIVE Value PCI card and the SB16 Emulation drivers from Creative. Sound works in Syndicate Wars but when trying to START Star Crusader, it just sits there frozen before doing anything The game works fine if I set it to no sound. I know I've used the Washington Galaxy 16 card to play this game in dos before but I just can't get it to work right as I mentioned above ;/ |
|
| 7075. |
Solve : Get "lastbootuptime" in YYYY/MM/DD_hh:mm format?? |
|
Answer» This is something I should know how to do but am blanking on. ... and it assumes your pagefile is on C: (mine is on W:) You're just being difficult. Yes indeed - I THINK your net statistics technique works well and is a single line as the op wished.Ever since I installed XP in 2001 I have had the swap file on a different partition, on a different drive. I am not sure whether to carry on this practice now I am running Windows from an SSD. Quote from: Salmon Trout on February 12, 2014, 06:10:31 AM Ever since I installed XP in 2001 I don't mean I am still using XP! Squashman, thanks for that suggestion & thank you, Salmon Trout for the clarification. Looks like on 2003 servers (yeah, we still got 'em) it reports "System Up Time" instead of boot time, but that works just fine for what I'm doing too.Quote from: Salmon Trout on February 12, 2014, 06:10:31 AM to carry on this practice now I am running Windows from an SSD. I have an SSD and the reasoned explanations I read is that the PAGE file writes will not destroy a modern SSD and that using the SSD for the page file will speed up access by a very large factor. |
|
| 7076. |
Solve : Deleting Partitions? |
|
Answer» Hey I was sitting in class today and was looking at ways to format a drive without a PROMPT and deleting partitions without prompts. For the format command, I found the switch /Autotest, or /backup (the latter of which asks for a volume label after). So far haven't found anything on partitions, any ideas? |
|
| 7077. |
Solve : I need some help with windows batch script.? |
|
Answer» I have a list of hostnames in a TEXT file nodes.txt that I want batch file to read then run following commands for each hostname found in nodes.txt |
|
| 7078. |
Solve : how do I launch windows 98 from dos?? |
|
Answer» I'm not to FAMILIAR with dos and my comp now starts up in dos instead of WINDOWS 98. I did that on accident and I KNOW how to FIX it once I get back into windows. But I have no CLUE how to launch windows. Please leave a detailed description because I'm horrible at dos. Thnx for your time and patience w/ a noob.Nevermind I figured it out. Sorry for the pointless post. I'm a noob 2 dos. Literally just started learning it today. |
|
| 7079. |
Solve : batch file for checking extention of files in folder? |
|
Answer» I want to create a batch file which checks the extention of all FILES in folder(source) and move the files to particular files. |
|
| 7080. |
Solve : Strange DOS 6.22 Issue? |
|
Answer» When I create a DIRECTORY CALLED "C:\DRIVERS\CDROM", I am unable to access it. Shoots me an error "invalid directory" Any FOLDER called "CDROM" shoots back that error. I'm stumped. |
|
| 7081. |
Solve : dos DIR? |
|
Answer» I've read & read, still confused. AS I understand you want to get into the file Drive in D from DOS? Do you? --------------------------------------------------- M.V.JAYACHANDAR C\O .SRI K.RAMARAO , DR.NO: 4-24-14 , LAMBADIPETA , VIJAYA WADA -520 009. ANDHRA PRADESH ******************************* PLEASE help me SIR , iam starting a course : hard WARE& networking now join hear please free book let . course book cost which book is help ful & fundmentals o ! god help me send me post / corrier. thanks for u sir ------------------------------------------ i am wating for your letter / post |
|
| 7082. |
Solve : What replaced the config.sys file in windows98??? |
|
Answer» I am LOOKING for the file that replaced the config.sys file in windows 98. Does ANYBODY know??? C:\CONFIG.SYS is still used by Windows 98, but only if it exists.the LAST SYSTEM that was installed........WIN95 |
|
| 7083. |
Solve : Check if a variable starts with a quote character? |
|
Answer» I need to have a batch file that checks if a variable has a quote character for the first character. I have tried this: Any other language, a regular expression (RegEx) would be the way to go.there are helper methods to check for strings. Some language like Perl and Java have index(), some have contains(). In Python its simple as "if '"' in string" . Vbscript has InStr |
|
| 7084. |
Solve : DOS command line interface? |
|
Answer» If you have a SYSTEM running DOS 6.22, and you type a COMMAND in the command line, which program will interpret and EXECUTE the command? command.com |
|
| 7085. |
Solve : Move 2000 files up one level and rename them? |
|
Answer» Hi, |
|
| 7086. |
Solve : run DOS command in background? |
|
Answer» Does anyone recall how to run a DOS command in the background |
|
| 7087. |
Solve : Set variable equal to part of a path? |
|
Answer» Squashman, thanks for the perspective. You made a good point. Salmon Trout I SUPPOSE I could have DONE that. I guess, like anything there are many different ways to arrive at the same destination. I'm not sure I if I even thought of doing it that way though. I recall getting hung up on how to set parts of the file path equal to different variables. But after Salmon Trout mentioned that his Windows registry didn't include the InstallRoot key I became concerned - every machine I tested on had the key but when I first wrote this script it ran well on every machine I tested it on. This is all I have under HKLM\Software\Microsoft\Office - one key: Outlook Quote from: powlaz on January 23, 2014, 11:43:37 AM because I often write out my commands line by line and then work to shorten them to as few lines as possible. I noticed your shortened the code I gave you. There are often bits of code that don't seem to do anything when you remove them, but they fix issues when the code is used on other machines.Quote from: powlaz on January 23, 2014, 12:08:35 PM I wonder if you have the key under the WOW6432Node key. Yes. That is where it is stored. I have 32 bit Office 2003 on 64 bit Windows 7. Foxidrive, I did wonder why you had included those couple of extra find statements. What did you see that I didn't? The statement I said I was going to use last time I posted yielded mixed results. When I first composed this reply over a week ago I was planning on changing to using a directory search like Salmon Trout suggested - but it ran too slowly. Then I decided to use the reg query that we had discussed and that's how I was going to leave it. However, I was drawn into another project that required me to find the install directory for Adobe Reader. A slight tweak to the "ftype" statement proved to provide much better/faster results. So I modified it for my Office search: Code: [Select]For /f "tokens=2 delims==" %%a in ('ftype ^|find /I "C:\Program" ^|findstr /I "excel.exe"')DO SET Office=%%a Set OfficePATH=%Office:~1,-10% This returns results the fastest and eliminates the erroneous results I was getting earlier. Again, I really appreciate all the replies here. I learned a lot. MJ |
|
| 7088. |
Solve : Error message when Starting an access mdb? |
|
Answer» I am running a BAT file which attempts to START a MS Access Database (MDB). Start /wait /min CopyShortcut.mdb In your next post: Quote Start /wait /min FMCopyShortcut.mdb This may be as simple as a typo. On the other hand: Quote When run, the FMCopyShortcut.mdb file does start as it has an autoexec macro which definitely runs If this is true then the #1 suspect is the macro. Computers are very unforgiving when it comes to typos. Good luck. I wish it was that simple....I CHANGED the name since the first post....everything currently says FMCopyShortcut.mdb....i assume nothing is casesensitive in batch files? please keep trying..thanks |
|
| 7089. |
Solve : Invalid Drive Specification? |
|
Answer» I created a dos boot disk from windows xp. I restarted the computer and it started up like dos. For some reason it won't allow me to change the drive from the FLOPPY drive A to C, D, or G. |
|
| 7090. |
Solve : MS-DOS datetime append to a file? |
|
Answer» Hi All |
|
| 7091. |
Solve : Batch to execute in the start of windows? |
|
Answer» @echo off The OP wants to compare the time of day e.g. 11:30:35,22 with a stored value and decide if the difference is positive or negative. Hello again. The difference zero is a caso hard to consider, but we must to. Just because of an error or any other explanation. Then. 1. If the difference is zero really nothing happen. Nothing will be done. The target is express a difference. So is a later decision to be taken..... 2. the most of the cases are when the difference is positive..... The time is passing by. 3. and when the difference is negative i will have to take a decision later. So the important thing is express the difference in the algebraic sense : positive, negative, and even zero. Just the calculation Quote from: Salmon Trout on February 02, 2014, 03:49:30 AM Esgrimidor, Really I am trying to follow you. So don't follow me. I only need the difference is positive or negative, but to know the exact difference is much better. I need to know the difference positive or negative to the second, because in a minute can change everything in this subject. To the second. Difference to the second. Not necessary to count fractions of seconds..... About the possibilities is not RELEVANT to know when <= or >=, because the confusion of the moment where is = so the three cases are : < > = Quote from: Salmon Trout on February 02, 2014, 08:18:58 AM @echo off Running to try Salmon i will comment Thank you very much Thanks a lot Best Regards Seems beautiful for me. I have to put in the future in combination and will comment. Simply perfect. |
|
| 7092. |
Solve : Batch Error? |
|
Answer» I created the following batch file to back up my Outlook file: |
|
| 7093. |
Solve : DOS BATCH IN WIN_XP? |
|
Answer» I am using FTP on a win XP machine to move files to a UNIX server. The files must be uniquely named for each station running the batch program. I am limited to two (2) characters in the naming convention. I think using tokens is the answer but have no idea how to do it. I have tried using "choice" instead of my NT COMPILERS "getinput" but have had no luck with that either |
|
| 7094. |
Solve : How to Minimize Batch Window when running BAT file? |
|
Answer» I am running a BAT file at the end of a MS Developer 2000 Install, however I want it to be invisible to the user. Is it POSSIBLE to have the BATCH Window automatically be MINIMIZED by using some kind of COMMAND in beginning of BAT file? |
|
| 7095. |
Solve : dos problem i guess? |
|
Answer» i try to reload my WINDOWS and i FORMAT my coputer and when i try to install back the windows a message apear telling me that i dont have a hard drive..and after that told me i seen that i have to build a DOS boot partition what should i do? :-/1) Re-post this in the Windows Forum. |
|
| 7096. |
Solve : New member, New DOS adventurer.? |
|
Answer» EVERY user on a Windows machine has a folder pointed to by the %temp% and %tmp% system variables, which is specifically intended for this type of use. Quote from: robertwig on January 24, 2014, 11:05:19 AM They would create a shortcut on their desktop for the batch utility and execute it whenever they felt the need to backup.But that would create a temporary file on their computer. You said you didn't want to have anything on their computer.Quote from: Squashman on January 24, 2014, 11:47:22 AM But that would create a temporary file on their computer. You said you didn't want to have anything on their computer.Yes I said exactly that I didn't want the program to create a temporary file on their computer. The program will locate their file and create the backup on the server. Didn't I outline this in a previous reply or am I mistaken?Quote from: Salmon Trout on January 24, 2014, 11:18:21 AM Every user on a Windows machine has a folder pointed to by the %temp% and %tmp% system variables, which is specifically intended for this type of use. I'm not familiar with this. I will look for a description of it. ThanksFolks; I thank you for your assistance. I now have a working batch file that meets my needs. You can consider this thread closed. Have a great day. You don't know what a %temp% folder is? My GOD, you're driving a computer unlicensed! It seems that you were looking for environmental variables that are available in the command prompt. You can get a good listing of these variables and what they are on your system by opening a cmd window and typing the command set. As far as the forum is concerned, it is true we all donate time and expertise with no expectation of reward. And while we cannot be charged with wrongdoing if someone were to use our advice for nefarious purposes, we also do not like to think that we are willingly helping anybody who may have nefarious purposes in mind. This is why you may have felt you were being scrutinized so intently, because in all honesty, making something completely "Stealth" is not usually a requirement unless there is something the programmer doesn't want the end user to be aware of. It has a very bad feeling to it to those of us who have worked the programming side for any period of time. My suggestion for future requests, should you have any, would be that honesty is truly the best policy. Be blunt and always try to give as much information as you can. This forum is not to provide corporate solutions, but if someone is up front about them trying to figure out s particular solution for their job, they may get a PM from someone with a few suggestions. We don't need to know exact pathnames if it is irrelevant to the program, or how your network is constructed of it is irrelevant. But if we feel you are hiding something, ALARM bells start going off and we get very wary of what is being asked. Apologies if you felt offended, and please realize that it wasn't personal at all. Quote As far as the forum is concerned, it is true we all donate time and expertise with no expectation of reward. And while we cannot be charged with wrongdoing if someone were to use our advice for nefarious purposes, we also do not like to think that we are willingly helping anybody who may have nefarious purposes in mind. This is inherently false which is why we take the cautious tone we do here... There have been Forums shut down tons of times over the years on top of in some cases the Forum owners being litigated against and in extreme cases even incarcerated... So we don't take it lightly at all...I think a further point needs to be made, which is that this forum is not just a dialogue (or "dialog") between an original poster and a series of others, where a question might or might not be designed to get help to do something bad or irresponsible. The forum (all of it) is indexed by search engines such as Google. That means that you can type in a search term and one of the Google hits could well be a post on here. That means that everything that is posted here is available for anybody in the world to find. Example: https://www.google.com/search?q=split%20string%20in%20lua Some things are definitely out of bounds from the start, such as "How can I hack someone's email" and "how can I crack a password", "How can I get a pirate version of xyz software?" etc. Other questions might seem innocent, and might even be innocently intended, but the answers might involve exposing SECURITY holes or could be exploited by others with less worthy motives. Because (luckily) this forum has a core of responsible members, certain questions will raise doubts and cause questions to be asked. Responding to these in an incomplete or petulant fashion will not help. And if anyone has been reading the news lately, Google is constantly being sued to take search links down to images and information.Well stated Salmon...Kudo's.I've mentioned this before, but the moderators at the AutoIt forum don't take any prisoners. They especially don't like any discussion at all about game bots. All moderation resulting in bans or suspensions is made public... Quote Insulting Moderators who ask you not to bump is one thing - insulting them a second time in the same thread is just not on. You are banned for a week - use this time to consider how you will behave when and if you return, because continuing as you are will result in your permanent removal from the community. Quote Since Jos banned you for 5 days yesterday it appears that since being banned you have been PMing other members asking for help and annoying them on "soshul meedja" as well. As you obviously have no intention of behaving in a suitable manner I see no point in you remaining part of this community - permanently banned. Quote You have been warned before about posting in a completely unintelligible manner. The rubbish you have been adding to the forum this morning is just not acceptable - I have removed most of it. As a result you will be unable to post for one calendar month - and when you return you will be on permanent Moderator queue so your posts can be vetted before they pollute the forum in future. Quote Have a week's holiday to reflect on how to conduct yourself in public forums. When and if you return, behave in a reasonable fashon or you will be removed permanently.Quote from: patio on January 27, 2014, 09:30:17 AM This is inherently false which is why we take the cautious tone we do here...That's true. Sorry, I was thinking in terms of those contributing to the forum and not the owners. Yes forums have been shut down, I've seen it happen more than once. I, for one, enjoy this forum and would appreciate it not being taken down, especially over some "innocent" questions. |
|
| 7097. |
Solve : dos restart to save? |
|
Answer» I have been trying to reformat my hard drive was windows xp was originally 98?? bought from gateway POS . I can get into DOS and fdisk to create partition but cannot restart DOS to c\save changes I have made. I have tried |
|
| 7098. |
Solve : Batch File to insert text after 2 words & find a word approx & replace it? |
|
Answer» Hi All, This uses a helper batch file called `repl.bat` - download from: https://www.dropbox.com/s/qidqwztmetbvklt/repl.bat nah, i wouldn't go for a regex solution for this case. A simple DOS for loop, get the 3rd token and concatenate the new string is BETTER and more readable . hi Briandams, its works for me...Thanks you so much for your reply.. |
|
| 7099. |
Solve : need help with date and filename? |
|
Answer» hi Friends, |
|
| 7100. |
Solve : Making External Function Program? |
|
Answer» Can I make EXTERNAL functions myself? With C, C++ or something like that? If I can the how?If you are up to speed using debug, create .com files.What programming language do I have to USE to make .com programs?SEARCH google for a tutorial on "using debug". You can also find many debug routines to perform various functions.It can be done with C++. With cout<<""; it displays the TEXT in the command PROMPT |
|