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.
| 1401. |
Solve : Error code 1706 when remote reboot the server? |
|
Answer» Dear All, |
|
| 1402. |
Solve : autoexec.bat stored in an EEPROM? |
|
Answer» Hi everyone!! |
|
| 1403. |
Solve : Sleep - Batch Files? |
|
Answer» Hello, is there something SIMILAR to that "at" COMMAND, but for WINDOWS 98. Because for the "at" command, the batch file closes, or is hidden, and I was wondering if I could do that with a windows 98 ONE. |
|
| 1404. |
Solve : disable directory acess using dos command? |
|
Answer» HELLO, How do i disable the directory acess using DOS COMMAND? so if SOMEONE tries to acess it from DOS or Windows ........ it should not get open. Thank you Regards, prachiLook at the SYNTAX for "attrib" for your SYSTEM. I think you will find the answer there. Phil |
|
| 1405. |
Solve : how works the 'DIR redirection' ??? |
|
Answer» The command: |
|
| 1406. |
Solve : system.bat error? |
|
Answer» my pc is having a system.bat ERROR, what should i do to fix this error and what is the function of system.bat and its EFFECT to the entire operating system?SCAN for BUGS ? >http://securityresponse.symantec.com/avcenter/venc/data/bat.wimpey.dr.html and what operating system have you got?and what is the problem you are having. |
|
| 1407. |
Solve : Compare the file with IF in Batch File? |
|
Answer» In the DOS BATCH file how can i compare the SIZE of two FILES & call NEW batch file if it is equal |
|
| 1408. |
Solve : [enter] w/in a batch file? |
|
Answer» is there a WAY to instruct a batch FILE to ACT like the enter key has been HIT after INITIATING a .exe installation file? |
|
| 1409. |
Solve : Batch Files as Windows Serives? |
|
Answer» I want to KNOW how to RUN batch files as WINDOWS SERVICES?http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q243/4/86.ASP&NoWebContent=1 |
|
| 1410. |
Solve : Batch file active window scripting?? |
|
Answer» Hi, |
|
| 1411. |
Solve : Date Stamp? |
|
Answer» hi all, |
|
| 1412. |
Solve : is ther a way to run a batch prog silently? |
|
Answer» is there a WAY to run a BATCH program without a window open? therefore, when executed, it will not be seen by the user. Or perhaps there is some way to align it so it is off screen? |
|
| 1413. |
Solve : .bat - delete files by creation date? |
|
Answer» hello.... |
|
| 1414. |
Solve : Set a variable from a file or a command? |
|
Answer» I am trying to write a BATCH FILE that will set the value that a command returns to a variable. |
|
| 1415. |
Solve : format drive? |
|
Answer» how do U format your hard drivejustin.......if you are running WinXP .......FOLLOW these INSTRUCTIONS.... |
|
| 1416. |
Solve : Program too big to fit in memory? |
|
Answer» Hello. |
|
| 1417. |
Solve : Delete Lines From Plain Text File If End Of Line Matches Set Values? |
|
Answer» To preface, I have a folder named MOVIES that I store all of my movie files in. Within that folder are subfolders for each letter of the alphabet, the # sign (for movies that begin with a number or other non-alphabetic character), and a folder named MUSIC RELATED (for music related movies.) Try using findstr; eg.This can be made more efficient by combining the three FINDSTR commands into one. Code: [Select]dir "%%a"/OGN /B | findstr /RIVC:"\.srt$" /RIVC:"\.idx$" /RIVC:"\.sub$" Quote from: Thaum2u on August 11, 2021, 02:42:47 AM
Code: [Select]FOR /F "delims=" %%G IN ('dir "%%a"/OGN /B ^| findstr /RIVC:"\.srt$" /RIVC:"\.idx$" /RIVC:"\.sub$" /RIVC:"\.jpg$" /RIVC:"\.png$"') DO ECHO %%~nG Quote from: Squashman on August 27, 2021, 09:01:23 AM This can be made more efficient by combining the three FINDSTR commands into one. Thanks! Quote from: Squashman on August 27, 2021, 09:17:07 AM Code: [Select]FOR /F "delims=" %%G IN ('dir "%%a"/OGN /B ^| findstr /RIVC:"\.srt$" /RIVC:"\.idx$" /RIVC:"\.sub$" /RIVC:"\.jpg$" /RIVC:"\.png$"') DO ECHO %%~nG Thanks Squashman! I am not sure how to implement the code you suggested for me. The way I did it RESULTS in a blank file. Here is my default routine (now updated with your more efficient code suggestions): :DEFAULT ( echo - - LIST GENERATED: %DATE% - - FOR /F "delims=" %%a in ('dir /A:D /OGN /B') DO ( echo. echo - - - - - - - - %%a - - - - - - - - dir "%%a"/OGN /B | findstr /RIVC:"\.srt$" /RIVC:"\.idx$" /RIVC:"\.sub$" /RIVC:"\.jpg$" /RIVC:"\.png$" /RIVC:"\.bat$" ) )> %NAME%.TXT start notepad %NAME%.TXT How would you modify that to omit file extensions in the resulting text file?My code: Code: [Select]FOR /F "delims=" %%G IN ('dir "%%a"/OGN /B ^| findstr /RIVC:"\.srt$" /RIVC:"\.idx$" /RIVC:"\.sub$" /RIVC:"\.jpg$" /RIVC:"\.png$"') DO ECHO %%~nG replaces this code: Code: [Select]dir "%%a"/OGN /B | findstr /RIVC:"\.srt$" /RIVC:"\.idx$" /RIVC:"\.sub$" /RIVC:"\.jpg$" /RIVC:"\.png$" /RIVC:"\.bat$" Could you please learn how to use CODE tags. It would be much appreciated. Quote from: Squashman on September 01, 2021, 02:46:07 PM Could you please learn how to use CODE tags. It would be much appreciated. You are awesome! Thank you so much! And now I know how to use the code tag as well. |
|
| 1418. |
Solve : missing .bat file? |
|
Answer» I am missing del_me.bat and cant print more than ONE webpage. RUNNING w98se, have BOOT disk & cdrom. Please how to re- install that file, preferably from boot diskIf that file REMAINS unchaged after install, you can copy it from a .cab to a floppy and copy it to the proper directory. |
|
| 1419. |
Solve : Deleting text from multiple files?? |
|
Answer» Newcomer to DOS, I couldn't find any hints/tips online about deleting a 'specific' line of text from multiple files of same 'type'. |
|
| 1420. |
Solve : Create folder from first 5 chars of filename (and move the file to it.)? |
|
Answer» Here's what I have. Except the capital A in line 4 had to be lowercase. Yes, I made a typo. I am so used to using capital letters for the FOR variables. There is a reason - SEE if you can spot it in the FOR help. I looked hard but I couldn't see the word "thanks" anywhere in your post... This has been tested and works with the corrected A to a case-change. Thank you for the support on this, I'm learning so much about For loops from these tasks! Brilliant stuff guys Thanks a lot. I adaped your script to pickout the date from the file name of a PDF report, then move that report to a folder with that date ( for archiving): Example file name: R9621_XJDE001_D1111201_T161418976.pdf ECHO OFF setlocal enabledelayedexpansion for /f %%a IN ('dir /b T:\B7333\PrintQueue\*.pdf') do ( set filename=%%a set last21=!filename:~-21! Set pdfdate=!last21:~0,6! mv %%a pdfdate/ ) Quote from: billiehawkins on October 25, 2011, 01:09:33 PM This worked,Shouldn't that set statement be: Code: [Select]set first5=!filename:~0,5! |
|
| 1421. |
Solve : Help me with a batch that goes recursevly through folder structure? |
|
Answer» Hello, |
|
| 1422. |
Solve : Happy Birthday Sidewinder !? |
|
Answer» HOPE you have a Great One ! !Have a Happy BIRTHDAY Happy Birthday Sidewinder! Have a good one. THANK you all. It was one of those days when all was in BALANCE...11/11/11 |
|
| 1423. |
Solve : I need some batch file help!? |
|
Answer» Friends, I need some help. I need a batch file that will read through a directory structure such as A-E which has folders inside with client name such Apple, Brass, Cotton. I need the batch file to search for a directory call 2012 in every folder if it's not there make it and make two more directories inside it called This Year and Last Year. If it does find a directory called 2012 it should continue to the next folder. This may work. Did you try it? I suspect not, because you used the undocumented, unofficial, UNSUPPORTED (as in "wrong") double-colon comment starters instead of REMs. Double colons (which are in fact broken labels) break PARENTHETICAL structures. Quote from: Bigwil on October 28, 2011, 12:51:06 PM Friends, I need some help. I need a batch file that will read through a directory structure such as A-E which has folders inside with client name such Apple, Brass, Cotton. I need the batch file to search for a directory call 2012 in every folder if it's not there make it and make two more directories inside it called This Year and Last Year.Why don't you post the file you have already. Show us you've done at least a little work on it Yes, it was tested, not extensively - but it worked. The double colons are a minor issue, just replace them with REMs or eliminate them altogether. There appears to be no shortage of bad manners on this board. A response to a help request, even one containing errors, isn't justification for a smear attack by multiple board members. I'm sure that isn't anything you don't already know, and I'm just as sure that you really enjoy it. Quote from: pathe3 on October 30, 2011, 11:48:55 AM smear attack Smear attack? Where? Do you know what "smear attack" means? Quote by multiple board members Multiple? Where? Quote from: pathe3 on October 30, 2011, 11:48:55 AM Yes, it was tested, not extensively - but it worked. It can't have worked with those double colons. We want working code here. Raven19528, your answer is yes. They are in Y:\Int. Quantos, as I mentioned I have virtually no skills with batch programming. Besides countless internet searches on how to create batch files, I had no clue as to how to start this project hence the call for help. I had nothing to show you. Pathe3, I will try your solution and report back. Salmon Trout, lets keep things positive ok. I appreciate that someone even took the time to respond. I'll keep you posted. Thanks again my peers! BigwilAlright, so try the following. Very similar to pathe3's solution, but a little simpler, which also helps to troubleshoot if needed. Code: [Select]echo off setlocal enabledelayedexpansion for /f "delims=" %%A in ('dir Y:\Int /b') do ( for /f "delims=" %%B in ('dir %%A /b') do ( set path=%%dpB if not exist "!path!\2012" ( md "!path!\2012" md "!path!\2012\This Year" md "!path!\2012\Last Year" ) ) )Considering the solution had already been posted, I'm surprised this thread is still alive. Must be the spirits of Halloween. The Pathe3 entry won't win any BLUE ribbons at the state fair, and probably wont get a medal from Microsoft Best Practices, but the fact is that it works as advertised and to the OP specs. Quote from: Raven19528 on October 31, 2011, 11:06:34 AM Alright, so try the following. Very similar to pathe3's solution, but a little simpler, which also helps to troubleshoot if needed. Good thing. There is a typo which prevents it from working properly. The lesson here is to troubleshoot the snippet before posting. Gotta go now and extort some candy from my neighbor! Happy Hunting sidewinder... Quote from: Sidewinder on October 31, 2011, 12:41:08 PM Good thing. There is a typo which prevents it from working properly. The lesson here is to troubleshoot the snippet before posting. *grumble, grumble* stupid ~ *grumble, grumble* Edit: Code: [Select]... set path=%%~dpB ... Quote I was working in the lab late one night This appears to have been created in a lab, but it goes along with my sense of proportion. Code: [Select]echo off for /f "delims=" %%A in ('dir Y:\Int /a:d /b') do ( if not exist "%%~dpnA\2012" ( md "%%~dpnA\2012\This Year" md "%%~dpnA\2012\Last Year" ) ) The MD command will create an entire tree structure if necessary. Back to the dungeon 'till next year. Hey Raven19528, thanks so much! We had to make some minor changes but your direction put me 95% on my way. Problem solved, mission accomplished. The solution ended up looking almost exactly like Sidewinder's submission. Thanks again. |
|
| 1424. |
Solve : Spin? |
|
Answer» hello! I wonder if ANYONE can help me on this: I would like to use the xcopy command to copy a directory from ONE computer to another. I can do it, in the same computer, but with two diferent computers i can´t. Does anyone can tell me how to do it? |
|
| 1425. |
Solve : Need help using the type command ouput as variable? |
|
Answer» I'm using a product called temperature alert. It creates .log files with temperature dumps. If I run a "TYPE" command on today's log, I receive several LINE entries. Thanks! That is exactly what i asked for. Surely if you have echo turned off (e.g. if you have echo off at the start of the batch) then the time taken to do this will be very short indeed - much less than one seond on any kind of modern computer less than about 20 years old. Otherwise you could install a Windows port of the Unix TAIL utility, I guess. |
|
| 1426. |
Solve : batch file: net sending output?? |
|
Answer» Hi. I was wondering if you could make a batch file that would net send output of a certain COMMAND. For EXAMPLE, The contents of C:\owner\documents and settings\desktop or WHATEVER to computer A4. Well, you get the PICTURE. I am somewhat NEW to batch files and dos since I have just gotten into them very recently. Any help would be appreciatednot sure i understand your problem |
|
| 1427. |
Solve : How to Insert a Header Row in a Text File using a Batch program.? |
|
Answer» New to using this FORUM and batch files, so please bear with me. |
|
| 1428. |
Solve : Find Drive letter of CD Drive in Batch file? |
|
Answer» How do I DETERMINE the drive letter of the CD drive from within a batch FILE?Most PCs with Win9x mount the CDROM as the last drive. Put a readable CD in the drive. You can test for content until you get to an error: |
|
| 1429. |
Solve : Btach file help needed please? |
|
Answer» Hi there, I have a PROBABLY easy to make batch file but I dont know syntex of batch files.. and google has not really helped. |
|
| 1430. |
Solve : Run a command if string has a certain character? |
|
Answer» I have looked around for this, and could not find anything on it. You can do it in one line Sure, and still turn Echo off and Cls and SetLocal and....whatever else: Code: [Select]echo off&cls&setlocal&Echo %1|FindStr /R "[^0-9]" > nul&&If %ERRORLEVEL% EQU 0 (echo result=non-numeric) |
|
| 1431. |
Solve : Trying to align output? |
|
Answer» I am working on a batch file where I want it to list stuff about the computer such as computer name, version of windows, disk drive size, etc. I have the commands to gather the info, and its all going into a textfile that then gets mailed to me. What I want is it to look neater. Code: [Select]echo off Wasn't sure, but were you going for the setlocal enabledelayedexpansion on the third line? That's needed for your "!first:~0,17!" VARIABLE to work. Also, I didn't think numbers worked for the FOR variable. I was pretty sure it was letters only, and case sensitivity allowed for a maximum of 52 variables to be set. Is that different in XP? From the FOR /? in cmd prompt: FOR %variable IN (set) DO command [command-PARAMETERS] %variable Specifies a single letter replaceable parameter. (set) Specifies a set of one or more files. Wildcards may be used. command Specifies the command to carry out for each file. command-parameters Specifies parameters or switches for the specified command. To use the FOR command in a batch program, specify %%variable instead of %variable. Variable names are case sensitive, so %i is different from %I. Other than that, all in all, it looks like it would work in Vista and 7 just the same. Quote from: Raven19528 on October 14, 2011, 12:23:27 PM I didn't think numbers worked for the FOR variable. I was pretty sure it was letters only, and case sensitivity allowed for a maximum of 52 variables to be set. Is that different in XP? In Windows NT family (2000, XP, Vista, Windows 7, plus Server 2003 & 2008), you can use most of ASCII 33 (!) to 126 (~) the exceptions are, as far as I can see: 34 (") 37 (%) 38 (&) 44(,) 59( 60(<) 61(=) 62(>) 124 ) but the documentation only mentions A-Z and a-z, POSSIBLY to keep things simple for people learning batch scripting. for example Code: [Select]C:\>for %# in (a b c) do echo %# a b c C:\>for %$ in (a b c) do echo %$ a b c Quote from: Raven19528 on October 14, 2011, 12:23:27 PM Wasn't sure, but were you going for the setlocal enabledelayedexpansion on the third line? That's needed for your "!first:~0,17!" variable to work. Oops yes, thank you for the correction, I can only blame the Friday night rums and Cokes for the omission. Your other query has been ANSWERED by ST and I can only add that most printable ASCII characters are acceptable in a For loop, including a few of the exceptions noted by ST, altho' there are some which must be Escaped. Try this. If it doesn't work I'll think up some excuse!! (note the use of the Esc char ^ and other chars " and #): Code: [Select]echo off cls setlocal enabledelayedexpansion for /f "tokens=1* delims=:" %%^" in (trial.txt) do ( set first=%%": . echo !first:~0,17!%%# ) |
|
| 1432. |
Solve : Command Questoin? |
|
Answer» I have my windows 98 boot disk in my pc and im in dos, what COMMAND to i type in to get teh cd to run in teh D DRIVE?D:At the prompt> a:\ cd windows |
|
| 1433. |
Solve : Is it possible to compile Qbasic........? |
|
Answer» Is it POSSIBLE to compile a text file through Command Prompt if it is written in Qbasic? ((on XP HOME EDITION))http://www.qbasic.com/ |
|
| 1434. |
Solve : Ping and hostname? |
|
Answer» Hey all, |
|
| 1435. |
Solve : How can a .BAT file distinguish a file from a folder?? |
|
Answer» When an 'if exist' command tells me that ENTITY does exist, how do I TELL WHETHER ENTITY is a file or a folder? |
|
| 1436. |
Solve : PC DOS? |
|
Answer» I have an ancient computer that operates under PC DOS and was until RECENTLY connected to a file sharing programme Little Big Lan with two other computers. The main computer printed via another one on the network. As the other computers are no longer part of the network how do I get the main computer to print via its parallel printer port? |
|
| 1437. |
Solve : subdirectories? |
|
Answer» please explaing the significance of the "." and ".." that appear in all subdirectories on a disk Why does anyone want to know this esoteric stuff? Not so esoteric actually. Many coders use relative paths in their batch files. Many installers also use relative paths based on what the user types in for the install directory. Powershell also uses a relative paths owing to the FACT that the current directory is not searched by default. If the current directory contains your Powershell script, you must use .\ to force a search of the current directory or type out a fully qualified path name. |
|
| 1438. |
Solve : problem with vista? |
|
Answer» I am having problem atm so I am looking at going back to XP. But when I try to instal the new software the setup starts then a message comes up SAYING that setup has to be TERMINATED to prevent further damage. I basically says that i need to check for virus's then go again but I have done CHECKS for virus's,Adware,Malware EVERYTHING but nothing comes up and I have completed CHKDSK SEVERAL times. any help would be nice. |
|
| 1439. |
Solve : Saving a webpage to my hard drive through a batch file command? |
|
Answer» I have Windows XP and am using Notepad for a batch file: You should use a vbscript for that. I'm sorry, I've never used a vbscript before. Can you be more specific as to what part of the code I need and where to put my url and path to save to? Thanks for your help! Quote from: tmerryman on September 29, 2010, 11:28:36 AM I'm sorry, I've never used a vbscript before. Can you be more specific as to what part of the code I need and where to put my url and path to save to? I suggest wget. See above. Quote from: Salmon Trout on September 29, 2010, 11:24:19 AM even better, use wget Thank you for the tip. If this was my home computer, I would definitely try it. My work, however, will not allow us to download programs. I will keep WGet in mind for home use.I have modified the script to accept arguments from the command line. These are 2 in number and they are obligatory. 1. The url of the file you want to download 2. The folder you want to download it to. To use the script from batch files do this 1. Save it SOMEWHERE on your hard drive. GIVE it a suitable name. I will use the name Downloader.vbs here. 2. run it with CSCRIPT if you want it to behave as a command line program, like this: cscript //nologo c:\scripts\downloader.vbs "http://www.robgendlerastropics.com/primer.html" "C:\downloads" I don't know about exporting to Excel, sorry Code: [Select] myURL = wscript.arguments(0) myPath = wscript.arguments(1) Dim i, objFile, objFSO, objHTTP, strFile, strMsg Const ForReading = 1, ForWriting = 2, ForAppending = 8 Set objFSO = CreateObject( "Scripting.FileSystemObject" ) If objFSO.FolderExists( myPath ) Then strFile = objFSO.BuildPath( myPath, Mid( myURL, InStrRev( myURL, "/" ) + 1 ) ) ElseIf objFSO.FolderExists( Left( myPath, InStrRev( myPath, "\" ) - 1 ) ) Then strFile = myPath Else WScript.Echo "ERROR: Target folder not found." wscript.Quit End If Set objFile = objFSO.OpenTextFile( strFile, ForWriting, True ) Set objHTTP = CreateObject( "WinHttp.WinHttpRequest.5.1" ) 'following line is optional wscript.echo "Downloading " & myURL objHTTP.Open "GET", myURL, False objHTTP.Send For i = 1 To LenB( objHTTP.ResponseBody ) objFile.Write Chr( AscB( MidB( objHTTP.ResponseBody, i, 1 ) ) ) Next objFile.Close( ) 'following line is optional wscript.echo "Download complete" Quote from: tmerryman on September 29, 2010, 11:34:12 AM My work, however, will not allow us to download programs. download wget at home and bring to work. If this is a legit task that your boss assigned you, there is no reason to restrict using appropriate tools for the job. Well, I just downloaded Wget at home. It's awesome and so simple! Thank you for CONVINCING me. lol I believe I'll sneak it to work. Quote from: Salmon Trout on September 29, 2010, 12:41:37 PM Code: [Select]objHTTP.Open "GET", myURL, False easier... Code: [Select]objHTTP.Open "GET", myURL, False objHTTP.Send objFile.Write(objHTTP.ResponseText) objFile.Close |
|
| 1440. |
Solve : Output File? |
|
Answer» Can you change the way the file is outputted. Can you change the way the file is outputted. download sed for WINDOWS Code: [SELECT]C:\TEST>dir *.pst /B /S |sed ":a N;s/\n/,/;ba" |
|
| 1441. |
Solve : Connecting to Unix? |
|
Answer» Hi, |
|
| 1442. |
Solve : Batch Network Chat? |
|
Answer» Hey all, ive recently coded a batch script to use on my school's network...just decided to share it lol |
|
| 1443. |
Solve : Namespace - System Folder - refresh? |
|
Answer» I have an application that adds an annoying System Folder to the desktop, I can easily script removing this by deleting the registry key but the TRICK I'm running into is being able to refresh the desktop so the icon disappears. If I press F5 on the keyboard the icon is gone, but I RUN this bit of VBS it doesn't WORK. So I'm wondering if anyone has a different workaround? I'd prefer not to kill EXPLORER as in many cases the systray icons don't refresh come BACK correctly. Thanks for the help. |
|
| 1444. |
Solve : delay in batch script? |
|
Answer» Hi, Shouldn't this line No. (Have you tried it?) If start /wait was required I would have included it. Used as I showed, cscript returns control (either to a calling script or the command PROMPT) when the vbscript exits, not before. WRONG thread, wrong reply, sorry |
|
| 1445. |
Solve : IF EXIST for multiple filenames? |
|
Answer» Hi, |
|
| 1446. |
Solve : input for batch file? |
|
Answer» Hello , |
|
| 1447. |
Solve : Batch File - Move files from one drive to the other? |
|
Answer» I have 2 drives that have the same folder HIERARCHY in each. I have 2 drives that have the same folder hierarchy in each. C:test>xcopy /? Copies files XCOPY source [destination] source Specifies the file(s) to copy. destination Specifies the location and/or name of new files. C:test> |
|
| 1448. |
Solve : MS-DOS any vesion needed.? |
|
Answer» Hello folks, I already have Upgrade Install of MS-DOS 6.22 : total of 3 imz files. But in order to install this i need to have a base MS-DOS 6 and below of any version. Could someone help me retain a free imz files of MS-DOS 6 and below so that i can install Dos6.22. Microsoft already has an upgrade install of V6.0 READY for download. But i can't use that. Its easy to get an illegal copy of MS-DOS , you know from where. I am going all ethical: If someone could help me here i would be utterly greatful. I plan to install it in MS-Virtual PC 2007: or is it remotely possible to make an IMZ/IMG/IMA out of these MS-DOS 6.0 setup file. Any suggestion is welcomed.Have you CHECKED into FreeDOS http://www.freedos.org/ Its very much like 6.22 Also if you want to play dos games, DOSbox works better than virtual dos environment. VPC2007 doesnt render GRAPHICS well for games etcSince MS-DOS is a copyrighted Microsoft product, there is no "ethical" way of getting it free, except, I suppose, if the legal owner of a genuine floppy install set gives you the set as a gift having first uninstalled it. Anything here? : http://computers.shop.ebay.com/DOS-/11685/i.html?_catref=1&_fln=1&_trksid=p3286.c0.m282 Thank you all for your advice,,,its sad to know that no full version of MS-DOS is available for download. I already have FreeDOS full version, just simply can't get to install it on Virtual PC. Since it requires an Active OS partition,,,,, E-bay is something i dont want. I was looking for a free download. Its OK if their ain't one, life will still go on,,,,,,,,, Thank you for giving your take.................. Quote I was looking for a free download. Its OK if their ain't one, life will still go on There are plenty of places on the WEB to get various versions of MS-DOS. You just won't read about them on here, because we don't do PIRACY help. yeah i can get any version of Dos from WWW its a little bit of fishing,,,but then again i dont want any pirated stuffs. Ethics and hard work of the developers haunt back which seems to manifest in certain bad ways: in my experience. i use DOSOX primarily for games. Which i play rarely. |
|
| 1449. |
Solve : Batch file to find newly updated file in FTP Server? |
|
Answer» HI, 1. Daily it need to search for any new files are folder added, If so it has to be downloaded to my local machine. How do you recognize a new file or folder? Date? Time? What happens to files or folder that are downloaded? Do they get deleted from the server, moved elsewhere on the server? Quote 3. Is there any possible to use GMail SMTP settings and send a mail using batch script. If we find any new files that details has to be mailed to the particular users to download. If you have a GMAIL account you can use the Google SMTP server. Click here. You will probably need to write a Windows script using the CDO.Message object. For batch scripts, you can use Blat which requires a download. You can also use your own mail server if you have one or your ISP server. How is all this being done now? Once you can do a walk through of the procedure you're currently using, automating it should be relatively easy. Let us know. Hi, I need to find new files using date/time Regards PaulwintechThis little piece of code will filter the current files (including files in subfolders). It uses the current date for comparison: Code: [Select]echo off setlocal enabledelayedexpansion set dt=%date:~4,10% for /f "tokens=* delims=" %%i in ('dir c:\folder /a-d /s /b') do ( set fdt=%%~ti set fdt=!fdt:~0,10! if !fdt! EQU %dt% echo !fdt! %%i ) Now that you can isolate them, what happens next? Stage them in a transmission folder? Transmit each file separately? Note: My system date is in the FORMAT of dow mm/dd/yyyy. The set dt= statement in the file isolates the mm/dd/yyyy portion. You may have to tweak it for your local date format. Let us know. sidewinder, That will only work on his local machine. He needs a way to find the latest files at REMOTE. OP, This is a job for a programming language with the necessary ftp , smtp libraries, not batch. ( not saying it can't be done, but its tedious ). I recommend Python (or Perl).Hi, Is there any possible to take the updated files from share and save it in backup server, For example in Machine A and Machine B have share called mybackup. Everyday they put some of their required backup in that folder. Backup server should take or compare for any new files present in the share of A/B, and copy the same into backup server. Please let me know is there any possibility to do so. Thanks Paulwintech |
|
| 1450. |
Solve : Batch file for moving files? |
|
Answer» Hello all, |
|