

InterviewSolution
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.
1901. |
Solve : Java Tutorial...? |
Answer» Hi, I have a exam in my PROGRAMMING class and I would like a JAVA TUTORIAL but I dont know which one because there is quite alot on Google. So if someone has a link to a very WELL organized Java Tutorial then please let me know |
|
1902. |
Solve : VS2005 Form Issue? |
Answer» Does anyone know a way to run the WHOLE from as a Local Admin? |
|
1903. |
Solve : most recent java? |
Answer» Havent had to re-install the java standard development kit in a year or so. went to download, what I thought was the most recent version (5.0) only to discover all this j6u stuff all over sun's website. is this the NEWEST java developers release? CURRENTLY, the newest version is 6.0 Update 1. You'll want to upgrade to that and then remove any older VERSIONS. |
|
1904. |
Solve : Visual Studio 2005? |
Answer» I have a database (ms-access), i can delete, update all those things but i have implemented a login page that USERS must enter to access to specific rihgts. Oh its a windows application. I'm guessing that you used the Data Source Configuration Wizard for the database connection. The also seems to be a missing SQL statement to execute against the database. |
|
1905. |
Solve : help me with this!!!? |
Answer» I know a little bit of c and c++,I dont know advanced PROGRAMMING(i am not familiar with OOPS CONCEPT).i can only write code for small programs like palindrome,fibbonacci etc,i want to learn more advanced programming.I need u to SUGGEST how i can improve my programming skills.. • A database is a collection of information stored in a computer in a systematic way, such that a computer program can consult it to answer questions. The software used to manage and query a database is known as a database management system (DBMS). The properties of database systems are studied in information science.From Google Definitions C++ TUTORIALS • C++ Language Tutorial • Online C++ Tutorial • Googled, look for yourself |
|
1906. |
Solve : php - execute external programs in the background? |
Answer» I would like to execute an external CONSOLE APPLICATION with parameters in the BACKGROUND in a php (i.e. the php will not wait for the completion of the PROGRAM and it will CONTINUE to run) |
|
1907. |
Solve : need help in DOS program? |
Answer» I want to find the path of a file |
|
1908. |
Solve : A function in "C"? |
Answer» I have a problem with writing a function in "C". I don't know how to do this - to make an array with some elements an empty array. I mean to clean the array so that it doesn't have any elements and then fill it again with other elements.do you know how to code a loop? A 'for' or 'while' loop would work nicely. |
|
1909. |
Solve : VBA: Internet_Assistant password? |
Answer» I am running Excel 2003 on XP. |
|
1910. |
Solve : my first language? |
Answer» i started off with C++ that was a bad idea... at LEAST i know it now tho.. and JAVA and VB are completely different, but it helped me with them too |
|
1911. |
Solve : Use the registry in visual basic 3.0? |
Answer» How can i edit, view, and change values of the registry using vb 3.0. Do i NEED a .dll that will work with vb 3.0?I don't recall anything specific in the VB3 product that allowed the user to mess AROUND with the registry. Check out this VBX CONTROL which may be USEFUL. Scroll down near the BOTTOM to REG_INI.ZIP |
|
1912. |
Solve : VB or C++?? |
Answer» I was wandering, what are the actual differences between VB and C++? |
|
1913. |
Solve : Programing help? |
Answer» I do not know if this is possible in programing bu i shall ask. here's a vbscript. save as myscript.vbs, then on command prompt, type cscript myscript.vbs Thank you so much. Is VB easy to learn?Quote Thank you so much. Is VB easy to learn?this is subjective. It depends very much on your determination on learning something. If you are interested, head down to technet to get some exposure. |
|
1914. |
Solve : how to copy just file names and their size in a notepad file?? |
Answer» hi i want a program/utility/code which just COPY the FILE names in a WHOLE disk and their size also in a notepad file something like log file plz help... Download, and install Disk SPACE Reporter: http://www.softpedia.com/get/System/System-Info/Disc-Space-Reporter.shtml |
|
1915. |
Solve : cant delete hidden file? |
Answer» @ECHO OFF @ECHO OFF the main person to do that would be the administator of the computerQuote from: night-rider on May 14, 2010, 09:02:02 PM @ECHO OFF Depends on the current directory. The attrib command operates on the current directory unless otherwise specified. Code: [SELECT]@echo off attrib f:\folder\*.* -R -H -S echo Y | del f:\folder1\*.* > nul exit I doubt it's a permissions issue. I suspect the attrib and del commands ran against two different directories. Good luck. Correction to previous post: Code: [Select]@echo off attrib f:\folder1\*.* -R -H -S echo Y | del f:\folder1\*.* > nul exit Sorry for any confusion. actually I already solved my problem about this topic. but THANKS anyway for the lesson!!! I used the rmdir command!you can use the http://www.filehippo.com/download_unlocker unlocker program which deletes such files... |
|
1916. |
Solve : usb-save my file? |
Answer» help me please!!! thanks for the reply! have you tried a diffrent usb?not yet! by the way what's that actual way that you say? steps please??? so that next time I will apply itI THINK by 'Refresh' he meant 'Reformat', which is exactly what you had done, and what I would have done in your position. If it keeps corrupting, it's most likely a dead USB Flash Drive.Quote from: CARBON Dudeoxide on June 04, 2010, 01:40:43 AM I think by 'Refresh' he meant 'Reformat', which is exactly what you had done, and what I would have done in your position. yes that is wot i MEAN reformat the usb ooops! o i c Quote from: night-rider on June 04, 2010, 02:01:40 AM ooops! o i c ok is that ok Quote from: norrisdaniel on June 04, 2010, 02:12:51 AM ok is that ok does that help youslight! thanks for the suggestion! |
|
1917. |
Solve : quick launch icon @ taskbar? |
Answer» how to PLACE a quick launch icon @ the taskbar for .EXE? |
|
1918. |
Solve : Vbs scripting problem? |
Answer» The batch code is like this: |
|
1919. |
Solve : .bat save folder with date? |
Answer» I WANT to back-up my folder from drive F:\ to c:\ |
|
1920. |
Solve : lock clock!? |
Answer» HELLO to all! how to lock the clock in my computer? is there a software for that? or code or procedure? thanks in advance!!!First off, why? To prevent other users from changing the clock?does the OP mean freeze the clock so it shows the same time for ever, or disable users from changing date & time?yap! because my system depends on the true date and time of the computer. In order to prevent the entry of FALSE data in the dbf. If they can edit the time and date of the computer then they might manipulate the records of receipts in my system.And you don't know about business PC security? Quote from: Salmon Trout on June 02, 2010, 11:04:40 AM And you don't know about business PC security? Here's a good lesson: night-rider, Control Panel -> Administrative Tools -> Local Security PolicyExpand Local Policies, and hit User Rights Assignment. On the Policy list right click "Change the System Time" and hit properties. On the Properties window remove the user groups that you don't want to change the system time. (If you DELETE Administrators, you can always go back and re-add them to that list.) ,macdad-(Nick)I was just wondering about somebody who is running a business and imagines that getting mission critical security support from a forum is a viable solution... Quote from: Salmon Trout on June 02, 2010, 01:16:51 PM I was just wondering about somebody who is running a business and imagines that getting mission critical security support from a forum is a viable solution... Sorry, wasn't trying to be critical, but true it is somewhat questionable, but we've seen it happen several times before and we still help them.thank you so much Macdad- this was a big help really to us! is it possible to code it in batch?Quote from: night-rider on June 03, 2010, 03:35:55 AM is it possible to code it in batch? Nope, this is a manual OPERATION only.o i c! thanks again... |
|
1921. |
Solve : Save file name with date at end of file name....? |
Answer» I would like to COPY an existing file (bridium.txt) and save it to another location but with the current date in the file NAME (bridium06012010.txt). How do I accomplish this with a bat file?I got it figured out..... |
|
1922. |
Solve : VBS code for hiding windows start button? |
Answer» sorry for bad spalling, i would use the spell cheker but my lens just fell out so i can hardly see a thing i'm making fake virises using vbs script and i was wandering if someone could past the code for hising the start button for windows.Have a nice trip! Please don't come back until you've decided to do SOMETHING less against the rules.Quote from: PlasmaticJj on June 01, 2010, 04:13:00 PM if you are wandering why im doing this, it is becuse our school admin liks looking thrugh our profiles and deleting the odd essay we took 7 days to write, or the odd photo album we where going to use in our photography projects... Don't you just love how people try to shirk responsibility like this? they didn't it, somebody else deleted it! Of course! It's not because the bell rang and they closed word without saving, or because they simply pressed the power button and nothing was saved, or the fact that they didn't even have a backup copy (how long does it take to make a copy? 5 seconds maybe?) Nope. It was somebody else doing it. They had made the file, somebody else has obviously deleted it. How he surmises it's the administrator I don't know. A school administrator...who would hire an idiot?Quote from: Helpmeh on June 01, 2010, 05:19:26 PM A school administrator...who would hire an idiot? Quote (our administator is stupid, hese using a windows home surver as a school buisness server!) last time I checked a school wasn't a business. Does it work? Then what's the problem? Also, I'm tired of this WHOLE thing where how good you are with computers somehow translates into direct knowledge. I've seen people called retards because they can't get to the resolution dialog. The thing is they had NEVER USED A PC BEFORE EVER. It's not like it's some kind of genetic memory. As much as we'd like to think otherwise, NO computer is INTUITIVE, there is always learning involved. and knowing more about how a computer operates then another doesn't make you smarter then that other person, just like not knowing how to make a souffle doesn't make you dumber then most chefs. It's rather a case of ego-centricity- "I'm good with computers, so I'll use that as a scale to measure everybody elses intelligence as well". It doesn't work that way. Quote from: BC_Programmer on June 01, 2010, 05:28:09 PM It doesn't work that way.Gosh darn it!I work for a government department. Our site uses Windows Home Server, which is built on the same codebase as Windows Server 2003 SP2. Quote from: BC_Programmer on June 01, 2010, 05:28:09 PM
It "works" in the sense that it explains the mindset of some socially inadequate teenage (usually but not exclusively) geek types, who desperately need something to shore up their weak egos.The schools should require students to read this book before putting a a computer in the classroom. Quote Joseph Weizenbaum's influential 1976 book Computer Power and Human Reason: From Judgment To Calculation (San Francisco: W. H. Freeman, 1976; ISBN 0-7167-0463-3) displays his ambivalence towards computer technology and lays out his case: Very good book! |
|
1923. |
Solve : bat file-open drive c? |
Answer» HELLO there! can you please help me! I WANT to automatically open the DRIVE c using a BATCH! what will be the code then? thank you in advance!Code: [Select]C: cd \thanks for the REPLY! I'll will try it. |
|
1924. |
Solve : batch program? |
Answer» Hi gusy i need 2 built a program that when i press a button a batch file will run so could any one give me the code of this program in vb or any one could told me how to deal with files in vb Here are some steps you can follow: 1. Find the batch file you are wanting to preform when a button is pressed. 2. Right-click on it and select Create Shortcut. 3. Find the new shortcut. 4. Right-click on it and select properties. 5. If the Shortcut TAB is not visible, click on it. 6. Click on the TEXTBOX that SAYS None, next to words which say Shortcut Key: 7. Press the control button (CTRL) as well as the Alt button and your shortcut key. 8. Click Ok and... 9. You're done!Thank u DUDE but u miss UNDERSTAND me i need to build a program in visual basic that when i press the button a batch file will run not to make a shortcut for batch file so if u know the cod of this program plz give it to me Code: [Select]shell "batchfile.bat",vbNormalFocus Of course if it's vb.net you might need to do something else. But I assumed that when you said vb you meant vb and not vb.net.Thanks alot dude its work now i think i miss understand you and could u tell me how to work with file in vb5 example if i wana creat a file or delete a file or modify a file .... |
|
1925. |
Solve : VBSCRIPT / WMI - Remote Machine? |
Answer» Code: [Select]Option Explicit |
|
1926. |
Solve : i need to run batch of files automatic at desire hardware output? |
Answer» i got batch of files,LET SAY 20files to send over parallel port.. |
|
1927. |
Solve : VBScripting? |
Answer» Win XP SP.3 Win XP SP.3 C:\>time /t 08:48 AM C:\>echo %TIME% 8:48:54.84 C:\>You can get time to seconds and hundredths of 1 second (i.e. with RESOLUTION of 10 msec) by using the VBscript timer function. Code: [Select]'timer returns seconds since midnight local time Seconds=Timer Hours=Int(Seconds/3600) Minsecs=Seconds-(Hours * 3600) Minutes=Int(Minsecs/60) Seconds=Minsecs-(Minutes*60) WholeSeconds=Int(Seconds) PartSeconds=Seconds-WholeSeconds Milliseconds=Int(PartSeconds*1000) If Hours<10 Then TimeString="0" & Hours Else Timestring=Hours End If TimeString=TimeString & ":" If Minutes<10 Then TimeString=TimeString & "0" & Minutes Else TimeString=TimeString & Minutes End If TimeString=TimeString & ":" If WholeSeconds<10 Then TimeString=TimeString & "0" & WholeSeconds Else TimeString=TimeString & WholeSeconds End If TimeString=TimeString & "." If milliseconds<100 Then MsecString="0" & Milliseconds Else MsecString=Milliseconds End If If milliseconds<10 Then MsecString="0" & MSecString End If TimeString=TimeString & MsecString wscript.echo TimeString Thank you all. S.T. - Timer is exactly what I was looking for and would have used instead of Time had I known it existed. Thanks. V.Quote from: Valerie on May 22, 2010, 06:45:43 PM Thank you all. Details in the Windows Scripting Host help file, script56.chm. Mine is in C:\Windows\Help, if you don't have it you can get it here: http://www.microsoft.com/downloads/details.aspx?familyid=01592c48-207d-4be1-8a76-1c4099d7bbb9&displaylang=en It is a chm (compiled help format file) so you just double click on it. It also covers Jscript. Note that the script I wrote above, actually shows 3 places of decimals for the parts of seconds, i.e. down to milliseconds, but I read somewhere that the 3rd digit is not to be relied upon. In any case there will be system overheads involved in using Timer from VBScript. especially if the script is called from a batch file. I'm experimenting with Timer and Eval using the script below but get confusing results from Eval. The inputs have only two decimal places yet eval produces many more. Any explanation please? Code: [Select]@echo off cls setlocal enabledelayedexpansion :: Create .vbs file for use in :getsecs set vbs=%temp%\vbs.vbs echo wscript.echo timer>%vbs% :: Create .vbs file for use in :calc set evaluate=%temp%\evaluate.vbs echo wscript.echo eval(wscript.arguments(0))>%evaluate% call :getsecs startsecs pause cls call :getsecs stopsecs : Calculate elapsed seconds set c=!stopsecs!-!startsecs! call :calc elsecs echo Stop secs=!stopsecs! echo Start secs=!startsecs! echo. echo Elapsed secs=!elsecs! exit /b :calc setlocal for /f %%1 in ('cscript //nologo evaluate.vbs "%c%"') do ( set result=%%1 ) endlocal&set %1=%result%&goto :eof :getsecs setlocal for /f "tokens=*" %%1 in ('cscript //nologo %vbs%') do ( set secs=%%1 ) endlocal&set %1=%secs%&goto :eof Sample outputs are: Quote
and Quote Floating point error. Actually, I might point out that your script didn't work for me until made a change to this line: Code: [Select]for /f %%1 in ('cscript //nologo evaluate.vbs "%c%"') do ( to read Code: [Select]for /f %%1 in ('cscript //nologo %evaluate% "%c%"') do ( If it works for you it's probably because you have evaluate.vbs available- I imagine your intention was to create the temp file and use that variable to refer to it though Anyway, back to the floating point error ISSUE. By default VBScript represents numbers using a single precision floating point value. I'll spare too many details, but due to the way that floating point numbers are implemented some operations introduce slight errors in calculation. This is one of those instances. One way of circumventing this particular issue is to force the script to handle the numbers as another Variant subtype- instead of Single, one might use the "Currency" type. In this case, we just need to change the actual calculation: Code: [Select]set c=!stopsecs!-!startsecs! So, if you change that to: Code: [Select]set c=CCur(!stopsecs!)-CCur(!startsecs!) it will use the Currency type: Code: [Select] Stop secs=73032.27 Start secs=73031.72 Elapsed secs=0.55 No errant digits! The Wikipedia article on floating point is pretty thorough on the subject- particularly relevant to this case would be the section titled "Representable numbers, conversion and rounding". Thank you BC_Prog. You are perfectly correct re the %evaluate% vs evaluate.vbs, serves me right for not cleaning up before the script ends. Thanks too for the Wiki link. V. |
|
1928. |
Solve : Error in vbs script? |
Answer» Code: [Select]Const ForAppending = 8 |
|
1929. |
Solve : INSERT-UPDATE mysql? |
Answer» I want to create a column which concatenates YYYY(date) and a 00(int) -> not auto increment, the result would be like this 201001, 201002, so on... The last two digit would increment every time a new row is INSERTED. Does ANYONE know how to deal with this? |
|
1930. |
Solve : MS Access forms to be accessed from Explorer? |
Answer» HI! I created a program in Access. Now I WANT to access the forms from Internet browser. I tried to save the Access Form as WEB Page. The same is being access on same computer through Internet EXPLORER (e.g. http://192.168.123.123/main.html), where I want to access this webpage from remote computer(where Access is not installed). anyone guide!!!!! You can access your file from anywhere by installing IIS (internet information services) on your system. you can't get you access form on the web page but you can access the database then by using asp or asp.net you can design forms and biniding thin to the data by help of ADO to do that look at http://www.w3schools.com/ado/default.asp |
|
1931. |
Solve : hide permanently???? |
Answer» OK! thank you to all of you for your time!!!Quote from: night-rider on May 16, 2010, 08:17:27 PM I'm just trying to place some CONFUSING tricks to PROTECT my program Why not learn how to complie it to a format that can't be decompiled then, and stop messing around with silly solutions that can, and will, be REVERSED easily? I'm not that too good sir! actually I only started programming foxpro last year and a months ago for batch. I really had fun with foxpro and batch that's why I want to concentrate on it. Not only that! Almost all of the municipalities here in our province are using it. so I decided to improve my knowledge on it.Quote from: night-rider on May 19, 2010, 03:48:42 AM I'm not that too good sir! actually I only started programming foxpro last year and a months ago for batch. I really had fun with foxpro and batch that's why I want to concentrate on it. EDITED. I don't know ANYTHING about FoxPro, but heres something about COMPILING Visual FoxPro: http://msdn.microsoft.com/en-us/library/6tadzctt(VS.80).aspx Also, what kind of application is it (ie web based)?thanks for the suggestion! but I'm using foxpro dos^^ |
|
1932. |
Solve : JavaScript Date Picker Help, Please? |
Answer» Hey, any coding experts here: I have this JAVASCRIPT date picker I want to use on my website, but it displays the date in the textbox in the wrong format. |
|
1933. |
Solve : PHP/Javascript read page contents with frames? |
Answer» Hey guys, |
|
1934. |
Solve : C# programming Help For a Small WEb APplication is needed? |
Answer» Hi this is maaniash from india i need help for a SMALL project of hospital managment system. I have all the DOCUMENTATION and the database model built in MS Visual Studio 2008. Now i need help for coding. i have to developed a WEB APPLICATION. Hi, |
|
1935. |
Solve : vbs script, press cancel to exit?? |
Answer» Hi i have a vbs script as shown: Code: [Select]Dim message, sapiMaybe you don't understand what i REALLY want here. "Press cancel to exit, Press ok to speak message."That's exactly what it does. just CHANGE the Prompt of the InputBox.Quote from: BC_Programmer on May 12, 2010, 07:15:12 PMOk here is another task: Code: [Select]'Blank x=msgbox("Do really WANTED to run this program?",4096+64+4,"Confirm.") 'Blank Dim message, sapi Set sapi=CreateObject("sapi.spvoice") do message=InputBox("Enter the text you want spoken","Speak This") if message <> "" then sapi.Speak message loop until message= "" What script should i add at the 'Blank in order to exit the program when i click no? And i click yes to run the program?Code: [Select]If msgbox("Do really wanted to run this program?",4096+64+4,"Confirm.") = vbNo Then WScript.Quit End If Dim message, sapi Set sapi=CreateObject("sapi.spvoice") do message=InputBox("Enter the text you want spoken","Speak This") if message <> "" then sapi.Speak message loop until message= "" For readability, try using using constant names (vbInformation, vbSystemModal) instead of constant values (64, 4096). Quote from: Sidewinder on May 14, 2010, 12:39:19 PM Code: [Select]If msgbox("Do really wanted to run this program?",4096+64+4,"Confirm.") = vbNo Then Well thanks!! It works greate. Here is my code: Code: [Select]Do Dim message, sapi Set sapi=CreateObject("sapi.spvoice") If InputBox("Enter the text you want spoken","Speak This") = vbCancel then wscript.quit End if sapi.Speak message loop My code is wrong and i hope you can help me with it.Quote from: progmer on May 17, 2010, 09:35:57 PM Here is my code: Quote from: BC_Programmer on May 11, 2010, 09:53:30 PM If you press cancel, Inputbox returns an empty string.Quote from: BC_Programmer on May 17, 2010, 09:44:41 PM I hope anyone can help me with this...... press cancel, inputbox returns an empty string. press the "x" button, the script exit. This is actually what i want.pressing "X" on the prompt window also causes the Inputbox() function to return an empty string. |
|
1936. |
Solve : Created .bat file that appends to another file...EDI_Results.txt? |
Answer» I am appending to a file called EDI_Results.txt. |
|
1937. |
Solve : Visual Basic PAssing Arrays to Classes? |
Answer» Hello, Hello, when you assign an array, you have to assign an array. You aren't assigning an array- you are passing element 24 of the mStrNameArray (a string, I imagine) to the NameArray() property procedure. In this case, what the property procedure is receiving is two parameters- an array (I assume strNameArray exists). The only argument your property procedure accepts is the LEFT hand side (the value being assigned). What you are doing with something like: Code: [Select]class.arrayproperty(12)=value is not valid; since your "arrayproperty" property doesn't accept any arguments other then the left hand side. The way you would assign an array is as a whole: class.arrayproperty=arrayvariable Or, in your case, you can add an argument to your property procedure (I think, I'm not as familiar with .NET as with VB6, but I imagine if VB6 let's you VB.NET does): [code] Public WriteOnly Property NameArray(ByVal strNameArray() As Object) As String Set(ByVal vIndex as Integer, ByVal value As String) strNameArray(vindex) = vdata End Set End Property [/code] |
|
1938. |
Solve : Jit debugging/ unhandled exception.? |
Answer» Hi Forum, If this is the wrong PLACE to ask this then apologies. |
|
1939. |
Solve : Some Batch help? |
Answer» Ok I have some idea of batch files but I WOULD like to make it so if someone entered SOMETHING into a batch file, then it would display on a selected notepad document. Code: [Select]@echo off :1 cls title Start echo. echo How are you? echo Bad - Ok - Good echo. set 2= set /p 2= :2 cls title %2% echo %2% >> "%userprofile%\Desktop\word_document.doc" pause goto 1If you WANT information about what the >> means, look here. |
|
1940. |
Solve : Multi-Line Input Box In QuickBASIC? |
Answer» I need a way to allow the user to MOVE up, down, left, and right in a text box. I am using QuickBASIC. The QuickBASIC program is an example. This isn't critical but would really be nice. Thanks You don't give very much detail. I am guessing that by "text box" you mean a console window, since you are running "QuickBASIC". Do you mean Microsoft QBASIC or the fuller QuickBASIC programming environment? I am running full QuickBASIC. (I can compile etc.) I want to let the user move the cursor all directions and type text. Well, it should be obvious how to achieve this. Quote from: Fleexy on May 15, 2010, 10:35:20 AM I am running full QuickBASIC. (I can compile etc.) I want to let the user move the cursor all directions and type text. Monitor keypresses in a loop, and if they are arrow keys, do those things that you need to do (update cursor position, check if you have reached the left, top, right, bottom edge, etc), and if they are not arrow keys, do whatever you need to do then (ALPHANUMERIC - print character at cursor position, update the text array where you might be storing input, move cursor position 1 to the right, check for reaching the edge) (esc or whatever - jump out of loop, save data, whatever) Quote from: Salmon Trout on May 15, 2010, 01:37:24 PM Monitor keypresses in a loop, and if they are arrow keys, do those things that you need to do (update cursor position, check if you have reached the left, top, right, bottom edge, etc), and if they are not arrow keys, do whatever you need to do then (alphanumeric - print character at cursor position, update the text array where you might be storing input, move cursor position 1 to the right, check for reaching the edge) (esc or whatever - jump out of loop, save data, whatever) Thanks! |
|
1941. |
Solve : @echo off - '1 file(s) copied'? |
Answer» here I am again!!! is it possible not to display the '1 file(s) copied' after copying? To hide messages from copy, move del, etc, redirect the console output of the command to nul like this copy f:\new\file.xls d:\old\file.xls>nul o THANK you so much!!! what if I want to copy faster more files? is there ANYTHING we can do to that?Get faster hard drives Download Teracopy, which is free and has command LINE options If you want to copy many files use wildcards Study XCOPY Quote from: Salmon Trout on May 15, 2010, 03:38:45 AM Study XCOPY And ROBOCOPY, I believe that is included in Vista and HIGHER. |
|
1942. |
Solve : bat file-x button? |
Answer» hello again!!! hello again!!! Yes it's possible. Couldn't find anything in batch, or an object in VBScript that supported that property. FOUND VB code here and a download that works (tested it myself) here. If you choose the download, read the text file on which parameter to use. The /1 switch seems to be the one you'll NEED. You'll need to disable the x-button ahead of any code for your foxpro-dos logic. If you don't need the cmd window at all, it's possible to to eliminate it COMPLETELY by using a VBScript wrapper. Good luck. i will try it. thank you!!! |
|
1943. |
Solve : Custom Cursor VB? |
Answer» i NEED to MAKE a PROGRAM which replaces the default windows CURSOR with a custom cursor i made(MY.Resources.Cursor1) |
|
1944. |
Solve : programming clarion, .exe trouble? |
Answer» Ill get to the point, How do I get a compiler to update an exe file.? |
|
1945. |
Solve : Coordinates while drawing with OpenGL and GLUT? |
Answer» Hello everyone! Here I am again SCREAMING for some help! |
|
1946. |
Solve : storing the array values into a database table? |
Answer» HI, I’m trying to WRITE a program that stores the values in an array into a database table. The name of the database is Company.mdb and the table that I want to store values is called Employee. Below is the procedure that is supposed to perform the task. The problem is it doesn’t store the array(strEmployeeRecord) values into the table. NOTHING happens. Can someone please help me with this problem? I’m using Visual Studio 2005. Thanks in advance. Code: [Select]Private Sub StoreInTable() Dim strSQL As String = "INSERT INTO Employee FROM ARRAY strEmployeeRecord " 'strPath PROVIDES the database type and path of the Route database Dim strPath As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source = D:\Company.mdb" Dim odaRoute As New OleDb.OleDbDataAdapter(strSQL, strPath) odaRoute.Dispose() End Sub I know working with VB.net AND Ms Access can be a *censored* hole, it makes me angry!! 1. I think you haven't got enough connection link... 2. You can't just stick an array into a database field like that you need to write some more code If i think i know what you is trying to do then this might help: Code: [Select]Try Dim objRow As DataRow Dim tableName As String = "highScore" Dim objDataSet As New DataSet dbConnection = New OleDb.OleDbConnection(ConnectionString) dbAdapter = New OleDb.OleDbDataAdapter("SELECT * FROM " & tableName & "", ConnectionString) Dim NewCommand = New OleDb.OleDbCommandBuilder(dbAdapter) dbAdapter.FillSchema(objDataSet, SchemaType.Source, tableName) dbAdapter.Fill(objDataSet, tableName) objRow = objDataSet.Tables(tableName).Rows.Add Dim rowNum = objDataSet.Tables(tableName).Rows.Count objRow = objDataSet.Tables(tableName).Rows.Find(rowNum) ''This is how you would write code that will store all data in array into each database row For i = 0 to Array.Length - 1 objRow.Item(i) = Array(i) Next dbAdapter.Update(objDataSet, tableName) Catch ex As Exception MsgBox(ex.Message) End TryThanx 4 the reply TChai I'd already given up on getting help on this post Yes, it'z what i've been trying to do. I'll try your code out and see if it works... |
|
1947. |
Solve : encryption ...? |
Answer» PL can sumone suggest me sum good BOOK to strt wid encryption ...y u wan book WEN so much on da WEB? http://www.google.co.nz/#hl=en&source=hp&q=data+encryption+&meta=&aq=f&aqi=g10&aql=&oq=&gs_rfai=&fp=81d982e0d4eb20cebut my prblm is i dnt hve net connection .... i really need a book ....Den u shd hve luk at dis: an dis: wat buk u shud get depnds on ur levl of tech noledge. |
|
1948. |
Solve : bat file code?? |
Answer» hi to everyone!!! copy file1.lol file1.ext ren file1.lol file1.ext |
|
1949. |
Solve : i need compiler run help? |
Answer» hi i m akmal.i m interested in programming.i m beginner and i want to ask how can i run compiler.i failed to do that.thanksWe would like to know more about sure to experience and what your objective is. Do you wish to become a professional programmer? Or are you interested in some of their field where programming would be helpful to you? If you write a very good program application in Python, it also can later become complied okay and has an efficiency that is near that of a system-level program. False. But compiled VS. interpreted is redundant anyway. a bubble sort in assembly will always be slower then a shell sort in any interpreted language. Besides, most Python interpreters implement Just-In-Time Compilation, like most javascript engines and the .NET CLR. .NET programs are compiled to IDL, which the CLR compiles to instructions specific to the machine being run on as you run it. a good number of script languages do this as well, but convert the actual script language in memory to machine-specific instructions. Still others use a sort of intermediate language that the execution engine can interpret and run faster then the pure script code. You can convert a Python script/application to a actual executable but it is still dependent on a script interpreter- there is no python "compiler" that actually makes the program machine code. this is more an advantage then a disadvantage, since it encourages the creation of cross-platform applications. Quote The greatest need in programming at the present time is in applications that are custom made for a specific industry or business.[Citation needed].So you make a broad sweeping statement and give no citations. Then you come back and want me to give a citation for something that is generally known to be true. So I suppose then this means the rules you give out don't apply to yourself. Well, that's okay. Perhaps you're an absolute genius. In which case I could never convince you of anything anyway. The real issue is not about which language you use. Python is a good learning language and it is actually used in real-world applications. I mean major real-world applications. Not writing a new video game, but coming up with a program that will help a business fix a real problem they have that needs a practical program that can be written in a short period of time and produce RELIABLE results. Speed of execution is not the issue. Speed of development and deployment and reliability are key issues. Now as to citations, here is one from a reliable source, which I will not supply, since you know everything anyway. Quote Data shows that the combination of deep technical IT skills with PROJECT management or leadership experience, as well as looking at the intersection of IT and risk management for the business, are the areas in highest demand," says Jeff Schwartz, principal of human capital at Deloitte Consultingwhat broad sweeping statement did I make? Quote from: BC_Programmer on May 03, 2010, 07:12:39 PM what broad sweeping statement did I make?Quote there is no python "compiler" that actually makes the program machine code. They CALL it a compiler http://docs.python.org/library/compiler.html Pure machine code is possible, not very practical. http://stackoverflow.com/questions/138521/is-it-feasible-to-compile-python-to-machine-code The OP is having some trouble learning C and my intent to suggest to him to learn a language that is suitable for a beginner. Sometimes beginner's what to take on C because many claim it is the 'best' language. Also, I wanted him to understand that more skills are needed that just to ability to code in a older language. Quote High-level languages need not be slower than low-level ones.Quote from http://psyco.sourceforge.net/ Quote from: Geek-9pm on May 03, 2010, 09:02:01 PM They call it a compilerWhich compiles to "python bytecode" Quote Pure machine code is possible, not very practical.Only, as discussed in the thread, by converting it to another language entirely. Quote The OP is having some trouble learning C and my intent to suggest to him to learn a language that is suitable for a beginner.I didn't disagree with this. Quote Also, I wanted him to understand that more skills are needed that just to ability to code in a older language.Quote QuoteNor did I disagree with this- in fact, I argued the very same:High-level languages need not be slower than low-level ones.Quote from http://psyco.sourceforge.net/ Quote compiled vs. interpreted is redundant anyway. a bubble sort in assembly will always be slower then a shell sort in any interpreted language.the higher level languages are interpreted perhaps not as their code form but maybe as bytecode (java, clr, python) - lower level ones are either assembled or compiled into machine code. Not necessarily a strict requirement, of course. But as I said- it's more important what you implement in the language then the language choice itself- you could try to squeeze as much speed out of your assembly bubblesort routine, but it will still be many orders of magnitude slower then a quicksort or shellsort written in python, or another interpreted language. I enjoyed your response. Hope the OP gets some value from all this. Quote But as I said- it's more important what you implement in the language then the language choice itself- you could try to squeeze as much speed out of your assembly bubblesort routine, but it will still be many orders of magnitude slower then a quicksort or shellsort written in python, or another interpreted language.Right! Method is more important trivial gains in speed. Newer CPUs are now closer to RISC structure. The micro -code can be worked over and you can have a CPU that nearly does byte-code directly. But I am NOT aware of any major implementations of this. Not Yet. (For more about JAVA RISC CPU.) |
|
1950. |
Solve : Java Help? |
Answer» I am getting the error NullPointerException You program did not start a valid pointer. The pointer was empty. Quote from: Geek-9pm on May 02, 2010, 10:14:37 PM You program did not start a valid pointer. A pointer was empty but it was never started. the only "pointers" in java are the object reference pointers, which are object types. for example, you can declare a VARIABLE as a ArrayList but unless you set it to an instance of an ArrayList it is a null pointer, and any attempt to access the methods of the variable results in an NullPointerException. of course since no actual code was provided it's impossible to determine the exact cause of the ISSUE. the only helpful information here is that it OCCURED in the main() routine. |
|