

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.
501. |
Solve : Nullsoft Scriptable Install System (NSIS)? |
Answer» Why So Serious Guyz ! |
|
502. |
Solve : how to create SETUP.EXE? |
Answer» nice DAY!!! nice day!!! Most Applications split the setup data between the actual executable (which in many cases is merely a bootstrapper for a MSI (Windows Installer Package). Other times, the data is laid out into various "cabinet" files (CAB) laid out on the setup disc. Many Microsoft programs both on floppy disks and CD-ROM often use the "CAB" format, INCLUDING Windows XP. In fact, most "EXE" setup programs are really just an executable file with a CAB file, or even multiple CAB files tacked onto the end- the setup program reads and extracts the appropriate files from the embedded CAB file.Quote thanks for the immediate reply Welcome Quote n fact, most "EXE" setup programs are really just an executable file with a CAB file BC Just A Question Stood Up WHY ONLY "Cab" Format , Means There Are Thousands Of Formats Out There But Nearly 90% Microsoft Setup Are In "Cab's" [Ex:Direct X ,PC Games]its about how to create .exe files... if you are compiling a program in c using turbo c then: ctrl+f9 = compile and f9 = creates .exe for ur program and working with visual studio it provides the options to create build package... |
|
503. |
Solve : Somebody help me please? |
Answer» Alright, I BUILT a brand new computer about 2 months ago (zotac motherboard, quad core, NVIDIA 9800 2-way SLI, 4gb ddr2 RAM) and now it will not work. For the life of me it shall not work. Here's the problem. By the way I run Linux Ubuntu 9.10. how genius. i can't use a cd drive. You didn't SAY that before. Not clearly. Please do not use sarcasm against people who are trying to help you. Your components are still within warranty. Consider returning them. Quote from: newcompnewprob on June 26, 2010, 11:26:33 AM how genius. i can't use a cd drive.If there's a little hole under the CD tray, take a pin and push it (hard) in to that hole. The tray should open. |
|
504. |
Solve : VBS - Check if a file is older than X days old? |
Answer» I've seen a whole BUNCH of scripts that check through a folder (and possibly sub-folders) for files which are older than X days old, if so, then moves them to a different folder. This is not what I need. you can take a look at example 1 here.I tried this, but I get an error. Line 4, Char 1. Object required: '[string: "netpass.txt"]' Set objFS = CreateObject("Scripting.FileSystemObject") strFolder = "T:\Documents and Settings\student\Desktop" Set objFolder = objFS.GetFolder(strFolder) set strFile = "netpass.txt" If DateDiff("h",strFile.DateLastModified,Now) < 24 Then strFileName = strFile.Name WScript.Echo strFileName WScript.Echo strFolder&"\"&strFileName objFS.CopyFile strFolder&"\"&strFileName,"c:\tmp" End If Please explain what is wrong. "netpass.txt" is a string, not an object. I imagine that line is supposed to be something like Code: [Select]Set strfile = objFolder.Files("netpass.txt") Quote from: BC_Programmer on June 23, 2010, 05:29:12 PM "netpass.txt" is a string, not an object.Thank you! I LOOKED at your other example ghostdog, regarding 30 days instead of hours, I just want to confirm that this code will only do the commands if the file is older than 30 days: Code: [Select]Set objFS = CreateObject("Scripting.FileSystemObject") strFolder = "T:\Documents and Settings\student\Desktop" Set objFolder = objFS.GetFolder(strFolder) Set strfile = objFolder.Files("testing.vbs") If DateDiff("d",strFile.DateLastModified,Now) > 31 Then strFileName = strFile.Name WScript.Echo strFileName WScript.Echo strFolder&"\"&strFileName msgbox "IT IS OLD!" 'objFS.CopyFile strFolder&"\"&strFileName,"c:\tmp" End If the statements in the if block will only be executed if the last modified date of the file is at least 31 days before the current date.Quote from: BC_Programmer on June 23, 2010, 05:55:29 PM the statements in the if block will only be executed if the last modified date of the file is at least 31 days before the current date.AHH! Last modified...that would explain it! OK, thank you.to get file properties, you can do this Code: [Select]Set objFile = objFS.GetFile( "netpass.txt" ) Quote from: ghostdog74 on June 23, 2010, 07:26:41 PM to get file properties, you can do this You would need a fully qualified path.In NTFS, aren't "last modified" dates/times something that can be turned off, and therefore not be assumed to exist on every system encountered? Quote from: Salmon Trout on June 26, 2010, 11:35:26 AM In NTFS, aren't "last modified" dates/times something that can be turned off, and therefore not be assumed to exist on every system encountered?Would the "average Joe" do that? Why would someone do that anyway?Quote from: Helpmeh on June 26, 2010, 07:04:14 PM Would the "average Joe" do that? Why would someone do that anyway? Sorry, I misread the post, I was thinking of the "last accessed" date. Disabling this in NTFS can improve filesystem perfomance. Quote from: Salmon Trout on June 27, 2010, 12:11:03 AM Sorry, I misread the post, I was thinking of the "last accessed" date. Disabling this in NTFS can improve filesystem perfomance.Oh, ok. |
|
505. |
Solve : Redirect output from FTP command? |
Answer» How do I redirect the output from the FTP command? It doesn't SEEM to WORK like the rest of Linux / Unix COMMANDS. Specifically, I NEED to EXECUTE the "size" command from within FTP and redirect that to a file. |
|
506. |
Solve : Use SED for Windowws in batch.? |
Answer» Often batch programmers want to have a batch that will find and replace things in a text file. This can be called 'string substitution'. Of course you can do that in NOTEPAD, but not from the command line. SED runs from a command and can be inside batch file. When done, SED goes back to the batch file. @ECHO offCopied from: http://www.thoughtasylum.com/blog/2011/9/30/using-sed-on-windows.html Download free: http://www.freedownloadaday.com/2008/01/09/sed-for-windows/ Once you GET used to the syntax, it is easy to modify any text file. You save the output to a new file. There are a few more native options to Windows for Find and Replace. Pure batch. http://www.dostips.com/DtCodeBatchFiles.php#Batch.FindAndReplace Surprised you didn't mention PowerShell. I have seen you mention it a lot on the forums over the years. You can call out to a power shell script within a batch file Code: [Select]Get-Content test.txt | ForEach-Object { $_ -replace "foo", "bar" } | Set-Content test2.txt Hybrid Jscript/batch http://www.dostips.com/forum/viewtopic.php?f=3&t=3855 http://www.dostips.com/forum/viewtopic.php?f=3&t=4697 And VBscript has decent find and replace options as well. You could again build the vbscript on the fly and use it within the batch file.Better to get the GNU version of sed for windows. Talking about replacement, many tools can be used, including Perl Code: [Select]perl -pe 's/abc/def/' myFile.txt Similar syntax, accept Perl does a lot more. Even not with Perl, awk is also a better suited tool to use than sed, because awk is a nice little programming language. There's no point learning sed nowadays because what sed can do, awk can do, and it does more as well.Quote from: briandams on January 25, 2014, 10:51:53 AM Better to get the GNU version of sed for windows.The link in the original post links to a site which itself links directly to the GNU download for sed. Quote from: Squashman on January 24, 2014, 08:09:06 AM There are a few more native options to Windows for Find and Replace.any other caveats in using it beside the ones documented?Yes Pearl, awk and Powershell are all tools that can be used. For some, learning SED may be more easy. Ar lest for simple find and replace. Here is thread about some things ported from Unix for use in Windows: http://stackoverflow.com/questions/7866512/shell-with-grep-sed-awk-in-windows As can be seen, it gets to be MENTAL overload. Sed, Ted, ask, squeak, , feed the bird. And why didn't anybody mention VBScript? Download for SED for Windows HERE. BTW: There was an line editor in DOS that can be used if you do a hot patch on the code. But that is said to be a 'hack' that violates some kind of law. DOS edlin Quote from: Geek-9pm on January 25, 2014, 06:14:38 PM And why didn't anybody mention VBScript?Squashman did...Quote from: BC_Programmer on January 25, 2014, 07:10:18 PM Squashman did...Oops. Missed it. Quote from: Geek-9pm on January 23, 2014, 10:51:45 PM @ECHO off Code: [Select]awk "/ERROR/{ print NR\"\t\"$0 }" myFile.txt Geek, Why not just make sure SED is in your PATH instead of doing two commands to get to the path where it is installed. Why bother changing the directory where sed is installed. Either use the CD /d OPTION or pushd if you want to set the working directory to where sed is installed. Or just spell out the whole path to the executable. I always prefer to set my working directory to where my input files are located.Quote from: Squashman on January 25, 2014, 11:08:14 PM Geek,Right. Much better to put it in the PATH, or else install it in a directory already is in the PATH. The installer I used only set the PATH for the current user, not all users. Quote from: Geek-9pm on January 25, 2014, 11:38:33 PM Right.So your example above is incorrect? Last time I checked, the program files folder was available to all users.SED is to be used as a command line utility. You have to open a CMD box, or 'DOS' box to run it. In the DOS box type PATH to see the path used for DOS commands. All such command line utilities have to be somewhere that can be found in the PATH used for commands in the command mode. This applies to all command line utilizes that are not GUI things. . Programs installed in the program directory are not available to the CMD or DOS box. With some exceptions. Presently I moved SED over to D:\gnu32\bin and put that at the end of the PATH. Yhat way I don't have to use the full path. This first example I gave was far to complex. Here is is super simple A file named OLD.TXT has: My name is ABC Jones, I line at 123 Main. ...now give the command: sed s/abc/xyz/ <OLD.TXT >NEW.TXT OR sed s/123/789/ <OLD.TXT >NEW.TXT Look at the NEW.TXT file. Is that simple? if you don't want to keep the old file, you can use the -i switchQuote from: briandams on January 28, 2014, 05:01:28 AM if you don't want to keep the old file, you can use the -i switchRight. The horrible thing about sed is the documentation goes on and on and on... So I wanted to give the very simple form that anybody can use without reading the manual. Again, this is about the version of sed that works in Windows. |
|
507. |
Solve : Command line to create short cut? |
Answer» Hi, Seems like there is some shortcut.exe in some resource kit which I don't have.It is from the Windows 95 support tools and NT 4 Server Resource Kit. Unfortunately, there are are other programs with the same or similar name and do not do the same thing. Here is more information: https://ss64.com/nt/shortcut.html Let me know if you want to consider SHORTCUT.EXE You want to set the Arguments property. The Target Path must point at a file and cannot have arguments. Quotes are escaped in VBscript by doubling them up. Code: [Select]echo oLink.TargetPath = "\\pts-app\partner\PTS-Apps\Partner_Review.accdb" >> CreateShortcut.vbs echo oLink.Arguments = "/cmd ""XXX000000000031|1|""" >> CreateShortcut.vbs However, this might not work. it depends how accdb file types are associated and how they are launched.New to this site so apologies if I'm posting n the wrong place. THis is brilliant. THanks you so much. It WORKED a treat. Quote from: BC_Programmer on June 04, 2017, 04:41:11 PM You want to set the Arguments property. The Target Path must point at a file and cannot have arguments. Quotes are escaped in VBscript by doubling them up. |
|
508. |
Solve : Why does the PIC16F723A fail to work when I program on it with my computer?? |
Answer» I am working with a PIC16F723A chip and I am trying to program it to toggle a pin (RA1) on and off. I am pretty sure I have the circuit setup correctly (below is what I have setup), but for some reason I get an error when trying to program it.... (1992) BASIC Stamp 1 (BS1) |
|
509. |
Solve : sed windows to find - replace in file? |
Answer» hi, |
|
510. |
Solve : Help writing Program in C++? |
Answer» Dear Users i have an assingment to submit so please help me in writing this program Exactly! you have an assignment. While we would gladly help you with a specific problem, it's unfair to ask the volunteers at this forum to write a complete program...for free no LESS There are sites dedicated to help the HOMEWORK challenged: Homework Help 8-)Quote Quotei have an assingment to submit so please help me in writing this program Good point ! Why should we do the work and you claim the credit for it??? |
|
511. |
Solve : Port Control vb.net? |
Answer» HELLO, I WOULD like to know how to open and CLOSE internet ports in VB.net. If ANYONE knows a tutorial ... Thanks Al968 |
|
512. |
Solve : file to run and paste fast...? |
Answer» I have tried searching for this but have come up wtih nothing. I have to update tickets at my job with the current date and time liek this:: Received from company to company at 18 JAN 07 @ 12:15:01. I need to ENTER this info about 100 times aday and i was wondering if there was a batch file i could run that would ALLOW me to CLICK on it and then go into my program and paste and it would give me the line with the current date and time. does anyone know how i could do this?? Much APPRECIATED andQuote I have tried searching for this but have come up wtih nothing. I have to update tickets at my job with the current date and time liek this:: Received from company to company at 18 JAN 07 @ 12:15:01. I need to enter this info about 100 times aday and i was wondering if there was a batch file i could run that would allow me to click on it and then go into my program and paste and it would give me the line with the current date and time. does anyone know how i could do this?? Much appreciated and I saw your post here earlier today, and came back to check on it. Since no one has replied, you might WANT to ask one of the moderators to move your post over to the MS-DOS forum area. That's where a lot of batch file questions are asked and answered. It could be that the DOS folks just haven't seen your post here. |
|
513. |
Solve : Pls can someone recommend a C complier for XP? |
Answer» I'm guessing that WinXP doesn't have a builtin C compiler, so I'll need to install one. Which one do you recommend? http://www.bloodshed.net/devcpp.html Thanks for the pointer. Meanwhile, I've just noticed gcc for Windows at http://sourceforge.net/projects/gcw/ which as I'm already familiar with gcc might be a good first step.That'll WORK, too. Good luck. 8-) |
|
514. |
Solve : VB6 2D Array? |
Answer» Hi |
|
515. |
Solve : Macros in Excel? |
Answer» is it possible for a macro to open a saved WORKBOOK depending on the VALUE of a specific cell? |
|
516. |
Solve : Binary Search? |
Answer» Hello, |
|
517. |
Solve : how to tell what program language.? |
Answer» Basically i have a program that i have that i want to change the title BAR on, but i cant figure out what language it was written in to decompile it and try to change it, was wondering if anyone knew if there was a way. its and mouse auto clicker program if that may help anyone determine, all i know is that its not C++ becuase when decompiled as C++ i just get crap. |
|
518. |
Solve : Number of Programing Languages ?? |
Answer» If I PAINT a picture I don't then discover the picture I just PAINTED, unless I suffer from MEMORY loss lol. |
|
519. |
Solve : boot disk win 95/98? |
Answer» got a second hand laptop to learn on about a YEAR ago and knackerd it with in days it just wont load up. IVE been every where to get a bootdisc but they just wont load because it hasnt got a cd rom. when i PUT boot disk in it tells me driver version v340 device name banana no drives found aborting instalation. then it says device driver not found banana no valid cd rom selected. |
|
520. |
Solve : Visual Basic? |
Answer» I'm now making an attempt to learn Visual Basic (using Microsoft Visual Basic Express 2005). ANYONE know of any good resources/have any tips/etc.? THANKS a bunch! :) |
|
521. |
Solve : Want new ideas to be implemented? |
Answer» I am a student at the faculty of Computer Science - Third year |
|
522. |
Solve : Class constructors and deconstructors? |
Answer» I've got something I can't find the answer on... Whenever you declare a constructor, you'll also want to declare a destructor ... destructors clean up after your project and free any resources or memory that you might have allocated. What?? How??Basically a destructor is code that is ran when you delete the object. If you're allocated any DYNAMIC memory for this object, for example, you will want to PUT the code that frees the memory in the destructor. You can put it anywhere really, as long as it gets done, but it's just neater and more organised in there. But despite what that book implies, destructors don't do that automatically (ie without any code from you) so watch out!Oh, I get it. Thanks. So a class really is just organized functions around an object. That makes everything so much easier. See, in the examples, since it's just getting into classes, the "destructor" looks like this: Code: [Select]Object::~Object { } No lie. LATER examples simply have a cout, like this: Code: [Select]Car::~Car { cout << "A simple destructor" << endl; } So it didn't SEEM to make any sense. |
|
523. |
Solve : start up of the weblogi server? |
Answer» hello friends |
|
525. |
Solve : Interfacing in Java? |
Answer» ei |
|
526. |
Solve : problems staring windows after format? |
Answer» Billy Reynolds - Please tell us what you are trying to do. If you are running XP what are you trying to do with the MS-Dos startup disk? |
|
527. |
Solve : C++/C 'lessons'? |
Answer» hi there, |
|
528. |
Solve : is there is free compiler?? |
Answer» is there anywhere U can dl FREE compiler?Yep. There is.A few SITES you may find interesting: |
|
529. |
Solve : bio-medical instruments and computer interfacing? |
Answer» i have been assigned to a project related to hospitals. |
|
530. |
Solve : USMT for multiple logon profiles?? |
Answer» Trying to use the User State Migration Tool (USMT) that comes with Windows XP to capture user settings when moving computers from Win2000 to WinXP. |
|
531. |
Solve : A close program script? |
Answer» I'm looking to make a script that will close a program when executed. For instance, I can have my windows schedule manager run a program then run the close program script in Xmins. |
|
532. |
Solve : Office XP service pack 3? |
Answer» Hi. I am searching to find out if I can download the Office XP Service Pack 3 without having the WINDOWS XP disks. My Dell was upgraded to XP (by Dell with no charge) when I had some PROBLEMS last year. I received a message yesterday to INSTALL SP3 but I don't have the original disks. I contacted Dell and they told me that I would have to purchase the XP disks. I am infuriated that I would have to buy the software now for something that they installed for me previously at no charge. My warranty has expired and they don't seem to be very supportive for this issue. I would appreciate any comments. Merry Christmas. OranopasFind out what the LICENCE NUMBER is and borrow a copy.Quote ...I am searching to find out if I can download the Office XP Service Pack 3 without having the Windows XP disks. ... Yes. Click here for download of Office XP SP3 |
|
533. |
Solve : dos c/c++ compiler? |
Answer» is there any compiler that executes c or c++ scripts that will run in dos mode? ex:the python compiler WORKS in dos mode. |
|
534. |
Solve : Computer bios help? |
Answer» I want my compter to go faster. I go to the bios on my windows XP computer and they have 4 higher speed settings. But it says to go even higher i need to set my mother board to jumperfree mode. How do i do that. Plz help If you don't know the in's and out's of overclocking, I SUGGEST you don't play with fire. Your CPU and motherboard could get thoroughly toasted. Just because your bios says you can do it, it doesn't mean your components can handle it.ok thankz but i just want to know anywaysTry this lot: http://www.overclockers.com/topiclist/index.aspI have to agree with 2k dummy, i wouldn't play about with it. ok thankz but i just want to know anyways With all due respect my FRIEND.........Don't even think about it ......or as Confusious says ....."Newbie who overclocks his or her pc will have great misfortune befall them." If your looking for better performance....consider upgrading your CPU , ram , cooling etc. .....check your MOBO specs to SEE if it will support a faster CPU. dl65 |
|
535. |
Solve : Format trouble...? |
Answer» Help. I'm trying to format my computer, but when I type the format c: code into the command prompt, an error comes up that says "Format cannot run because the volume is in use by another process. Format may run if this volume is dismounted first. ALL OPENED HANDLES ON THIS VOLUME WOULD THEN BE INVALID. Would you like to force a dismount on this volume?" When I type "y" it says "Cannot lock the drive. The volume is still in use." What do I do?? And what EXACTALLY does that mean??Reemay....you didnt mention which operating system you are using .......but if you get a win 98 boot disk and PUT it in drive A ......... now display the command prompt |
|
536. |
Solve : Configuring internet? |
Answer» I am giving my old computer to a friend ,I am using cable CONNECTION to get on the internet,he is going to USE telephone DSL. what changes do I have to make for it to work so he can get onto the internet?Jim Crance.....TELL your friend he will need a DSL modem .......and an internet account with some ISP ( probably his phone company ......They should assist him in SETTING things up ......and MAY provide the modem , mine did .) |
|
537. |
Solve : find, move certin dll? |
Answer» Hey guys! |
|
538. |
Solve : used computer problem? |
Answer» I hope I've posted this in the right place. I wasn't sure which topic it should go under: |
|
539. |
Solve : Rcmd+for loop? |
Answer» How can I NEST a rcmd into a for loop for starting/stopping services. |
|
540. |
Solve : Re: definition? |
Answer» journeyman....Are you sure that .......HTPICP.......is correct ? |
|
541. |
Solve : Running prgm with batch? |
Answer» I would like to make my 5 programs to run at the same time as soon as i click my batch file to execute it. Does anyone know what command to use for this it to execute? |
|
542. |
Solve : downloading Access Boss? |
Answer» How do I download the Access BOSS program after I have received my registration number. I was INSTRUCTED to click on Help menu and then select About ( the only About that appears is for an internet access) and then select registration code link and enter number. I can not GET anywhere after clicking th Help menu |
|
543. |
Solve : Batch file for deleting subdirectorys? |
Answer» Hi new here...I did a SEARCH and read through a few related topics but couldn't put together something for my needs . |
|
544. |
Solve : go back in time? |
Answer» can anyone tell me how to go BACK three weeks on my computer as i have made lots of errors ?If you are RUNNING XP or ME you can use SYSTEM restore and hope you have a restore point from 3 weeks ago. |
|
545. |
Solve : MS DOS - W98 - DVD DRIVE? |
Answer» SON had a computer crash on IBM T22 :-/ However, he did not keep all the original product software, and had loaded a W2000 and wiped out his Think Pad key. We are having to rebuild - we were able to GET a 98 start-up DISK. We did an FDISK and format c: /s - but - it stored everything on a D:/ drive. Problem - we have the 98 CD, but we can not get the computer to recognize the CD drive which is a portable CD - (ANOTHER words you switch between the floppy and CD drive) We need to get the computer to recognize the CD/DVD drive at startup so we can use the 98 CD. We have the driver disk of the CD/DVD ROM drive. How do we do that? Thank you! Dianaif you computer will let you,go to setup when you boot up, go to boot options and set cd-rom to boot up first, that way it should read the cd before a: or c: drive exit, and save changes. put you 98 disk in and it will ask you if you boot from windows or cd-rom select cd rom and it will start installing 98. |
|
546. |
Solve : computer networking engineering? |
Answer» hi!!!!!!!!!!!!!!!!!!!!!! i want to need it Yes, quite. Anyway, Network Engineering has nothing to do with programming. TRY posting in the right FORUM ("Other" may be a good bet) and you'll get a decent answer. Or alternatively, try looking yourself. Google isn't all that complicated REALLY. |
|
547. |
Solve : HELLO I HAVE A QUESTION ????????PLZ HELP? |
Answer» i need a way to DELETE the information on my PC forever |
|
548. |
Solve : Is there a tool to Merge 2 EXE's together? |
Answer» Hello everyone... Got a problem, I have 2 programs that are in 2 different languages. They both compile to EXE's, but I would like to MERGE them into a single EXE. They both work upon each other. Each language has its limitations and one will do what the other cant. They both work together in harmony, but its very ugly having 2 exe's. Anyone know of a tool that can be used to wrap these 2 exe's around a candy shell of a single EXE? |
|
549. |
Solve : Help with Forum Creating in php? |
Answer» OK, IM trying to create a forum that you will expect to find on online GAMES, like www.downtown-mafia.com and www.massive-mafia.com etc. etc. |
|
550. |
Solve : Help creating a simulation? |
Answer» Good EVENING, |
|