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.
| 2001. |
Solve : Batch File Encryption.? |
|
Answer» I am sure when you read the title you thought this would be another "How do I encrypt my batch files?" thread. XP what does it mean when you use more then one % at a time? Type FOR /? at the prompt. Quote from: Salmon Trout on April 04, 2010, 05:01:17 PM Type FOR /? at the prompt.Please note, it will say %a, %i, etc. but that only applies to commands run from the command prompt, two % are for in batch files. Quote from: Helpmeh on April 04, 2010, 05:18:42 PM Please note, it will say %a, %i, etc. but that only applies to commands run from the command prompt, two % are for in batch files. It says: Code: [Select]To use the FOR command in a batch program, specify %%variable instead of %variable. |
|
| 2002. |
Solve : A question about writing to text files.? |
|
Answer» Ok, just to let you know I am not the most experienced person with the command prompt so I do not know a lot about all the different commands however I have an irc bot written in msl, which is a scripting language for mirc. This means that I am not actually the one needing the data, it's the irc bot, so what I am wondering is... |
|
| 2003. |
Solve : Dos game to windows? |
|
Answer» I'm TRING to play and old game called "Z" from the bitmap brothers but its dos and i need to know how to make it work with windows. the site say To run the game you must extract the Z FOLDER contained in the archive to C:\Z OTHERWISE you have to change some settings manually. Also for the sound to work properly in the Zed game you have to run SETSOUND.EXE and select your CARD model. I did the following: Select and configure digital audio driver -> Creative Labs Sound Blaster or 100% compatible -> Attempt to configure manually. |
|
| 2004. |
Solve : How to fix time AT BOOT UP.? |
|
Answer» An old Laptop is missing the battery. I just need a simple batch to fix the date and beep me on a old XP machine. Sorry, my recent batch with net time /? did work correctly. Try this: http://support.microsoft.com/kb/314090 Internet synchronization won't work unless the system time is within a few minutes of the time that the server gives back. As Geek has stated the time is way off when he REQUIRES this feature which makes it sorta useless. It will right eventlog entries THOUGH. that's useful.download GNU date , and then setting time/date is easy set the time forward 2 minutes Code: [Select]c:\test> gnu_date --set="+2 minutes" set to APR 17 2010 Code: [Select]C:\test>gnu_date --set="20100417" |
|
| 2005. |
Solve : Timer Batch.? |
|
Answer» I want to make a batch file. Sorry to disappoint you.Well, just TELL me how to store the time. If today is "March 31, 2010, 08:00:20 PM". How to store the information. Like this...... set/p "today=>" But that you have to type in manualy. set/p "today=>""March 31, 2010, 08:00:20 PM" Quote from: Geek-9pm on March 31, 2010, 07:49:24 PM Sorry to disappoint you.if he(BILL?) just wants to change the system date to 2 months earlier, there are ways to do it. GNU date provides -s option to set system date. Similarly for vbscript the SetDateTime method of win32_operatingsystem class. the cmd.exe command line date function is another way, HOWEVER, you have to figure out the maths yourself if going by pure batch. Quote from: progmer on March 31, 2010, 08:06:38 PM Well, just tell me how to store the time.Try running date /t and time /t at the command PROMPT and see what happens. Also look at %date% and %time%. Ahh-- it don't work for me! I tried to go back to February. Would it not be easier to have a calendar on the wall? Quote d:\batch>date /?Quote from: Geek-9pm on March 31, 2010, 09:03:28 PM Ahh-- it don't work for me! I tried to go back to February.ask greg the expert on date maths to help you02/31/2010 Now, why doesn't that work...hmm...better put on our thinking caps class. Quote Similarly for vbscript the SetDateTime method of win32_operatingsystem class. eww.. sometimes I forget hwo much useful crap they stripped out of VB when they created VBS. setting the date to two months prior in VB6 is as simple as: date=dateserial(year(now),Month(now)-2,day(now)) Also: yes, it work for nearly any date. For example, dateserial(1998,2,35) gave me "3/7/1998" negative numbers work, also. Anyway, dateserial() exists in VBScript, and you can use the Date command to change the date as well... or just use DateAdd(), which I complete forgot about while testing DateSerial: Code: [Select]newdate = DateAdd("m",-2,Now) Set oshell = CreateObject("WScript.Shell") oShell.run "cmd /k date " & Cstr(newdate) & "&exit" Quote from: BC_Programmer on April 01, 2010, 06:45:19 AM date=dateserial(year(now),Month(now)-2,day(now))a better variable name should be given instead of "date" since date is a valid keyword in vbscript Quote from: ghostdog74 on April 01, 2010, 07:22:00 AM a better variable name should be given instead of "date" since date is a valid keyword in vbscript Quote setting the date to two months prior in VB6 is as simple as: Assigning a date in VB6< is as simple as assigning a date-type variable to the "date" psuedo variable (which is actually a statement). As you'll notice the latter code that is actually intended for VBScript does not use the name "date" for the variable and instead opts for "newdate".Ok. Just tell me how to store the time. Store it as %abc% so when i type echo "%abc%" it will be "April 01, 2010, 09:27:31 PM" Thanks Quote from: progmer on April 01, 2010, 09:29:47 PM Ok.Look at this. Echo %date% %time% set abc=%date% %time% echo %abc% pause It will repeat the same line twice. Well Thanks For Everyone's Help. Now The Batch Should Look Like This. Code: [Select]echo off set undot=%time% set undod=%date% goto 1 :restart mshta vbscript:Execute("resizeTo 0,0:MsgBox ""System Refresh"",48,""System Refresh"":Close") :1 cls echo Welcome. Today's time is %time% %date% echo. echo You are about to change the time manualy. Please enter a time, HH-MM-SS. example: 23:59:59 set/p "sett=>" echo. echo. echo You are now going to change the date manualy. Please enter a date, MM-DD-YY. example: 12-31-2010 set/p "setd=>" echo. echo. :a echo Confirm? (Y/N) echo Time = %sett% echo Date = %setd% set/p "confirm=>" if %confirm%==Y goto change if %confirm%==y goto change if %confirm%==N goto restart if %confirm%==n goto restart mshta vbscript:Execute("resizeTo 0,0:MsgBox ""Invalid. Y or N only."",64,""Invalid"":Close") echo. echo. echo. echo. goto a :change time %sett% date %setd% :b echo Do you want to undo? (Y/N) set/p "undoing=>" if %undoing%==Y goto undo if %undoing%==y goto undo if %undoing%==N goto exit if %undoing%==n goto exit mshta vbscript:Execute("resizeTo 0,0:MsgBox ""Invalid. Y or N only."",64,""Invalid"":Close") echo. echo. goto b :undo time %undot% date %undod% mshta vbscript:Execute("resizeTo 0,0:MsgBox ""Time undo sucessfully."",64,""Undo"":Close") :c echo Do you want to restart? set/p "rstart=>" if %rstart%==Y goto restart if %rstart%==y goto restart if %rstart%==N goto exit if %rstart%==n goto exit mshta vbscript:Execute("resizeTo 0,0:MsgBox ""Invalid. Y or N only."",64,""Invalid"":Close") echo. echo. goto c :exit mshta vbscript:Execute("resizeTo 0,0:MsgBox ""You have closed the timer batch."",0,""Timer Batch"":Close") exit Good to know if there is any update for the batch. Just reply me. Quote from: progmer on March 31, 2010, 07:37:55 PM Today's time is Tue 04/06/2010 C:\batch>type timer.vbs Code: [Select]rem DateAdd(interval,number,date) rem Parameter Description rem interval Required. The interval you want to add rem Can take the following values: rem yyyy - Year rem q - Quarter rem m - Month rem y - Day of year rem d - Day rem w - Weekday rem ww - Week of year rem h - Hour rem n - Minute rem s - Second curDate=Now WScript.echo "Current Date:" + Cstr(curDate) newDate = dateAdd("m",-2,Now) WScript.echo "date - 2 Month:" + Cstr(newDate) newDate = dateAdd("m",1,Now) WScript.echo "date + 1 Month:" + Cstr(newdate) Output: C:\batch>cscript //nologo timer.vbs Current Date:4/6/2010 6:59:12 PM date - 2 Month:2/6/2010 6:59:12 PM date + 1 Month:5/6/2010 6:59:12 PM C:\batch> |
|
| 2006. |
Solve : How to make a DOS program take an input file? |
|
Answer» HELLO, I have a program in DOS that takes manual entries from the command prompt. The DOS program then writes the output to a notepad file called output.txt I have over 17,000 entries I need to perform and would like to automate this TASK. I have the 17,000 entries in a notepad file called input.txt How do I feed this notepad file into the DOS program? PROVIDE more details, post the SCRIPT that you are currently using. From a Command Prompt enter: Code: [Select]for /? for more details. Quote from: smiso24 on April 07, 2010, 08:39:02 AM writes the output to a notepad file called output.txt C:\batch>type smi.bat Code: [Select]echo off echo. > output.txt for /f "DELIMS=" %%a in (input.txt) do ( echo %%a echo %%a >> output.txt ) echo type output.txt type output.txt | more Output: C:\batch> smi.bat The DOS program then writes The DOS program then writes The DOS program then writes The DOS program then writes type output.txt The DOS program then writes The DOS program then writes The DOS program then writes The DOS program then writes C:\batch> Quote from: smiso24 on April 07, 2010, 08:39:02 AM writes the output to a notepad file called output.txt I have over 17,000 entries I need to perform and would like to automate this task. I C:\batch>type simso.bat Code: [Select]echo off copy input.txt output.txt rem or type input.txt > output.txt rem for second run type input.txt >> output.txtC:\batch> |
|
| 2007. |
Solve : How to write a batch command for the following requirement? |
|
Answer» Hi, echo off C:\bin>type ltctctl.bat Code: [Select]rem C:\bin\ltctctl.bat startall rem the above REQUIRES a command line argument echo off echo Hello this is a test batch file rem C:\bin\ltctctl.bat %1 echo ltctctl %1 Output: C:\bin>ltctctl.bat startall Hello this is a test batch file ltctctl startall C:\bin>Hi Thanks to all of you .. I had actualy made a mistake in the command which Mr. Gregflowers rightly pointed. Thanks, |
|
| 2008. |
Solve : Batch file for finding files on network shared drive? |
|
Answer» Hi, I'm new to the forums, but I would like to ask a question and hopefully get some help if I may; As expected, I am unable to install anything from that pageyou can download from home, and save to thumb drive. (you can bring all the .exe installed into 1 thumb drive). also, only if your laptop's usb drive is not locked down by you admin as well Another big fat zero... I can't believe how petty the admins actually are, I've tried 3 USB drives in my work machine, none of them are showing up, so I CALLED our IT Support and I'm told they locked the USB ports down for "security reasons" since your company has such as security policy, then there must be procedures when you need to use tools that are third party. Request permission from your boss to authorise the use of such tools (If its really for your work). Tell them these are tools that will increase your productivity. If its still a gone case, you will need to learn some DOS batching or vbscripting. Well, I did have a go at a batch file, but it's only slightly what I'd hoped for: echo off echo. DIR Z: /A :RSA -D /P sortorder -S pause (I have the network drive mapped to Z: in my drives list) This sort of works fine, but it lists the directories and then the files in no particular order, I'd prefer it not to list the directiories, but to interrogate them for large files and then print out a list of filenames starting with the largest file first. Quote from: icage on April 08, 2010, 07:42:50 AM
well to remove the directories try the following: DIR Z: /A -D /P sortorder -S for more information type DIR /? Quote find . -size +9999999c 2> /dev/null -exec ls -l {} \; |sort -n +4 |tail -30 Don't really understand the whole command, but your post text was helpful. This may do what you want: Code: [Select]echo off setlocal enabledelayedexpansion if exist dirList.txt del dirList.txt if exist sortedDirList del sortedDirList for /f "tokens=* delims=" %%i in ('dir c:\windows\system32 /s /b') do ( if %%~zi GEQ 9999999 echo %%~zi %%~dpni >> dirList.txt ) sort /r dirlist.txt /o sortedDirList.txt for /f "tokens=1-2" %%i in (sortedDirList.txt) do ( echo %%i %%j set /a count+=1 if !count! EQU 30 goto :eof ) You can change c:\windows\system32 to any valid directory. Good luck. Sidewinder, that's great, I just copied and pasted your code and then ran it as a batch file to test it, it worked brilliantly, however, if I try and replace c:\windows\system32 with the drive I need to CHECK, it doesn't seem to do anything at all... I know the screen stays blank whether it's doing anything or not, but there is no text file created when I try and use iton my network drive.. I have tried \\share\folder and z:\share\folder (for share\folder - this is my networked drive). Any ideas?I think you just have to be patient. I tested on a network directory (wireless) with 891 files. The script ran 25 minutes. I inadvertently left out a few file extensions and there is a major logic error because NUMBERS in batch are treated as text and do not right align which will throw off the sort. I added logic to fix this but now you need to use the choice command for this work. Sorry for the inconvenience. Code: [Select]echo off setlocal enabledelayedexpansion if exist dirList.txt del dirList.txt if exist sortedDirList.txt del sortedDirList.txt for /f "tokens=* delims=" %%i in ('dir c:\windows\system32 /s /b') do ( call :ZeroFill %%~zi if %%~zi GEQ 9999999 echo !var! %%~dpnxi >> dirList.txt ) sort /r dirList.txt /o sortedDirList.txt for /f "tokens=* delims=" %%i in (sortedDirList.txt) do ( echo %%i set /a count+=1 if !count! EQU 30 goto :eof ) goto :eof :ZeroFill echo;;|choice /c=%1; set > p.bat set ct=0 call p.bat for %%v in (%[%) do call set /a ct=%%ct%%+1 set [= del p.bat > nul set /a pad=12 - %ct% if %pad% equ 11 set var=00000000000%1 if %pad% equ 10 set var=0000000000%1 if %pad% equ 9 set var=000000000%1 if %pad% equ 8 set var=00000000%1 if %pad% equ 7 set var=0000000%1 if %pad% equ 6 set var=000000%1 if %pad% equ 5 set var=00000%1 if %pad% equ 4 set var=0000%1 if %pad% equ 3 set var=000%1 if %pad% equ 2 set var=00%1 if %pad% equ 1 set var=0%1 goto :eof Good luck. |
|
| 2009. |
Solve : Checking tasklist? |
|
Answer» BC_programmer...you are correct...initially I thought it was the BATCH file I had to find... |
|
| 2010. |
Solve : ActiveFTP Data Connection?? |
|
Answer» I'm trying to use a batch file to transfer files via FTP to my DriveHQ TRUE account, but when I send it, it takes a really long time...it says free accounts are SUBJECT to slower speeds, but it takes like 30 seconds to upload a 16 BYTE (yes, just 16 bytes) file. some firewalls disable PASV for FTP connections. even if you use PASV with your FTP client, the firewall that stands between you and the other end must be able to recognise PASV mode. Check with the one that is in charge of the firewall.Now, I did a quick look through the control panel and Windows Firewall is disabled...making me think that there is another firewall on the computer. I checked my taskbar icons (where one usually is for firewalls, etc.), nothing, unless ESET Nod32 Buisness edition has a built-in firewall, which I doubt. I checked Add or Remove Programs, nothing mentions any firewall. I guess the board thinks deepfreeze and NOD32 (with an outdated signature because of deepfreeze) will be enough to secure their computers. EDIT: I did a little bit of googling, and it appears that the FTP client from CMD.exe doesn't actually support PassiveFTP... |
|
| 2011. |
Solve : export local variable outside of setlocal? |
|
Answer» How can i export the varibles (set inside setlocal ) outside of setlocal . How can i export the varibles (set inside setlocal ) outside of setlocal Why would you want to? What are you trying to do that would require localizing the variable and then attempting global access? The setlocal statement is purposely designed to localize the variables. The normal SCOPE of a batch file variable is the duration of the session window (cmd/command). Setlocal reduces that scope until either an endlocal statement is encountered or the batch file ends, whichever comes first. Is this related to this thread? yes it is related to this thread. so there is no way to access globally the local variable ? Quote so there is no way to access globally the local variable ? There seems to be some confusion about a variable and it's value. While a setlocal variable will die with an endlocal or the end of the batch file, it's value can live on through the file system. Code: [Select]echo off setlocal echo 20 > var1 endlocal set /p var2=<var1 echo %var2% del var1 Not for nothing, but in your last thread we eliminated the setlocal statement. What happened? actually there is many variables are going to set as enviorment variable if i remove set local so i have to use set local without delayexpanssion only for that part of code and i want to use that DIR value out side of that setlocal. Now the issue is that when i echo varibles inside batch file it prints correct value of that varibles but when i tried to echo from commant prompt it self it does not show any value to varible . here i m talking about the varibles set outside of setlocal with the help fo DIR. r u understand what i want to say.lets explain u with the example i set DIR inside setlocal use DIR and set TOP_DIR after endlocal When echo DIR and TOP_DIR it prints correct value now after runing that batch file i run one makefile in same window and use TOP_DIR in that but it doesnot work.Please post the code you used. Quote i set DIR inside setlocal Quote When echo DIR and TOP_DIR it prints correct value I'm interested to see this as it directly contradicts the purpose of setlocal. Using command names as your variable names is not good practice. It can only lead to confusion. Code: [Select]SETLOCAL set VOB_BASE_DIR= for /f "tokens=* delims=\" %%P in ('cd') do ( set _mypath=%%P ) set _array=%_mypath:\= % for %%E in (%_array%) do ( if .%%E==. GOTO getout if %%E==test goto getout call set VOB_BASE_DIR=%%VOB_BASE_DIR%%\%%E ) echo vob= %VOB_BASE_DIR% ENDLOCAL :getout set VOB_BASE_DIR=%VOB_BASE_DIR:~1% set TOP_DIR=%VOB_BASE_DIR%\\oscl echo Set TOP_DIR to %TOP_DIR% ... now after that i run makefile and it returns an error make: makefile: line 1: Error -- Include file /makefile.mk, not found and the first line of make is Code: [Select]include $(TOP_DIR)/makefile.mk after that i tried to echo TOP_DIR from command prompt so it prints: %TOP_DIR% it does not show value.I hate to repeat myself, but why are you even using the setlocal and it's evil twin endlocal STATEMENTS? The whole point of the other thread was to not localize the variables so you would have global access. Code: [Select]set VOB_BASE_DIR= for /f "tokens=* delims=\" %%P in ('cd') do ( set _mypath=%%P ) set _array=%_mypath:\= % for %%E in (%_array%) do ( if .%%E==. goto getout if %%E==test goto getout call set VOB_BASE_DIR=%%VOB_BASE_DIR%%\%%E ) echo vob= %VOB_BASE_DIR% :getout set VOB_BASE_DIR=%VOB_BASE_DIR:~1% set TOP_DIR=%VOB_BASE_DIR%\\oscl echo Set TOP_DIR to %TOP_DIR% ... Quote When echo DIR and TOP_DIR it prints correct value Quote after that i tried to echo TOP_DIR from command prompt so it prints: %TOP_DIR% Assuming the syntax is correct, the makefile probably couldn't find a variable TOP_DIR There are only 13 or so batch files commands. You don't need to use all of them in any single batch file.thanks Finally I understand that I have not to use set local . Solution: rem === Export %params% from setlocal scope for /f "delims=" %%i in ('echo %params%') do endlocal & set params=%%i |
|
| 2012. |
Solve : Need to run app in different window from window running the batch job Help!? |
|
Answer» I need to kick off an app that RUNS in a command WINDOW. The app is a PROGRAM that listens for connections so I ALSO need the batch to move to the next command after it starts that app in a new window..... |
|
| 2013. |
Solve : Set/a arithmetic expressions.? |
|
Answer» Hey G.D. & S.T. The information both of you posted will no doubt come in handy, if not for me then perhaps for one or more of the 200+ READERS of this thread. I regret that both of you ALLOWED your responses to become a personal slanging match rather than an exchange of technical knowhow of which you both seem to have more than enough to share. |
|
| 2014. |
Solve : DOS/16M error [6] Insufficient memory to load program? |
|
Answer» Hardware: Acer Aspire 4720Z Laptop (Pentium Dual Core, 2GB RAM, 100GB Disk). |
|
| 2015. |
Solve : Newbie needs help! (batch file)? |
|
Answer» I'm in the process of LEARNING DOS. |
|
| 2016. |
Solve : Parsing multiple IPs on multihomed machine - in batch? |
|
Answer» Hi there, |
|
| 2017. |
Solve : Management of the press from the keyboard? |
|
Answer» Hello! I from Russia. Whether the system should report at use of this function? If printer is connected and switched on and has paper it will immediately print 25 or 43 or 50 lines of text (the text screen contents)Thank you very much. I Will search for the corresponding printer.The computer will freeze until the printing is finished. |
|
| 2018. |
Solve : Save file with current DateTimestamp? |
|
Answer» I'm using batch file to run Visual Studio load test. For this I'm using MSTest command's /testcontainer and /resultsfile METHODS. I want to save file with unique name by appending datetimestamp to output file specified in /resultsfile method. How can I do so? I'm using batch file to run Visual Studio load test. For this I'm using MSTest command's /testcontainer and /resultsfile methods. I want to save file with unique name by appending datetimestamp to output file specified in /resultsfile method. How can I do so? download GNU coreutils, then try this Code: [Select]echo off for /F %%a in ('gnu_date.exe +%%m-%%d-%%Y-%%H_%%M_%%S') do ( set timestamp=%%a ) set filename=c:\TestResults-%timestamp%.trx MSTest /testcontainer:"C:\Test.loadtest" /resultsfile:%filename% or, just Code: [Select]MSTest /testcontainer:"C:\Test.loadtest" /resultsfile:"C:\TestResults%date%-%time%.trx" ghostdog74 and BC_Programmer, received MSTest syntax error in both ways.if the date and/or time variables contain poison characters you have to remove or replace these before trying to use them in a file name.This may be helpful: Code: [Select]echo off for /f "tokens=2-7 delims=./: " %%i in ("%date% %time%") do ( set mm=%%i set dd=%%J set yyyy=%%k set hh=%%l set mn=%%m set ss=%%n ) MSTest /testcontainer:"C:\Test.loadtest" /resultsfile:TestResults_%mm%-%dd%-%yyyy%-%hh%_%mn%_%ss%.trx If your date format is not mm/dd/yyyy, you'll need to reconfigure the set statements. Quote from: goru09 on April 12, 2010, 11:37:42 AM ghostdog74 and BC_Programmer, received MSTest syntax error in both ways.Then check your DOCUMENTATION on MSTest for the correct syntax.Thanks Sidewinder! |
|
| 2019. |
Solve : Difference between .cmd and .bat? |
|
Answer» Hi everyone, -- -------------------------------------------------------- Batch/Command files need to be called to have control passed back to the caller. You have it right in the last line of your file. Quote -- -------------------------------------------------------- Quote Can someone tell me the difference between .cmd and .bat As far as I know there are none. CMD files came along with WinNT. Both are text files which are executed within an interpreter. Thanks Sidewinder...you've saved me again... Cheers Neil Quote from: Sidewinder on APRIL 20, 2010, 08:09:03 AM
Scripts to be interpreted by command.com (the old MS-DOS command interpreter) need to have the .bat extension. Scripts to be interpreted by cmd.exe can have either the .bat or the .cmd extension. Put another way, a .bat script can be interpreted by either command.com or cmd.exe, whereas a .cmd file can only be RUN with cmd.exe. If both .bat and .cmd versions of a script (test.bat, test.cmd) are in the same folder and you run the script without the extension (test), by default the .bat version of the script will run, even on 64-bit Windows 7. The order of execution is controlled by the PATHEXT environment variable. Didn't the REXX interpreter included with PC-DOS USE the cmd extension? Quote from: BC_Programmer on April 20, 2010, 02:24:28 PM Didn't the REXX interpreter included with PC-DOS use the cmd extension? Yes, indeed. |
|
| 2020. |
Solve : Batch file to check files exist? |
|
Answer» I have a batch file that checks if our image & DR files have been transferred to our DR server. I can't pass a parameter between list file and the batch file. Pass %CHECKSTR% back to my batch file - %CHECKSTR% = date to check for, defined earlier in the batch file. You're right. The text file has no knowledge of what goes on in the batch file. This might work with delayed expansion. If not, there might be other ways, but this seems the simplest. Code: [Select]\server1\e\backup\db\database1_!CHECKSTR!*.7z \server1\e\backup\db\database2_!CHECKSTR!*.7z \server2\e\backup\db\database1_!CHECKSTR!*.7z \server2\e\backup\db\database2_!CHECKSTR!*.7z Also, add a setlocal enabledelayedexpansion line to the beginning of your batch file. Quote Second issue is, can I parse the last 3 chars of %%i and create a if,else loop? You can use the notation %%~xi to isolate the extension of the file. Note: %%~xi includes the dot. I couldn't test the code on this machine, so I wish you luck. FYI: The if/else construct is not a loop, the for instruction as written is. Keep in mind, batch code is not a programming language, it's a command language. You might want to check out VBScript which was installed with your OS. It's a lightweight scripting language which has more functionality than batch language.I don't think I have the FOR command correct... Code: [Select]for /f "tokens=* delims=" %%i in (zip.txt) do ( for /F %%a in ("%%i") do ( set FILETYPE=%%~xI echo %FILETYPE% ) ) FILETYPE contains no value...My first reply to you was this basic framework: Quote echo off You then posted back that it worked, but claimed there were some issues. Fair enough, but how it went from my original post to this convoluted mess, I'll never know. Quote for /f "tokens=* delims=*" %%i in (dr1-zip.txt) do (I suggested some changes to the input file. Did they work? If not, this issue should be resolved before moving on. Next you posted this nested for loop, which for the life of me can't figure out why it's needed or what context you're using it in. Quote for /f "tokens=* delims=" %%i in (zip.txt) do ( I would SUGGEST getting back to basics. Create a for loop for the 7z files and get it working. Add a second for loop for the tib files and get that working. Then you can add a third for loop for the bak files. If later you find DUPLICATE code for two of the file extensions, you can work at combining/streamlining the logic. It's easier to debug code as you develop it, rather than writing all the code and debugging from line 1. Above all, keep it simple. Using the !CHECKSTR! worked fine...thanks for that pointer. There are file types of tib, bak, 7z and DAT that need to be checked to make sure they have been succesfully copied to the server. The 7z & bak files contain the date of the backup within the file name, so I can check if the correct date is there and that works great. Only way to check tib & dat files is to get the modified date from the file, check this is the date we expect. We have 3 servers, maybe more to come...with 4 file types, that's 12 list files to maintain so I wanted to check the ext of the filename and execute the checking commands based of filetype...that's what I added the extra FOR inside the first one. |
|
| 2021. |
Solve : batch to copy and not replace existing files? |
|
Answer» Hi all, |
|
| 2022. |
Solve : MS-DOS and VMWARE? |
|
Answer» I have a Pawnshop Management System developed with Informix-SQL 2.10 perfectly running |
|
| 2023. |
Solve : Having problem with %%? |
|
Answer» Hi i want to make a batch file (timer creater.bat) as shown: Try this:Well THANKS It WORK Great! |
|
| 2024. |
Solve : Command-Line Downloader? |
|
Answer» I'm looking for a substitute for WGET (which is extremely slow [taking over 30 secs to download something ~19kb])...it doesn't need ALL the FEATURES, it just needs to work from command-line, and accept wildcards. |
|
| 2025. |
Solve : Starting and Stopping Windows services with Batch code? |
|
Answer» I am trying to stop a few windows services using some batch code, but I keep getting an error code. I need to remove the ".exe" as the service names are PDAgent and PDEngine. Correct. ALSO I always use quotes around the service name. Quote Or is there a better way to end PerfectDisk.exe? A better way to start it, you mean. The CALL command is for starting one batch file from another and returning after completion. Code: [Select]C:\>call /? Calls one batch program from another. [...] For .exe (program) files you need to use the START command. In your situation where you want to wait for the program to finish, use the /WAIT switch. In addition START needs a title string (which is required, and which can be blank). Code: [Select]echo off cls CD C:\progra~1\Raxco\Perfec~1\ start /WAIT "" "PerfectDisk.exe" NET STOP "PDAgent" NET STOP "PDEngine" Ahh Yes. You are right, Salmon TROUT. It's been a long time since I used batch code. I did try the code you suggested, but PerfectDisk.exe did not quit after I "X'd" out of the program. But this was because the settings in the program was set to minimize to system tray. So your code works perfectly! Thanks |
|
| 2026. |
Solve : rename a file? |
|
Answer» how do you CHANGE the extention when you don't know the file NAME how do you change the extention when you don't know the file name If %1 is the complete filename then %~x1 is the extension %1 "c:\my path\my PROGRAM.exe" %~d1 c: %~p1 \my path\ %~n1 my program %~x1 .exe %~dpnx1 c:\my path\my program.exe thank you salmon trout |
|
| 2027. |
Solve : trying to save pics using DOS? |
|
Answer» i'm trying to help my son who managed to get his pc infected with the virus "xp antimalware 2010". after i googled this virus on my pc, i found a procedure to REMOVE it. The fix was a registry change. I tried it and now windows WONT start. I can get to a dos prompt and i did a dir and it shows his directories including his docs. At this point i would like to save his pics before doing a win xp reinstall. 1. could i copy his pics to a flash drive? 2. if so, how would i go about installing the flash drive(usb) without windows, using dos? 3. or is there a better way anyone can suggest? Thanks in advance for any help.first off never modify your registry |
|
| 2028. |
Solve : MS-DOS imeadiatly closes...? |
|
Answer» I was trying to play a demo that uses MS-DOS. Originally it worked fine, the DOS prompt would appear and give me the game's options, but when I would try and load the game, I got an error when I got to the gameplay part, it would say "an installable virtual DEVICE failed DLL initialization", so I had to delete and remake the "VirtualDeviceDrivers" key to stop the error. |
|
| 2029. |
Solve : FTP rar file corruption? |
|
Answer» Hi all - I have written a batch file that uses the rar command to archive a folder with a bunch of files in it. |
|
| 2030. |
Solve : START with affinity option on windows XP? |
|
Answer» I know that at least in Windows Vista the START command has an affinity option to start a process with a specific processor affinity mask. For example: Could you give an simple example of how ""affinity option" is a useful tool for XP? The links pretty well illustrate that. Quote The links pretty well illustrate that.Yep. You are right. I had no idea of what all that was about until I read the first link over very carefully. There are people out there doing serious work with 16 bit programs. A modern high-performance PC can actually hang a process using the NTDVM. If anybody has strange random program hangs using NTDVM, read the links given by Kolya. A real world case of a problem and a solution using Windows tools and third party stuff. And MS is aware of the issue, says the link. This will NOT very likely be fixed in XP because it is near end-of-life. Quote from: Geek-9pm on April 16, 2010, 11:05:26 PM And MS is aware of the issue, says the link. This will NOT very likely be fixed in XP because it is near end-of-life. Consider that the "real world" example used a relatively ancient version of FoxPro... FoxPro is still being released as part of modern versions of Visual Studio. (I think) Quote from: BC_Programmer on April 16, 2010, 11:07:19 PM Consider that the "real world" example used a relatively ancient version of FoxPro... FoxPro is still being released as part of modern versions of Visual Studio. (I think)Now you HIT a nerve. MS has all but killed FoxPro. We could start a whole new thread about "Why MS hates FocPro." Or something like that. Quote from: Geek-9pm on April 16, 2010, 11:32:03 PM Now you hit a nerve. what are you talking about? http://msdn.microsoft.com/en-us/vfoxpro/default.aspx A Service pack was released this month for it. It's not part of Visual studio anymore, though. It certainly outlived VB-COM.Thanks for the link. Good information. Still, after reading that, and some related links, IMO MS hates FoxPro. Or, to put it another way. If Microsoft were a parent. And FoxPpro was a 16 year old daughter. The Child Protection Service would find the parent ... guilty of mental and emotional trauma to the child.The parrot isn't for NOTHING, eh? Quote from: Geek-9pm on April 17, 2010, 12:47:25 PM If Microsoft were a parent. You do write nonsense sometimes, Geek-9PM. |
|
| 2031. |
Solve : HELP...F2 to Run Setup OR F12 to Boot from Network?????? |
|
Answer» The power cable from my COMPUTER DISCONNECTED turning off the computer. When I powered back up the computer goes to DOS and asks if I want to click F2 it is more than likely just letting you know windows was not shut down correctly. SOUNDS more like a BIOS message to me. The type you might get if the hard drive is unbootable. |
|
| 2032. |
Solve : STARTING A BAT FILE FROM A PARENT BAT FILE? |
|
Answer» I'm stumped with this. I have a parent BAT file and within it I'm starting a SECOND |
|
| 2033. |
Solve : editting through DOS? |
|
Answer» my comp operates with an xp but the DOS CANT edit a file. yet it can perform other COMMANDS .please helpGIYBF |
|
| 2034. |
Solve : DOS 6.22 in MS-Virtual PC 2007 shares Windows Vista Drives/Devices/Folders.? |
|
Answer» I have a Pawnshop Management System developed with Informix-SQL 2.10 perfectly running |
|
| 2035. |
Solve : Label a Flash Drive using DOS? |
|
Answer» I need to LABEL a flash drive USING a MS-DOS COMMAND, but it needs to be in this format: |
|
| 2036. |
Solve : Control not passed back to calling Batch program? |
|
Answer» Hi, I have a DOS batch program which calls another application to perform a backup. When the other application is finished control is not passed back to the batch program which called it - leaving the rest of the required batch processing uncompleted. Please helpWhy don't you post what you have so that somebody can look at it for you. |
|
| 2037. |
Solve : I really need some advice from people that know about this :)? |
|
Answer» Hi, take him to small claims court Quote Also, you can pick up a refurbished computer with a one year warranty and a certified Windows XP install for about $190 plus shipping. Don't go sue people or waste money on a new computer. I am sure the tech just forgot to install some drivers. What is the exact file you are running when you recieve the error message? I know it is the driver, but what's the file name? Quote from: Linux711 on April 14, 2010, 12:57:17 PM Don't go sue people or waste money on a new computer. I am sure the tech just forgot to install some drivers. Would you be so forgiving if the surgeon "forgot" to "install" your new kidney? |
|
| 2038. |
Solve : Format Command--Need help? |
|
Answer» What is the MSDOS command to format a disk with the following PARAMETERS: |
|
| 2039. |
Solve : Logical OR operator? |
|
Answer» This is what I'm trying to do: Ah, so there isn't a logical OR.Or as an alternative, you can learn a different language that has better support for such things and more, EG Python Code: [Select]>>> versions=("xp","2000","2003","nt","here","you","can","add","more","different","checks","etc","etc","etc") >>> if win_version in versions: print "hurray, suitable version" Quote from: ghostdog74 on April 13, 2010, 05:54:39 PM you can learn a different language What a surprise! I wasn't expecting that! Quote from: Salmon Trout on April 14, 2010, 12:00:02 AM What a surprise! I wasn't expecting that!Salmon...!I'm fairly certain Ghostdog is now mentioning alternatives such as python, grep, SED, etc. just because he knows it annoys ST, heh. And hey! here's the BEST part about the python approach! it's cross-platform! now you can check what version of windows you have installed on Ubuntu! Quote from: BC_Programmer on April 14, 2010, 06:21:29 AM I'm fairly certain Ghostdog is now mentioning alternatives such as python, grep, sed, etc. just because he knows it annoys ST, heh.no, i am not. I have been suggesting alternatives long time ago using vbscript, Perl , Python etc. and no, remember, my posts are never meant for anyone else but the OP. They are 100% for the OP to solve his problem. Whether one is "annoyed" or not, I don't care. Quote And hey! here's the best part about the python approach! it's cross-platform! now you can check what version of windows you have installed on Ubuntu!i am assuming you are joking. |
|
| 2040. |
Solve : How to install windows on an empty hard drive?? |
|
Answer» I just had a virus that killed everything in my Hardrive. Please make it clear what happened. Okay. I'll explain from the start. I have two computer at home. One of 'em got a virus. I had to formate it. So, I put the Hard Drive *the one with the virus* in a Case for internal hard drive. Plugged it to another computer. And I formated it. Now, it is empty. I have the CDs to install windows. But, I put the CDs into the CD-drive of my computer (that works) Windows will only install itself on the computer that works, not the empty Hard Drive... So, how to I install... a new exploitation system... on a empty hard Drive? Quote from: Allan on April 11, 2010, 04:49:32 AM Boot to the OS cd and the install process will begin.Windows must install on a internal drive. You can not install it on a hard drive in a box outside the computer on a USB. Well, you could, but if you knew how to do that you would not have come here, The empty hard drive has to be inside the PC and plugged into the normal interface cables. Quote from: Geek-9pm on April 11, 2010, 08:58:56 PM Well, you could, but if you knew how to do that you would not have come here, And, would you agree to help me out? By, you know, just explaining how? Since Windows OS's since WinME were designed this WAY for copyright reasons i'm afraid we can't assist with that... Quote from: patio on April 12, 2010, 03:52:14 PM Since Windows OS's since WinME were designed this way for copyright reasons i'm afraid we can't assist with that... Is there a way I can re-install it then?? Quote from: LeJer on April 13, 2010, 03:09:51 PM Is there a way I can re-install it then?? Put it back into the computer it came from. You were already told this. step 1. put the formated hard drive into the original computer step 2. put the instalation disk into that computer step 3. turn on the computer and it will ask if you want to start the instalation step 4. click yes step 5. tada |
|
| 2041. |
Solve : Networking DOS with XP? |
|
Answer» I have an old DOS 6.22 computer with a 3com Etherlink III network card. I want to network the computer so I can access the shares on my XP machines. I installed the microsoft network client 3.0 for DOS program. In one of the ini files I had to disable DHCP (never use it) and assign the computer an IP. When I REBOOTED, it tells me that I need to type a username and password. This is the part that is confusing me. My network does not have any domain servers, its just a simple windows XP workgroup. All I want to do is be able to access the network shares on the XP comp. I tried just leaving both USER and pass blank, but when I try to ping I can't access ANYTHING on the network.can you ping web sitesSorry it took so long for the reply. can you ping web sitesNo, it just says "the name can not be resolved". I found that the only thing I can ping SUCCESSFULLY is the router. But at least now I know the card isn't broken. So does anyone have any ideas?I just noticed that it can only ping the router if all the computers on the network are off. After I turned on this comp, it wasn't able to ping the router anymore. Correction: when I ping a site, it says "the node google.com can not be resolved."do you have dial up. Quote do you have dial up. no |
|
| 2042. |
Solve : Batch File That Accepts Two Input Parameter To Copy A File? |
|
Answer» we have a scheduler called TIDAL Enterprise Scheduler a software that we use to schedule a job. the scheduler RUNS a windows copy command to copy a file however the job failed when it does not find a file. to avoid this a batch file is a workaround to check if the file EXIST and if not return a friendly message that tells the file is not found. set pInputFile=%1% If so, try using: Code: [Select]set pInputFile=%1 set pOutputFile=%2 Quote set pInputFile=%1% to clarify passed parameters have only one % sign, before the number right... %1 %2 %3 etc wrong... %1% %2% %3% etc you should use ~ for possible quotes Code: [Select]set "pInputFile=%~1" set "pOutputFile=%~2" thank you all that works when i removed the extra % from the parameter and make it like this below: Code: [Select]set "pInputFile=%~1" set "pOutputFile=%~2" there is another thing that's going on with the batch file. when the file is not found it didn't go thru ELSE. please advise. Try the following: Code: [Select]if EXIST %%a (echo %%a was found) ELSE echo %~nx1 missing |
|
| 2043. |
Solve : Protected Mode DOS/16M error [6] Insufficient memory to load program.? |
|
Answer» Hardware: Acer Aspire 4720Z Laptop (Pentium Dual Core, 2GB RAM, 100GB Disk). |
|
| 2044. |
Solve : "The system file is not suitable for running MS-DOS..." Please help me with this? |
|
Answer» Hi, APPLIES TOI was referring to the information below when I said it didn't apply to Windows XP Make sure that the line, "device=%SystemRoot%\system32\himem.sys," exists in the CONFIG.NT file. Make sure that the line, "lh %SystemRoot%\system32\dosx.exe," exists in the AUTOEXEC.NT file. Expand HIMEM.SYS, DOSX.EXE, or both from the Windows NT setup disks or CD- ROM disc if either or both are missing from the SYSTEM32 directory. For more information on DOSX.EXE, query on the following keywords in the Microsoft Knowledge Base: WOW and 16-BIT Back to the top -------------------------------------------------------------------------------- APPLIES TO Microsoft Windows 2000 Server Microsoft Windows 2000 Advanced Server Microsoft Windows 2000 Professional Edition Microsoft Windows NT Advanced Server 3.1 Microsoft Windows NT Server 3.51 Back to the top Katy1977I now found this from someone who had the same issue: I solved the problem by copying the following files from another XP Home Edition computer that did not have the problem to the following locations c:\windows: _default.pif c:\windows\system32: config.nt autoexec.nt dosx.exe cmd.exe command.com What ever was screwed up, got replaced with a good one. My question is, if I try this, can I cause more harm than good? I was able to copy and paste the autoexec.nt file from my laptop to my desktop, but I didn't have that file in my computer. I do have the other files in my computer and want to know if I copy and paste them from my laptop are they automatically replaced? Is this advisable? Maybe the printer will work then. I"m looking forward to hearing back from some of you as to what to do, thanks so much. Katy1977I actually copied the file on my laptop from a Windows XP home version, and my desktop has Windows Pro, so I'm wondering if this is why the printer still isn't printing...Also, I'd really appreciate any help on the last few posts I've posted, thanks so much and have a great day everyone. Katy1977have you ever considered taking it back to the tech who screwed it up in the first place? with a bootleg copy of XP? Quote from: BC_Programmer on April 13, 2010, 03:56:09 PM have you ever considered taking it back to the tech who screwed it up in the first place? <And> with a bootleg copy of XP? I actually had the computer tech (I'm using that term very loosely) come back on Saturday and he couldn't fix it, all he did was try to download the drivers from the Epson site which I had tried already unsuccessfully. Believe it or not, his answer was that the printer broke! Ten minutes later he mentioned that he sells computers, my husband and I were both annoyed and wanted to laugh at the same time, I cut my LOSSES with him and would rather figure this thing out myself, of course, with the help of the real experts that are on this forum. Faith |
|
| 2045. |
Solve : how to execute cmd on local machine instead on Remote Machine? |
|
Answer» Here's my situation. |
|
| 2046. |
Solve : Extract info from Dir? |
|
Answer» Win XP H. echo offwhich works quite well but the last two lines of the listing contain the FILES and directory info which I don't want. The info extracted from those lines is Quote 195 File(s) Is there any way of getting the for loop to ignore the final two lines. Obviously the contents of the lines will change when another folder is listed. ThanksUse the /b SWITCH with dir , the bare formatSince you are only setting one variable you dont need to use an array.. and with /b switch you dont need to skip any lines for /f "tokens=*" %%a in ('dir c:\*') do set line=%%aThe idea is to be able to extract information from the Dir listing. That information could be any combination of the information produced by Dir, last access date, created date, last written date, file size, filename etc. using the /b switch suppresses everything but the file/folder name so how could I extract say the file/folder name and creation date if /b is used??? Quote from: Woodman on December 10, 2008, 12:06:27 AM The idea is to be able to extract information from the Dir listing. That information could be any combination of the information produced by Dir, last access date, created date, last written date, file size, filename etc. using the /b switch suppresses everything but the file/folder name so how could I extract say the file/folder name and creation date if /b is used??? You can still get the file info with dir /b. Type for /? at the prompt and read the part about variable modifiers. Quote from: diablo416 on December 09, 2008, 11:52:11 PM Since you are only setting one variable you dont need to use an array.. What array? Since when did cmd have arrays? Quote from: Dias de verano on December 10, 2008, 12:15:17 AM Quote from: diablo416 on December 09, 2008, 11:52:11 PMSince you are only setting one variable you dont need to use an array.. don't be so sure, maybe diablo416 knows something you don't. heh. yeah.... When did we start helping Megaman 2 Robot masters anyway? Quote from: Dias de verano on December 10, 2008, 12:13:42 AM You can still get the file info with dir /b. Type for /? at the prompt and read the part about variable modifiers. Right on the mark thank you. I found everything I need except a syntax to return file ownership details. Do you know of one? I tried o and q without success. This would be a case of knowing your data up close and personal. You can send the directory list through the pipe, excluding lines which have either an open parenthesis or a close parenthesis. Other characters could be used and you could include characters as well. Code: [Select]echo off cls setlocal enabledelayedexpansion for /f "skip=4 tokens=1-6" %%a in ('dir /q /a:-d c:\*.* ^| find /i /v "(" ^| find /i /v ")"') do ( echo Owner: %%e File: %%f ) To access the other columns in the dir list, you'll need to reference the other variables defined by the tokens parameter. Quote Quote from: Dias de verano on Today at 02:15:17 AM Personally I have always thought of batch language as a trip down the rabbit hole, so who better to consult than the White Knight about arrays in batch code: Code: [Select]set month=12 for /f "tokens=%month%" %%i in ("January February March April May June July August September October November December") do ( set month=%%i ) echo %month% Hmmmm, his logic could be backwards, but since he is talking backwards, he got it right! Quote from: Sidewinder on December 10, 2008, 05:00:52 AM Personally I have always thought of batch language as a trip down the rabbit hole, so who better to consult than the White Knight about arrays in batch code: That's a pseudo-array. Quote from: Dias de verano on December 10, 2008, 11:42:13 AM Quote from: Sidewinder on December 10, 2008, 05:00:52 AMPersonally I have always thought of batch language as a trip down the rabbit hole, so who better to consult than the White Knight about arrays in batch code: Exactly; I see no subscripts anywhere.Good grief! Tough crowd. Quote That's a pseudo-array. What is a pseudo-array? Quote Exactly; I see no subscripts anywhere. I was under the impression that the month variable acted as an index into the array. However the White Knight suggested the following snippet for all the index lovers out there: Code: [Select]echo off setlocal enabledelayedexpansion : Make Array for /l %%y in (1, 3, 68) do ( call set /a idx=%%idx%%+1 call set array.%%idx%%=%%y ) : Read Array for /l %%i in (1,2,11) do ( for /f %%x in ("!array.%%i!") do ( echo Array Index: %%i Value: %%x ) ) Thank you Sidewinder - the code in your reply #8 is a great learning experience and of course works splendidly. The other comments in various replies about arrays, pseudo-arrays, White Knight et al are way above my level of knowledge. I cannot find that an array as shown in your reply #11 has anything to do with extracting Dir details but I'll keep LOOKING (or did my thread just get hijacked?). Thanks to all for the input, much appreciated. Quote from: Sidewinder on December 10, 2008, 06:28:23 PM
any attempt to use arrays in batch is a pseudo array. the definition of an array holds that they all have the same name, and are accessed via noncongruous subscripts. In your examples, each variable has a name that is simply formed from the index it refers to, there is no way to reference the array as a whole. for example, if you were to list environment variables after creating a "array" as you've described it, it will show all the "elements" of the "array". Although I must contend that it is a good workaround that offers array-like access methods. A similar thing occured with javascript, java doesn't have intrinsic support for arrays. The original solutions were pretty similar to that which you've created. Anyway, the entire problem dissapeared when JavaScript became an ECMAscript, and the standard (i believe) imposed the creation of an "Array" object. Arrays are something that can be simulated, but unless the language specification actually mentions it, you can assume that you can't create anything that can be called an array in formal terms. (VB docs mention array a lot... same with C and a lot of other languages (javascript notwithstanding, lol), but the docs for command line extensions and so forth? Don't think so.) What you've done is analogous to creating a file that contains other files, and calling it a file system. While you can access the files, you cannot do so using standard file system methods, just as you can do array-like things with your creation here, but cannot access it using standard array-access methods as supported by numerous array-featuring languages (javascript notwithstanding). And finally, I must mention that it is a clever way of adding the ability to work with sets of data, assuming environment space isn't at a premium, of course. |
|
| 2047. |
Solve : Makeing a batch exicute a text? |
|
Answer» hello im a bit new to batch files. OK is there any way to make it so that after i make the batch open notepad it enters a text into the notepad. right i understand that. but is there any way to first open the notepad.exe then have the batch create a line in the notepad. like No. Notepad is a WINDOWS application. You'll need to use a language that can grab a handle to a window. VBScript sample: Code: [Select]Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "notepad" WScript.Sleep 100 WshShell.AppActivate "Untitled - Notepad" WScript.Sleep 100 WshShell.SendKeys "This is line 1" WScript.Sleep 500 WshShell.SendKeys "~" WScript.Sleep 500 WshShell.SendKeys "This is line 2" WScript.Sleep 500 WshShell.SendKeys "~" WScript.Sleep 500 WshShell.SendKeys "This is line 3" WScript.Sleep 500 WshShell.SendKeys "~" WScript.Sleep 2500 Save script with a VBS EXTENSION and run from the command line as wscript scriptname.vbs Good luck. |
|
| 2048. |
Solve : Checksum test using batch? |
|
Answer» I was wondering if someone might be able to show me a way to perform a Checksum test between two files a KNOWN good and a questionable ONE USING a batch? There is file compare that can be run, but is that the same as a checksum or does it only look at name and size, where a checksum will detect a variant between say Test.txt of 4k in size and another Test.txt of 4k in size with altered contents but taking up same name and storage space. |
|
| 2049. |
Solve : How to Use Multiple Extentions? |
|
Answer» Is it possible to list multiple extentions to match in a single command, or do I need to USE multiple commands in a batch FILE, && operator? For example something like: |
|
| 2050. |
Solve : Dos 6.22 on HP ze4500 does not fill screen.? |
|
Answer» Hi, |
|