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.
| 5251. |
Solve : Scheduled task - batch file not started? |
|
Answer» I written a simple .bat file saved on a USB flash drive j: that connected on a sbs2003. |
|
| 5252. |
Solve : Enable messenger service? |
|
Answer» What MS-DOS command I write can automatically enable messenger SERVICE Then, I can use NET SEND command to send a MESSAGE to another computer?? |
|
| 5253. |
Solve : list of all computer in network????? |
|
Answer» hi is there any command to get LIST of all the computer in LAN? |
|
| 5254. |
Solve : using double quotes as delimiter in a for loop? |
|
Answer» Hi, |
|
| 5255. |
Solve : Automatically click "ENTER" twice to delete admin password? |
|
Answer» What MS-DOS command i can write to click (PROCESS)automatically "ENTER" twice to delete admin password in the BAT file. Therefore, computer won't ask user to manually click "ENTER" twice to delete it. hweontey, we suspect you are a hacker. Only hackers spell things with a z like forceguestz and msgz. I don't get why pplz do this. I think it's much easier and smoother to just say 'people' instead of 'ppl' and 'thanks' instead of 'thx'Here in the UK we call it "textspeak", kids in SCHOOL even turn in essays written like that, not knowing how to write in proper English. Since no valid reason has been offered on why this needs to be done Topic Closed. |
|
| 5256. |
Solve : how TO Automatically click "ENTER" twice to delete admin password? |
|
Answer» MY CODE in the notepad:: regedit /s Autoadminlogonz.reg regedit /s Forceguestz.reg regedit /s msgz.reg c: netsh.exe firewall set opmode mode=enable profile=all @echo off color F echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!DON't FORGET!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" echo "PLEASE CLICK "ENTER" TWICE TO DELETE ADMIN PASSWORD " NET user Administrator * At the beginning, I already set the admin password in the another BAT file for my computer. LATER, I want to click manually "ENTER" twice to delete the admin password after clicking the BAT file. BUT, I don't want to manually click "ENTER" twice to delete it. WHAT MS-DOS command i can write to AUTOMATICALLY "ENTER" twice to delete it??? Double Post. Topic Closed. |
|
| 5257. |
Solve : need to run CD rom drive in DOS? |
|
Answer» First post, and PROBABLY a very basic QUESTION for SOMEONE: |
|
| 5258. |
Solve : Wget with source code? |
|
Answer» i made a batch that uses WGET to copy the HTML and Copy the SOURCE into a text file. This works only if it is the INDEX though. like if I want http://lightstormlabs.com, it will get the HTML of the index and the TXT of the index, but if I want http://lightstormlabs.com/products.html, it will only give me the HTMLread the wget manual. what you want is some spidering actions. wget has options which you can specify the depths you want to go into |
|
| 5259. |
Solve : Automatically editing a text fiel using a batch file? |
|
Answer» My co-worker and I end up editing a text file every time we image a Sales PC. It is not easy and we frequently make mistakes. There are only 5 variables but 4 are used multiple times and it would be nice if we could come up with a way of using batch file (or something similar) that we could just type the 5 variables and let it insert them in the correct places. I have PLAYED around some and am not having any luck. Any help would be greatly appreciated.post an example of the text file showing the variables and where they go, editing anything confidential if you need to. post an example of the text file showing the variables and where they go, editing anything confidential if you need to. I have replaced the ACTUAL terms with the variable placeholders (%1, %2, etc.). Quote use CRMBasehere's a vbscript, if you are able to use it Code: [Select]Set wshArgs = WScript.Arguments var1=wshArgs(0) var2=wshArgs(1) var3=wshArgs(2) var4=wshArgs(3) var5=wshArgs(4) Set objFSO=CreateObject("Scripting.FileSystemObject") s="use CRMBase" & vbCrLf & _ "delete from au_st_sys_user" & vbCrLf & _ "delete from au_system_user" & vbCrLf & _ "delete from au_employee where emp_code = '" & var1 & "'" & vbCrLf & _ "insert into au_employee ( emp_code, first_name, last_name, " & _ "create_emp, last_mdfy_emp, row_id, rec_mdfy_ind, rec_del_ind ) values ( '" & var1 & _ "', '" & var2 & "', '" & var3 & "', 'aurum', 'aurum', 2, 'N', 'N' )" & vbCrLf & _ "insert into au_user_class ( class_code, rec_del_ind ) values ( 'AurumSales', 'N' )" & vbCrLf & _ "insert into au_system_user ( emp_code, login, pwd, create_emp, " & _ "last_mdfy_emp, row_id, rec_mdfy_ind, rec_del_ind, class_code ) values ( '" & _ var1 & "', '" & var1 & "', '8_49_76_69_71_72_72_7F_30_2C_A_17_1A_6_ 5_14', 'aurum', 'aurum', 2, 'N', 'N', 'AurumSales' )" & vbCrLf & _ "update au_system_user set exp_date = CURRENT_TIMESTAMP" & vbCrLf & _ "update au_system_user set exp_date = exp_date + 60" & vbCrLf & _ "insert into au_st_sys_user ( st_id, emp_code, st_emp_code, auth_key, authority_flag, " & _ "enable_esd_ind, create_emp, last_mdfy_emp, row_id, rec_mdfy_ind, rec_del_ind ) values ( " & _ var4 & ", '" & var1 & "', '" & var1 & "-R', '" & var5 & "', 'TT', 'Y', 'aurum', 'aurum', 2, 'N', 'N' )" & vbCrLf & _ "delete from au_system_id" & vbCrLf & _ "insert into au_system_id ( emp_code, system_id, auth_key, class_code ) values ( '" & _ var1 & "', '" & var4 & "', '" & var5 & "', 'AurumSales')" & vbCrLf &_ "go" Set objOutFile = objFSO.CreateTextFile("c:\outfile.txt",True) objOutFile.Write(s) objOutFile.Close Set objOutFile=Nothing usage: on command PROMPT type : cscript /nologo myscript.vbs var1 var2 var3 var4 var5Worked like a champ -- Thanks. |
|
| 5260. |
Solve : autoexec.bat question? |
|
Answer» Hi everyone, Hi everyone, No. This sequence of lines first RENAMES a file then makes a copy with the original name then deletes the copy so you end up with the same number of files as before. ren hostordr.ord hostordr.321 copy hostordr.321 hostordr.ord del hostordr.321 Quote But when i run scandisk i only see first few cluster of the HD being occupied, but not all of the HD. See above. Quote So is this command actually always writing to a new storage address or is constantly using a specific memory location only? When a file is renamed, the FAT (File Allocation Table) is updated, but the file data is not altered. Copying the file will mean a new area of the DISK is used, then when the file is deleted, the data remains but, again, the FAT is updated to show that area is available for reuse if needed later. Quote 2. I discover some bad sectors when running scandisk in DOS OS, does the bad sectors arrise because of my autoexec command? No. Quote 3. Is there a better way for my command to always update hostordr.ord to a new storage address when reboot? 1. The autoexec does not do what you think it does. 2. You do not need to do this anyway. Reads & writes do not wear out the disk. Bad sectors found by Scandisk may be a sign that disk is failing though. |
|
| 5261. |
Solve : Can't del directory.? |
|
Answer» Yes there was a file named "Folder.dat" |
|
| 5262. |
Solve : echo without newline? |
|
Answer» If you have ever wanted to do an echo in a BATCH file without forcing a new line, then you might like to try this little util that I wrote myself, called echonr. G:\>( Written in FreeBasic & compiled using FreeBasic compiler 0.16 for Win32 Source code (!): Quote print command$; If somebody would like to try compiling it in QuickBasic, we might find out if it works in DOS. [getting disk space - attachment DELETED by ADMIN] |
|
| 5263. |
Solve : Windows Batch Help Needed? |
|
Answer» Hi, |
|
| 5264. |
Solve : Pause Command Question? |
|
Answer» I used the search button and looked is 20 of the pages and still couldn't find what I am LOOKING for. ping -n 1 -w 1000 1.1.1.1 >nul This was on another thread. It is very useful.Quote from: Sharamall on November 06, 2007, 07:45:51 PM Quote from: Dark BladeLike I had said, I couldn't gather enough inforation about it to test it. What I ment by that was, I don't no what most of that is. Can you break it done for me? I know what ping is but everything else is a blure....ping -n 1 -w 1000 1.1.1.1 >nul |
|
| 5265. |
Solve : Help on BATCH FILE? |
|
Answer» Hello, |
|
| 5266. |
Solve : Batch Processing Excel Spreadsheet Data? |
|
Answer» Can DOS commands be used in a batch file to read and write data (numeric and text) in Excel spreadsheets? Can DOS commands be used in a batch file to read and write data (numeric and text) in Excel spreadsheets?Not directly. You can use vbscript |
|
| 5267. |
Solve : Screen Output plus Logging in batch file? |
|
Answer» Hi |
|
| 5268. |
Solve : How do I look the dir information?? |
|
Answer» I need to look at the files and including SUB folders files with data and time. If the list is very long you could redirect it into a file..or use a switch "|more" |
|
| 5269. |
Solve : Help to decipher what this batch is doing?? |
|
Answer» Can anyone help me translate the logic of this in English? I'm confused on what this is saying. |
|
| 5270. |
Solve : can not open cmd prompt..? |
|
Answer» wat wrong wif my computer, it can not open.. |
|
| 5271. |
Solve : Increasing Dos Memory? |
|
Answer» I am running Windows XP and using the DOS cmd emulator. Unfortunatly i am prompted to INCREASE the current dos memory. As of yet I have been unable to figure or find out how. Any advice or help would be appreciated. Go to C:\WINDOWS\System32 i am prompted to increase the current dos memory...never heard about such thing... Post EXACT message.I appologise, the exact wording is free up. ...requires a min of 590K of free space...free up x amount more memory settings already at auto What anti-virus and anti-spyware programs do you have installed? nothing other than WHATEVER windows would run on its own Quote ...requires a min of 590K of free space...free up x amount moreI really would like to see EXACT wording... I don't believe, you are getting any message about DOS MEMORY in Windows XP."UB requires a MINIMUM of 590k vytes of free dos memory to run. You need to free up 6-15k more bytes of Dos memory." Quote using the dos cmd emulatorAre you using some 3rd party DOS emulator? I have no clue what UB is...Sounds like the error message is generated by an application "UB"? This might be relevant. Good LUCK |
|
| 5272. |
Solve : exclude files while deleting? |
|
Answer» hey all, |
|
| 5273. |
Solve : windows 2000? |
|
Answer» I had a dos bootable disc that i PUT in the computer which was RUNNING windows xp very slow and needed to be formatted so I formatted the hard drive now when I put in the windows 2000 pro it will not boot the set up it just say strike f1 to reboot or f2 for setup utility how do I install the operating system windows 2000 on the computer? please help! |
|
| 5274. |
Solve : Need help in running a batch file!? |
|
Answer» Dear Friends, |
|
| 5275. |
Solve : How to make your batch file appear when logging on? |
|
Answer» I have tried and tried but it won't work |
|
| 5276. |
Solve : Enable " Wake-Up by PCI card"? |
|
Answer» What MS-DOS command I can write directly enable " Wake-Up by PCI card" in the BAT file??Quote from: chelsea007 on November 08, 2007, 08:20:42 PM What MS-DOS command I can write directly enable " Wake-Up by PCI card" in the BAT file??What exactly does Wake Up do. Welcome aboard... Say again?Quote from: Broni on November 08, 2007, 09:59:48 PM Welcome aboard...If it is re regist See REPLY on your email If not I just wanted to know what ' Wake-Up by PCI card ' actually doesI know, I don't understand it, either..." Wake-Up by PCI card" can be enabled or diabled in BIOS after selecting power management set up. What MS-DOS command I can write enable it in BAT file?Most NIC Manufacturers who have NIC's with this feature have software for the network adapters to be able to flash and edit the stored ROM settings. For instance 3COM has a DOS Utility that allows you to Flash or enable and disable features like PXE Boot, Wake On Lan, Show CTRL+S option at boot to allow for you to manage it without the need for the software to edit settings. If you are looking to run a BATCH to enable or disable your feature, you will likely find that your batch file wil LOOK something like below, where the 3comPCIMGT100.exe and the command switch of -WE is used for WOL ENABLE and WD for Disable. cls @echo. This will enable the WOL @echo. 3comPCIMGT100.exe -WE cls @echo. WOL has been enabled pause Your BEST BET is to find DOS support for your NIC and see if there is a utility that can run in DOS to run a program and switch as shown above. Good Luck! Dave |
|
| 5277. |
Solve : problem connecting to server drive? |
|
Answer» Having PROBLEMS connecting two of my office computers to the server. I get a CMD does not support UNC paths as current directories. Every morining I have to run cmd and log in / connect to the server files as an admin. I'm not sure why this only happens with two computers. The other two computers have not problem connecting. Im running Windows 2003 server and XP on the computers. Can someone give me some feed back. Thanks, Joe |
|
| 5278. |
Solve : Batch loop (Resolved) oops - error fix? |
|
Answer» Using the Command Prompt in Win XP. Date format is Day mm/dd/yyyy just out of curiosity, how did you work out the '%date:~4,2%. I mean, I know %date% shows the full date so how did you get the ':~4,2' in the line below? I'm definitely not the best one to explain that but in my understanding Date environment variable is stored as an 12-byte FIELD in the format such as Sun 11112007 and is obviously updated automatically when the clock goes past midnight. So %date=:~4,2% skips the first 4 bytes (Sun + space) and returns the next two bytes. i.e. 11 To select the year one would use %date=:~8,4% i.e. skip 8 bytes and return the next 4 making it 2007. (Or %date:~-4% would give the same result). Some instructions are here. I hope I've not made a fool of myself with the above explanation, my technical knowledge is not all that good. Thanks for the 12 IF lines, I already use that solution but looking for something a bit more sophisticated!! I don't understand your explanation that well. But it's not you, it's me, My technical knowledge is very advanced but I haven't got around to learning the 'Bits and Bytes' of Computers. Sorry I couldn't help much. Thanks for explaining. The completed file to display day, date, month and year using a For loop to give the month a name is shown below for anyone interested. The For loop was described on another forum.. Code: [Select]@echo off cls set dateday=%date:~0,3% set datemonth=%date:~4,2% set datenum=%date:~7,2% set dateyear=%date:~10,4% FOR /F "TOKENS=%datemonth%" %%a IN ( "JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC") DO ( set month=%%a) echo. echo. echo Day = %dateday% Date = %datenum% Month = %month% Year = %dateyear% Quote The For loop was described on another forum.. Can you give me the link to the post it was discussed in, please? Oh and I understand your explanation now... Never say sleeping over something won't work.Further testing has shown that an error occurs when datemonth is greater than 07 and the leading digit is 0 (AUG & SEP) so the set datemonth line should read: set/a datemonth=1%date:~4,2%-100 Apologies all round - testing continues. What does the '-100' do?Quote set/a datemonth=1%date:~4,2%-100Quote What does the '-100' do? Oh dear - bear with me on this one. It's not just the -100 which must be considered. You'll see that the original set is now set/a and there is a 1 prior to %date:~..... When Set/a detects a number beginning with 0 it uses the Octal (base eight) system. When considering August and September the month numbers 08 and 09 are invalid so Set fails. Set/a allows arithmetic calculations to be done. The 1 prior to %date:~... means that 1 is to be prefixed to the environment variable %datemonth%. When the month is August (08) %datemonth% would be set to 108. Then the arithmetic CALCULATION -100 is carried out and %datemonth% now becomes 8. I understand that without the leading 0 Set now defaults to the Decimal system (base ten). Cool, This is quite a good script, I would have never thought of it myself. |
|
| 5279. |
Solve : set variables to a list of data? |
|
Answer» i want to do something like this for /f "tokens=1*" %%a in ('%TEMP%\~mdt.txt") set %random%=%%a but when i do it sets all the LINES in mdt.txt as the same random number also i need a way of keeping track of these variables any ideas? You might try creating an array. You can certainly keep track of the upper and lower boundaries of an array easier than using random environmental variable names. Code: [Select]@echo off set idx=0 for /f "tokens=1* delims=" %%a in (%temp%\~mdt.txt) do ( call set /a idx=%%idx%%+1 call set array.%%idx%%=%%a ) I made the assumption that each line in the file was to be saved to the array. You can change this if need be. thanks .. but its not working, i tryed your code and i kept getting this no matter how i edited it ECHO is off. ECHO is off. ECHO is off. ECHO is off. ECHO is off. ECHO is off. ECHO is off. ECHO is off. ECHO is off. 0 so i tryed for /f "tokens=5*" %%a in (%temp%\iris) do set %a%=%%a & set /a a=%a%+1 & goto JJJ1 and i GET the same thing?I am unable to reproduce your results. Did you cut and paste the code or retype it? Actually there should be no OUTPUT at the console. The posted code simply assigns variables in the environment space to value of each line in the file. After running the code, check your environment (use the set command with no parameters at any prompt). You should find variables named array.1 with the value of the first line in the %temp%\~mdt.txt file, array.2 with the value of the second line, array.3 with the value of the third line, etc. While this is not a true array, it comes close to your original request as the array variable is indexed. I'm not sure what you can do with these results, you could spit back the file in reverse order, but I'm sure you have something in mind. PS. I notice that you changed the tokens= value from 1 to 5. Any particular reason? Note: Environment variables set thru batch files live only as long as the cmd window is open. Also keep in mind that unless the delims= value is OVERRIDDEN, the default is spaces and tabs.hey i appreciate it it works now.. it was my own error not your code |
|
| 5280. |
Solve : Celsius to Farenheit converter? |
|
Answer» I want to make a batch file that can convert Celsius to Farenheit. Your better off using a C program, or Q basic. Thanks guys, But all in all I will just have to forget about making one in Batch. Sidewinder, Thanks for the code, I know it's only a little bit off but I want it to be precise, Thanks anyway (still might come in useful).you just have to mutliply your values by 100 then add the . at the right place Code: [Select]@echo off set C=78 echo C = %C% set /a result=%c%*100*9/5+32*100 set /a F1=%result%/100 set /a f2=%result%-%f1%*100 set F=%f1%.%f2% echo F = %F% the output is accurate: Code: [Select]C = 78 F = 172.40 yp |
|
| 5281. |
Solve : Search drive for exe and run if found? |
|
Answer» Hi I was wondering how to go about making a BATCH file to search the C: for a particular .exe file, and to start it if it is found. |
|
| 5282. |
Solve : Extract info at command prompt? |
|
Answer» How do i extract INFORMATION from command prompt into any format like a text FILE or something, other than MANUALLY COPY and paste?? |
|
| 5283. |
Solve : Count on file name? |
|
Answer» Hi rem there's numerous basic DOS routines above this line I am THINKING that I need something where I have put the blank remark line to perform the action that I want. TabCount holds the number of files with a tab extension, so you would do something like If TabCount NEQ 1 GoTo ErrorLabel Rem else continue, only 1 present GrahamThanks Graham. Almost got it I think. Scratching my head over these following SCENARIO though:- Quote dir /b *.tab | find /c /i ".tab"> $test$ Ok these commands result in the variable having a value of 1 (I have checked using Set) But with the following code:- Quote If TabCount EQU 1 Goto OneReturned The result is always NEQ 1 - have I MISSED something? Thanks Whoops, my fault I forgot to wrap the TabCount in % symbols It should have read : If %TabCount% EQU 1 Goto OneReturned If %TabCount% NEQ 1 Goto TooMany If you really want to test that the condition, try this REM test line below Set TabCount=2 If %TabCount% EQU 1 Goto OneReturned If %TabCount% NEQ 1 Goto TooMany GrahamSpot on! Edit: ANYBODY reading this and wanting to use similar syntax, it is worth checking the name of your variable - as the set up above requires checking the condition against %TabCount % and not %TabCount%. To check this, once you have done this bit:- Quote dir /b *.tab | find /c /i ".tab"> $test$ Issue a Set command to see how the variable is held. Mine came out as TabCount =1 Therefore when I issued the If %TabCount% EQU 1 go do something - it ignored the line as the condition was not met. Changing to If %TabCount % EQU 1 go do something worked. ANyway, thanks for the solution Graham! |
|
| 5284. |
Solve : Need some help with long text!!!? |
|
Answer» Hi I tried doing test.exe >> myfile.txt but it gave me an error because the program is looking for a certain file to get the information.what kind of error, do you mean that test.exe needs an input file? the double redirection (>>) will append the output at the end of the selected file Code: [Select]nameOfExe.exe >> file.txt you could use only one redirection (>) this will overwrite the file Code: [Select]nameOfExe.exe > file.txt you might also try the MORE command: Code: [Select]nameOfExe.exe | more /p ? ? ? |
|
| 5285. |
Solve : free vista cmd tool? |
|
Answer» Hydrafind -Instantly find and open any FILE (much faster then dir commands) -Find other possible matches and save keywords to open specific files -fixed all known bugs -the more specific you are the faster it is , example searching config.nt should be instant. -for vista only , if theirs any errors tell me, - by downloading you hereby agree that im not RESPONSIBLE any damages/loss of data from this executable file and while it is not promised or gaurenteed to contain no bugs or to cause damages to your computer and or other persons computer it has been checked, however im still not liable. [getting disk space - attachment deleted by admin]With that disclaimer i think i'll pass for now... Where is this from or is it something you are tinkering with ? ?its just a batch i WROTE converted to exe, heres the latest version HydraFind also will probably WORK in xp maybe even 98 to bypass the part about vista goto the line and type 00>>%temp%\B~au1 |
|
| 5286. |
Solve : Checking status of executable via DOS Batch command? |
|
Answer» How do I check on the status of executables running on a Windows2003 SERVER via DOS Batch command?The FOLLOWING comand shows a LIST of running tasks : |
|
| 5287. |
Solve : Command > Subcommand? |
|
Answer» Hi |
|
| 5288. |
Solve : search entire C: drive for *.doc and *.xls and copy to thumb drive? |
|
Answer» So I am looking for a way to search a C: drive through use of a batch file at the command prompt of Windows XP for all files *.doc and *.xls on a C: drive and copy them to a thumb drive. I saw activity on the thumb drive, but didnt see any files copied across to it. The reason for not seeing any display of files copied is > NUL which is suppressing output to your monitor. If you want to see what's being copied delete this from both lines. Quote I was also curious thinking about how I should handle if there was more than one file found with the same name such as in her archive folders. Xcopy/s creates a directory system on your thumb drive which mirrors the directory system on C: so that a file which resides in C:\Sales_files\October\First_Week will be copied to J:\Sales_files\October\First_Week, so any file duplication in different directories is irrelevant. Try running the bat then have a look at the thumb drive to see what's been done. Note that your bat Xcopies all occurrences of .doc and .xls files and the ECHO A piped command means that you are not asked to approve overwriting on your thumb drive so that the second and subsequent runnings of the bat can be unattended. Date/time stamping can certainly be used to xcopy only the latest and greatest. Once you have implemented your backup system I suggest you then test your backup files. Nothing worse than needing your backed-up files only to find you cannot access them - it happens HEY your correct! It does copy the folders structures over only if a xls or doc is tied to the end of the tree as XCOPY would do. Thanks Again!!! The user is VERY HAPPY with this band aid to their bad habit of storing data everywhere !!!! DaveThanks for getting back with your result.. Quote since she is in upper management I have to come up with a solution to accomodate her needs If you get a big fat bonus for this I expect my share via Western Union... LOL Good luck |
|
| 5289. |
Solve : install software through the network on a target computer? |
|
Answer» I want to install some software on a target computer. This computer is a member of our LAN network but he is located on another location. We want to remotely install some software on this computer. We don't have any software to deploy updates and new software (like microsoft sms). The question is can I install the software through a dos command ?? The question is can I install the software through a dos command ?? Not LIKELY. Net Use will map a remote drive/folder to your LOCAL machine. When you run the install, even if the software installs to the remote drive, it will be the local registry (on your machine) that gets updated. Check out the Script Center for tools to handle remote CHORES. Both the new Powershell CTP and VBScript 5.7 have tools for remote EXECUTION using HTTP protocol. Note: The Powershell CTP is an early release of Powershell 2.0. Use at your own risk. VBScript 5.7 is stable and functionally complete. |
|
| 5290. |
Solve : Batch file help need - executing link to silent install or executable? |
|
Answer» We have a link to share that silently installs the MICROSOFT SMS client on machines. |
|
| 5291. |
Solve : i need Dos 3.1 or dos 4.1? |
|
Answer» I need dos 3.1 or dos 4.1. thar is very impotant for me. PLEASE help and direct me. I dug through my bookmarks and found what I remembered, and was going to post this: |
|
| 5292. |
Solve : Batch files and characters not recognised by DOS? |
|
Answer» Hi All |
|
| 5293. |
Solve : Batch File to send Space command to running Dos software? |
|
Answer» My APC Backup UPS 400 will be used to send a "space" command to the running Dos program. |
|
| 5294. |
Solve : Using batch file to Backup to another machine? |
|
Answer» Hello, |
|
| 5295. |
Solve : DOS Error?? |
|
Answer» Hi, so i typed "ipconfig /all" without the quotes into MSDos By MSDOS, I'm guessing you're referring to the CMD shell program. Check your PATH. In order to find IPCONFIG, C:\windows\system32 must be on the path. 8-) Hi Sidewinder, Yup, that WORKED! Is there anyway i can set the starting path to be c:\Windows\System32 instead? ThanksRight click My Computer==>Properties==>Advanced==>Environment Variables Edit the PATH variable. User variables refer to only you; system variables refer to every user. OK your way out. No need to reboot; changes are immediate. I"d be curious how this got mucked up. The system32 dir is a standard path entry for XP. Good luck. 8-)Hi Sidewinder, What should i add into the PATH variable? There are some values inside that PATH variable that allows my OS to do some Java compiling or something. I was asked to do this by my lecturer in school. The value is "C:\j2sdk1.4.2_03\bin;C:\Sun\AppServer\bin".Edit the PATH Variable Name. Insert either %SystemRoot%\system32; OR c:\windows\system32; into the beginning of the Variable Value. Be careful not to muck up whatever value is already there. It is very necessary that you include the semi-colon. Good luck. 8-) Quote Hi Sidewinder, Aha here's where it got mucked up...Hi, I have entered the values you as MENTIONED, when i GO to my ms dos, the starting path is still the same but when i type in ipconfig it works. Why is that so?the starting path is still the same The starting directory is still the same but your path now includes your system32 directory. (By default your system32 directory is in your path but you must have deleted it with the previous change. You can now set your opening directory to be C:\> for the neatness factor and everything will still work. (I like neat) Quote You can now set your opening directory to be C:\> for the neatness factor and everything will still work. Right click the shortcut used to launch CMD==>Properties Change the "Start In" value to the directory of your CHOOSING. OK your way out. 8-) Neatness Factor: 9.7 |
|
| 5296. |
Solve : not getting any ip with netstat command!? |
|
Answer» hi guys i dont get any ip with netstat COMMAND for instant msgs COULD u please help me out of this PROBLEM Possibly trying to find someone he IM's to maybe ? ? If that is the case run NETSTAT with EITHER the -n switch or the -b switch. This should give you the info you need. 8-) In the mean time, I'm goin' fishin' with Patio. |
|
| 5297. |
Solve : Exit Code? |
|
Answer» How can I check the exit code/return value from a program being executed in a batch file? |
|
| 5298. |
Solve : if exist doesn't work in some cases (? |
|
Answer» Hello, if exist "\\%PC%\c$\WINNT\Profiles\All Users\Start[highlight]*[/highlight]\Programme\Front End\logon.lnk" (echo logon.lnk OK)I suspect the problem is with the wildcard in the middle of the path. A little testing shows wildcards only seem to work at the end of the path. Code: [SELECT]if exist "\\%PC%\c$\WINNT\Profiles\All Users\Start\Programme\Front End\logon.[highlight]*[/highlight]" (echo logon.lnk OK) 8-) Tested on XP SP2 but should be BACKWARD compatible.Many thanks Sidewinder. The easiest solutions are often the best. :-) (I used the wildcard cause of the ü, (no ascii letter), makes sometimes trouble.) uli |
|
| 5299. |
Solve : wat is d best way 2 make a opengl?? |
|
Answer» plz give me some advise 2 make it thnx GOOGLE came up with over 25 million hits INCLUDING lots of tutorials. I GUESS there's no 'best' way just multitudes of ways & you have to SELECT the best ONE for you.. |
|
| 5300. |
Solve : Startup Batchfile? |
|
Answer» Yet another request for a batchfile and an edit to my autoexec.bat. |
|