Explore topic-wise InterviewSolutions in .

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 !

Ive Attached An NSIS Script Here In Which Ive Added The Following Things

1] Name And Path Of Files

2] Pics (Splash,Header)

3] Uninstaller

4] Files To Be Added

NOW I Want The Following Things

1] If I Add An Batch File , It Should Run After Installation

2] It Would Be Great If I Get Small Size Of The Setup
(LIKE The Classic Installer When You Select "installer based on zip file" in NSIS)


[recovering DISK space - old attachment deleted by ADMIN]And Yes FORGOT To Mention

3] Store Files Without COMPRESSION

502.

Solve : how to create SETUP.EXE?

Answer»

nice DAY!!!
how does a SETUP.exe produce or provide files to run it's system? Like some antivirus, just a click to setup.exe and after installation, you can see the software property files/folders where it targets. where are those files/folers came from? inside the setup.exe?
thanks!!!The Setup.exe Also Known As Setup Executable Or Setup Application Stores All The Files
Within It Either Compressed Or Non-Compressed.

When The Setup Is Executed (Double Clicked On It) It Will Run The Setup And Extract ,Decompress The Data Stored Within It To The Target Folder

| ==== |
| Note |
= === =
The Bold Letters Solves Your QueriesExecutables Can Be Made By Many Compilers Such As NSIS Or Inno Setup

You Can Also Make An Executable With Winrar (SFX Option)

thanks for the immediate reply!
I'll try that one...QUOTE from: night-rider on June 24, 2010, 03:41:56 AM

nice day!!!
how does a setup.exe produce or provide files to run it's system? Like some antivirus, just a click to setup.exe and after installation, you can see the software property files/folders where it targets. where are those files/folers came from? inside the setup.exe?
thanks!!!

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.


I start it up and it says linux is going into low-graphics mode. I don't know how to use low graphics mode and it says LOGIN so I put in my login and password and it doesn't work. Then some troubleshooting stuff comes up and when I click on it that also just refuses to work. You click on it and it just stays at the same screen. I try to boot off of a disk and it says put in a disk and try again so I take out the disk and put it back in and it says the same thing.


If you have any other question please ask. try to reinstall os ..how genius. i can't use a cd drive.Quote from: newcompnewprob on June 26, 2010, 11:26:33 AM

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.
I am after a script which will look at only 1 file, check whether or not it is older than X days old, and if so, create a new file in a temporary directory.

I am QUITE terrible in VBS, but still willing to learn. So if you would take the time to break down the code and explain, that would be greatly appreciated, otherwise, the code is still appreciated.you can take a look at EXAMPLE 1 here.
If you need just 1 file, remove the for loop and change strFolder variable to strFile that contains the path of you file.Quote from: ghostdog74 on June 23, 2010, 09:13:07 AM

you can take a look at example 1 here.
If you need just 1 file, remove the for loop and change strFolder variable to strFile that contains the path of you file.
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.


I imagine that line is supposed to be something like

Code: [Select]Set strfile = objFolder.Files("netpass.txt")
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

Code: [Select]Set objFile = objFS.GetFile( "netpass.txt" )


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.

Within my C program (running on Linux), I will format the command string then do a call to system().Some more detail please.
Which FTP? Which OS?

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.

SED is not included in Windows because it is really a Unix program. But it was ported to Windows so time ago and works very well.

The command line syntax is basically like this:
SED s/abc/xyz/g filename

That means substitute xyz with abc for the whole file.
Output is displayed.
Well, YEAH, there are a few more details. But the above is the idea.
Quote

@ECHO off
ECHO Set the current directory to the folder in which SED was installed
C:
CD "C:\Program Files\GnuWin32\bin"
ECHO Add line numbers
SED = "C:\temp\original.log" > "C:\temp1.log"
ECHO Format line numbers
SED "N;s/\n/\t/" "C:\temp\temp1.log" > "C:\temp\temp2.log"
ECHO Output only the lines containing the word 'ERROR'
SED -n "/ERROR/p" "C:\temp\temp2.log" > "C:\temp\processed.log"
ECHO Remove temporary files
DEL "C:\temp\temp1.log"
DEL "C:\temp\temp2.log"
Copied 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.

Pure batch.
http://www.dostips.com/DtCodeBatchFiles.php#Batch.FindAndReplace

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
ECHO Set the current directory to the folder in which SED was installed
C:
CD "C:\Program Files\GnuWin32\bin"
ECHO Add line numbers
SED = "C:\temp\original.log" > "C:\temp1.log"
ECHO Format line numbers
SED "N;s/\n/\t/" "C:\temp\temp1.log" > "C:\temp\temp2.log"
ECHO Output only the lines containing the word 'ERROR'
SED -n "/ERROR/p" "C:\temp\temp2.log" > "C:\temp\processed.log"
ECHO Remove temporary files
DEL "C:\temp\temp1.log"
DEL "C:\temp\temp2.log"

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,
Why not just make sure SED is in your PATH instead of doing two commands to get to the path where it is installed.
...
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.
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.
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 switch
Right.
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,
I have searched but just don't seem to be able to get an answer.
I'm trying to CREATE a shortcut USING a .bat FILE.
It runs a program which in effect runs an access applicatioin.
However, I want to supply command argumants to the target of the shortcut.
The following contents of the batch work fine.
However I want to add the comman arguments on the end and am Having trouble.

here's the script that works

@echo off
echo Set oWS = WScript.CreateObject("WScript.Shell") > P:\docs\h\g\h\hgh1\1\CreateShortcut.vbs
echo sLinkFile = "P:\docs\h\g\h\hgh1\1\Review.lnk" >> CreateShortcut.vbs
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> CreateShortcut.vbs
echo oLink.TargetPath = "\\pts-app\partner\PTS-Apps\Partner_Review.accdb" >> CreateShortcut.vbs
echo oLink.Save >> CreateShortcut.vbs
cscript CreateShortcut.vbs
del CreateShortcut.vbs

As you can see, the target path is :- \\pts-app\partner\PTS-Apps\Partner_Review.accdb

However, I need it to be :- \\PTS-APP\Partner\PTS-Apps\Partner_Review.accdb /cmd "XXX000000000031|1|"

Any ideas on how to generate that. The quotes are driving me mad.

There is a program to create shortcuts in batch.
SHORTCUT.EXE (Google it.)
Did you already read this?
https://superuser.com/questions/392061/how-to-make-a-shortcut-from-cmd
It says:
Quote

Seems like there is some shortcut.exe in some resource kit which I don't have.
As many other sites mention, there is no built-in way to do it from a batch file.
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.

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.
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....

So, I am using MPLAB X IDE v1.70 on OS X version 10.8.2. The project configuration in MPLAB X is setup with the device of PIC16F723A, hardware tools of ICD 3, and compiler toolchain as XC8 (Location: /Applications/microchip/xc8/v1.12/bin). There is no supported plugin board. It is NOT setup to power the target circuit from the ICD 3.

The error I am getting is "CONNECTION Failed.If the problem persists, please disconnect and reconnect the ICD 3 to the USB cable. If this does not FIX the problem verify that the proper MPLAB X USB drivers have been installed."

The warning I am getting is "CAUTION: Check that the device selected in MPLAB IDE (PIC16F723A) is the same one that is physically attached to the debug tool. Selecting a 5V device when a 3.3V device is connected can result in damage to the device when the debugger checks the device ID. Do you wish to continue?"

Here is how I have the circuit setup...
PIC16F723A PIN 1 is connected to ICD3 MCLR PIC16F723A PIN 28 is connected to ICD3 ICSPDAT PIC16F723A PIN 27 is connected to ICD3 ICSPCLK PIC16F723A PIN 1/ICD3 MCLR is connected to external VDD (+3.3V) through a 10K resistor (I have also tried a 4.7K) PIC16F723A PIN 8 is connected to PIC16F723A PIN 19 PIC16F723A PIN 19 is connected to GND PIC16F723A PIN 20 is connected to VDD (+3.3V)

I am checking the chip using a Tektronix Oscilloscope and when I continue from the warning message, I see data being transfered on the ICSPDAT pin, but nothing has changed for the RA1 pin.

Here is the code I am using:

Code: [Select]#include <stdio.h>
#include <stdlib.h>
#include <pic16f723.h>

void main(void){
int i = 0;
TRISAbits.TRISA1 = 0; // RA1 to output
ANSELAbits.ANSA1 = 0; // RA1 to Digital I/O

while(1){
PORTAbits.RA1 = 1;
for(i = 0; i < 1000; i++);
PORTAbits.RA1 = 0;
for(i = 0; i < 1000; i++);
}
}
I have checked the circuit design several times, I have checked to make sure the chip is correct (the silkscreen on it says PIC16F723A-I/SP 1142D3V). I have also tried programming it by supplying +3.3V from an external supply and a +5.0V from an external supply.

Here is the schematic:



Where I have attached an oscilloscope to SCOPE

I have tried the ICD3 test interface board and it came back saying everything is working correctly:

Code: [Select]Test interface PGC clock line write succeeded.

Test interface PGD data line write succeeded.

Test interface PGC clock line read succeeded.

Test interface PGD data line read succeeded.

Test interface LVP control line test succeeded.

Test interface MCLR level test succeeded.

ICD3 is functioning properly. If you are still having problems with your target circuit please check the Target Board Considerations section of the online help.
I have been able to successfully program a PIC16F1824 chip with this programmer and computer. I am using a PIC16F723A because I needed more I/O pins than the PIC16F1824 has. I have also used this computer to successfully program a Cerebot MX4cK. For some reason the PIC16F723A doesn't want to work. If I haven't mentioned it before, I have tried multiple chips.Have you been in contact with chip manufacturer to see if this is compatible with instruction sets your using.

I have seen before where you can initialize a chip that is similar but unable to control its I/O and its because while the handshake is there to initialize the chip that is similar but different, the instructions are different in controlling the I/O. I had issues like this a long time ago with the BASIC STAMP 2 chip, and the code I was trying to use to work with this chip was for BASIC STAMP ( original chip ) and someone else wrote the code for the STAMP chip and the STAMP 2 which I saw as being a better purchase wasnt 100% backwards compatible. The software to initialize seemed to work, but the instructions didnt work correctly because there was a difference in the chips internals between STAMP and STAMP 2. I contacted Parallax and they shared some info with me. It came down to that I had to rewrite a lot of instructions for the STAMP 2 chip that were different from the STAMP 1 chip which is just called BASIC STAMP.

Here is the BASIC STAMP chip info in case your curious and havent heard of it. It came out about 25 years ago and I messed with mine back in college around 1998 in a computer electronics course where I was messing with robotics. https://en.wikipedia.org/wiki/BASIC_Stamp


Quote

(1992) BASIC Stamp 1 (BS1)
(1995) BASIC Stamp 2 (BS2), with six sub-variants:
BS2e
BS2sx
BS2p24
BS2p40
BS2pe
BS2px
(2002) JAVELIN Stamp
(2006) Propeller\Spin Stamp

The BS2 sub-variants feature more memory, higher execution speed, additional specialized PBASIC commands, extra I/O pins, etc., in comparison to the original BS2 model. While the BS1 and BS2 use a PIC, the remaining BASIC Stamp 2 variants use a Parallax SX processor.
509.

Solve : sed windows to find - replace in file?

Answer»

hi,
my need is to find a string in a file (named file1) and substitute that string (string to substitute is testtest/) with all content of another file (named file2) and create a new file (called file3)


what i've done is :

%SED% -e "s/"test1/"//C:\User\file2" c:\User\file1 > C:\User\file3

but what i get is only susbtitution of test1\ with the path of file 2, not the content.

How can i SOLVE?

i've ALSO tried to use get-content in powershell but it not integrate well with my final.exe file remaining powershell append or getting error "cannot LOAD module PSReadline console without PSReadline." so I think it is BETTER to use SED


Thanks for your preciuos support

510.

Solve : Help writing Program in C++?

Answer»

Dear Users
i have an assingment to submit so please help me in writing this program
Q: Fill the ENTIRE screen with alphabet A , then creat a blank window of 16 rows by 30 COLOUMNS on the screen. In this window display first 16 ascii values and their corresponding characters. As soon as the window is full, wipe out the window and full it with the next 16 characters. Continue the process till you have displayed the entire ascii tabel
thanks :-? :-? :-? :-? :-?Quote

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
Quote
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-)

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?

Alternatively, is there a SET a libraries I could install in linux, so that I can cross-compile a WINDOWS EXECUTABLE with gcc?http://www.bloodshed.net/devcpp.html

Free C and C++ compiler for Windows and Linux. I think Visual C++ Express works with C as well:

http://msdn.microsoft.com/vstudio/express/visualc/Quote

http://www.bloodshed.net/devcpp.html

Free C and C++ compiler for Windows and Linux. I think Visual C++ Express works with C as well:

http://msdn.microsoft.com/vstudio/express/visualc/

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

I am using VB6. How do I copy the data from the database(SQL statement) to an array. The result data from the query has 6 colums or fields but an UNKNOWN number of rows. So this array should be a 2D array.

I then pass this array to ANOTHER FUNCTION. Is an array the best container to USE?

Thanks
:-?

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?

I have created a GUI for my spreadsheets and want it to display a specific workbook from the MENU depending on the value of a specific cell. My idea is to create a macro that when pressed compares the cell value to the workbooks and displays the corresponding workbook...Yes. May I suggest you search the many, many places where you can find samples of robust Excell macros that can almost do anything.. Here is just one of the many...
http://knowledgecenter.gateway.com/index.jsp?mtr=DCYPORH0A&sg=hm
Hope this helps. just wanna say THANX for that link it has helped enormously!!

516.

Solve : Binary Search?

Answer»

Hello,

I would like to know how to perform a search that looks for the following Hex code in the file c:\test.exe and return the path of thsi file if it is found
58354f2150254041505b345c505a58353428505 e2937434329377d2445494341522d5354414e44 4152442d414e544956495255532d544553542d4 6494c452124482b482a

This code would be part of a larger program so I would help in vb.net. If anyone could point me to a tutorial where there is information on hat it would be very much appreciated.

Thank You

Al968Not sure the commands you will need to use, but I'd use a procedure like this.

1. Store the string to be found in a variable, and create a found variable whose VALUE is false.
2. Open the file as a text document.
3. Set a variable to TRACK the current character of the string we have found so far. I will call this track (no pun intended)
4. Whilst you have not reached the end of file...
4A. If the character you have just read is the same as the "track-th" character in the string to be found, increase track by one,
else track becomes zero.
4b. If track equals the size of the string to be found (or probably the size -1) then set the found variable to true and break from the loop (unless you which to count the number of instances perhaps?).
5. Close the file. For completeness
6. Perform whatever instructions based upon the result of the found variable.

There are probably more efficent ways of doing this, but try to find if this works first and we can IMPROVE it later.

You probably can't find tutorials on this as tutorials only cover general aspects, or very popular tasks. This is rather a specific problem. Try reading tutorials on handling strings and file management. I haven't used vb.net in a long time so I can't give you any code sorry.

Good luck.Thanks for the PSEUDO Code, I too don't know the commands to do that but know very well like you do what the pseudo code would be.
I'll look into strings and file management tutorials.
Thanks
Al968
P.S: Still looking for the code if you have an idea

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.

thxs in advance.1. What program?
2. Why?
3. Do you think they'd make it so easy to decompile a private program?1. autoclick a shareware program
2. keep me from going afk in a game
3. very very good point.

Most programs are written in some variant of C (C, C++, C#) or a language based on it (Java, J++, J#, etc). However, as Neil pointed out, many programs use a method known as code obfuscation. For example, take a look at this:

Code: [Select]#include <stdio.h>
main(t,_,a)char *a;{return!0<t?t<3?main(-79,-13,a+main(-87,1-_,
main(-86,0,a+1)+a)):1,t<_?main(t+1,_,a):3,main(-94,-27+t,a)&&t==2?_<13?
main(2,_+1,"%s %d %d\n"):9:16:t<0?t<-72?main(_,t,
"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+,/+#n+,/#\
;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \
q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# \
){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#n'wk nw' \
iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \
;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! NR'/ ') }+}{RL#'{n' ')# \
}'+}##(!!/")
:t<-50?_==*a?putchar(31[a]):main(-65,_,a+1):main((*a=='/')+t,_,a+1)
:0<t?main(2,2,"%s"):*a=='/'||main(0,main(-61,*a,
"!ek;dc [emailprotected]'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);}
Thoroughly unreadable, no? This infamous C code, when compiled and run in a DOS window, has an interesting output. Try compiling this as a C program, open a command prompt, navigate to that folder, and run it. (It'll close quickly if you just double-click it.) Interesting, isn't it?

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.

You make programming langauges sound like some mystic, natural occurance that grow on their own without our CONTROL and wait for us to find and discover them, which is untrue. That's what bugged me.Sorry Like I said it was a figure of speech. Sorry you didn't understand what I was TRYING to say.It's ok

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.
when i load it as normal it tells me the following file is missing or corrupt COMMAND.COM so to get in it i go through step by step mode which halts when i get to autoexec.bat.
I NOW HAVE A DECENT PC which is good but would like to get the laptop sorted and if poss get windows 98 on it so my eldest son can learn on it. could really do with the help

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! :)

-JohnHere is a couple of good resources 1, 2, 3, 4, 5, and 6. HOPE that helps

521.

Solve : Want new ideas to be implemented?

Answer»

I am a student at the faculty of Computer Science - Third year

And I now prepare for my GRADUATION project by collecting new ideas to be implemented

:-?If anyone have a new idea , please send it with a small description

and thanksHow about you write us a small description

What kind of areas are you looking for? A website? A database? Since you've posted in the programming forum, I assume that it's going to be programming related. What language are you THINKING of doing it in?There is a great need for the technical education of people who are never going to spend three years studying computers or anything else. Watching TV is their a POOR form of education. What is needed are better ways of training people to do the things they need to do as well as the things that can be fun. How about an “invisible” ( read embedded) OS that will interact will people who learn by interactions with people or things rather that following an outline of INSTRUCTION. Yes, there already are things like that at a price, but bring it to the masses.
There is also a great need for the education of people who need to write SPECIFICATIONS

What you are basically proposing is a dumbed down way of learning how to use computers, which defeats the point of technical education, because as soon as they are required to do something really technical, they will be unabled to because they have been pampered like so. Just my opinion. Look up Microsoft Bob 8-) is it popular today?

522.

Solve : Class constructors and deconstructors?

Answer»

I've got something I can't find the answer on...

I've got myself a beginning C++ instruction book and it's introducing me to classes. OK, I get the main idea, and I'm capable of WRITING a class with several member objects, no problem. However, I don't understand the point of a constructor or a destructor. I know vaguely that a constructor sets the initial values of some of the private (or public) data, but what does the destructor do? It's rather frustrating. The excerpt from the book:

Quote

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
i have installed the BEA WEBLOGIC SERVER 5.1 on my computer but when i click on the startup icon the batch file is just blinking .what should i do to MAKE it work properly
baya anjiNot familiar with this particular APP, but I presume that it is web-server software that is to be used to host a site or to test scripts locally, or at least SOMETHING like that, right?

In which case, the good news is that there isn't anything to do, because it is working correctly. GO into your web browser with the webserver open and type "http://localhost" (without the quotes) and you'll be able to access whatevers in your website root folder.

I use Apache on my machine. All you need to do is minimise it to your taskbar and get on with it.

524.

Solve : vb/ shell / net user?

Answer»

how do you SHELL the NET USER COMMAND in VB?

525.

Solve : Interfacing in Java?

Answer»

ei

this is about java programming.

Is it possible to USE Java in the concept of Interfacing?

Is there any SITE that TEACHES the concept of interfacing USING java?

How is it done?



thank you very much....

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?

Maybe you better start a NEW thread???Nothing works.I'm LOST now mari2.....Are you using a original WIN 98 cd or is it a copy ? That could be your problem.....I see that you are able to format your C drive ok and it seems that you are able to load the necessary files from your win98 boot disk .......when you GET the A PROMPT after the boot disk loads ......are you able to change the A prompt to the R prompt ok ? And you put the cd in the drive and type setup.....and it loads ok ?

let us know
dl65

527.

Solve : C++/C 'lessons'?

Answer»

hi there,
does any one have a large document/text file/html page on beggining with c or c++?
or does anyone know any scorces.
so far, i have

dev C++

and

Mirical C

compilers. dev c++ compiles both c and c++ and many other file extensions.

so far, i have only made the 'hello world' program with c++ whiuch the only line i understand in the code is 'hello world'.

also are there any reccommanded books that i could buy?

thank you for any help you can give me.

(oh, and im not stupid enough for SOMEONE to say 'here U n00b' and give me an .exe file)How Stuff Works - How C Programming Works

Decent tutorial.

I am now reading one of the Dummy books - C++ for Dummies by Stephen Randy Davis.(Also the author of a book called C++ Weekend Crash Course)

C at the best of times is a very difficult language to get to grips with at the best of times (ie with programming experience). If you are TOTALLY new to programming, I'd recommend Python (http://www.python.org), since it's pretty straightforward but still very powerful.

After you have the hang of the basics, start off coding in C. C++ is horrendously complicated for a complete beginner (as you've aptly demonstrated), and is a language I'm still totally flummoxed by.

Anyway, I think you'll find that searching the web for more than 0.2 nanoseconds will uncover a *censored* of a lot of sites with C/C++ Tutorials. I had a quick look at DMoz.org and found loads -

http://www.dmoz.com/Computers/Programming/Languages/
http://www.dmoz.com/Computers/Programming/Languages/C/Tutorials/
http://www.dmoz.com/Computers/Programming/Languages/C%2b%2b/FAQs,_Help,_and_Tutorials/

As Raptor has hinted though, these online tutorials are NOTHING compared to a BIG chunky bit of treeware (a book, to you) sitting on your desk...

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:

http://www.catb.org/~esr/faqs/smart-questions.html
http://www.dictionary.com/
http://www.google.com/

529.

Solve : bio-medical instruments and computer interfacing?

Answer»

i have been assigned to a project related to hospitals.
this project requires COMPUTER to COMMUNICATE with
medical instruments, usual pathology stuff. how to go
about this project . are there any RESOURCES available on internet which will guide me in his project.

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.

Problem - USMT is only picking the PROFILE of the person logged in. Need to pickup all user profiles on machine.

Microsoft documentation just says it can be done, doesn't GIVE any additional info or examples.

Below is the batch file being used to call the .inf files.

Help?

Cathy


\\servera\directory\scanstate.exe
\\serverb\directory\%computername%
/i \\servera\directory\sysfiles.inf
/i \\servera\directory\migism.inf
/i \\servera\directory\usmtdef.inf
/i \\servera\directory\miguser.inf
/c /l scanstate.log
Hi everyone, this is my first post. Just like to say Merry Christmas to you all . The problem I have is when I CLICK on a WEB site address, the page loads, 1 or 2 seconds then it vanishes and i'm left with a blank page.
If I download from my favorites it's ok. can anyone Help please. Thank you.

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.

Please e-mail me with a good link or script to use or other useful hints.Now as good as computers get these days, there are still some things they cannot do. They can't make you a CUP of coffee in the morning, for example, and they can't take your pet crocodile for a walk either.

And even though we now have speech and even handwriting recognition software, Extra Sensory Perception software is still a little while off.

So the next time you want US to EMAIL you with ANSWERS, remember to actually provide it when you post. Not that any of us will email you ...

Anyway, this might help: http://www.winguides.com/forums/showflat.php?Cat=&Board=brdScripting&Number=114853&page=0&view=collapsed&sb=5&part=

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.

is there one?Is GCC the one for thee?I have tried searching 'GCC compiler' but i dont get that much help. What im exactly looking for is a c++ (or just C) compiler that is under 1.44 MB and will run on my all dos computer (my mom is always on this computer so i cant use it.) please give me a URLI think he/she MEANT BCC compiler. You should be able to find in at the Borland HOME page. It's free for the command line compiler v5.5

Good Luck! Nah! HE (see the gender SYMBOL) meant GCC - see here:

http://www.gnu.org/software/gcc/gcc.html

Happy New Year to all

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.

USING pencil on the cpu, wacking on bigger HS and adding fans, randomly increasing the V until its stable and CROSSING your fingers are just some of the joys on the overclocking path!Quote

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
and when you get the C: prompt Type A: and enter
At the A: prompt type Format C: and enter .......you will get a warning message ....ALL DATA WILL BE LOST do you wish to continue.......ANSWER Yes
make sure you have everything you dont want to lose saved to a cd ..........( E mail address book ...WAB , any docs you need or pictures ......)


dl65 No, I have Windows XP. I think I have to save the bootdisk file to a floppy, but a cant get a floppy big enough. That, or I'm really messing up somewhere.Reemay,

I think u r trying to format C:/ while u r still in C:/

Meaning if you boot your computer from C:/ and all your windows files are there, you cannot format C:/

It's like asking windows to COMMIT suicide. U need a boot disk to boot up, then you can format the drive with your windows.

cheers1. Go to bootdisk.com and download to your harddisk the bootdisk for "Win.98se custom no ramdrive".

2. Insert a formatted floppy in A: and click on the file you downloaded. This will create the actual boot disk on A:.

3. Write protect the boot disk and boot from it. This will install a driver for your cd named Banana with the drive letter R: (watch the screen at boot time &AMP; you will see this). If you still need to format, at the A:\ command prompt type "format c:" (without the quotes) and hit enter.

4. Insert your Win OS disk in the cd and at the A: command prompt type "R:\setup" (without the quotes) and hit Enter. Follow the onscreen prompts to install Win.

The installation sequence may contain a process to create a "Startup Disk" so have another blank formatted floppy available.

1. & 2. may have to be done on another pc.

Of course, you will also have to reinstall all your anti-virus protections & other progs if you format.

Good luckMake sure you have your driver disks too, especially graphics card, or you're in trouble. Why are you trying to format? Maybe we could help with the problem making you format?

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 .)
It's really easy to do

dl65

537.

Solve : find, move certin dll?

Answer»

Hey guys!
I have a question for you.
I have a d9d3.dll file in a folder c:\program FILES\photoshop
Its a dll for a plug in i downloaded
What i want is a BATCH file that will find if its in the photoshop folder or in the c:\program files folder
Display which folder its in
Display move? Y/N
If i say Y, then it will move to the OPPOSITE folder
If i say N, it will exit

Thanx in advance for the help on this batch filehow WOULD i be able to write this im not good at writing code
this will be the first batch file i have ever created
so help with code is what im ASKING for
thanks in advance again

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:
I recently aquired a used computer. It came from an apartment complex that has a computer room where RESIDENTS can get the internet and use other programs. My problem is it will only allow me in on the tenant side. I have no admin. privileges. When I asked the manager about how to get admin rights she SAID the computer had been a replaced by new ones a long time ago and she didn't know how to get the rights. It runs NT4 and it will not allow me to update, INSTALL a printer, format or anything. I've taken out the CMOS battery and put it BACK in, allowing me to get in without a password, but only on the tenants logon. Is there a way of getting the rights through the registry or command prompt?
Thanks!
Just as an FYI this would have been better posted in the Windows section. As it's here now I might as well say that I think you're best off formatting. You get a fresh install and you ensure that you're the admin.

539.

Solve : Rcmd+for loop?

Answer»

How can I NEST a rcmd into a for loop for starting/stopping services.

Anyone EVER done this?Is this the WRONG way to go about this?

540.

Solve : Re: definition?

Answer»

journeyman....Are you sure that .......HTPICP.......is correct ?
Why do do think its HP related ?

dl65 I'm also CLUELESS on this term, Google only finds one result, which means to me that you MAY have mistyped the term.

How is this for a guess:

Hyper Text Programming Internet Control Protocol

Is this actually a guess, and what exactly is that??I have a buddy who owns a HP computer, his server is AOL. When he tries to sign-on, he GETS to the fourth step, and it stops. He called AOL, but they told him that the problem was not at there end. They told him to CALL HP, and they would have to run HTPICP TASK. That was just a guess at what I would say each of the letters mean in the acronym. It is likely not REALLY what each letter stands for, I guess I should have been more clear.

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?

ThanksI think it's "Run C:\path\filename.exe"Hmm... I did this

Run C:\1\pub-revemu.exe
Run C:\2\pub-revemu.exe
Run C:\3\pub-revemu.exe
Run C:\4\pub-revemu.exe
Run C:\5\pub-revemu.exe
Run C:\6\pub-revemu.exe

and saved as NAME.bat ...... but a window opens and closes and nothing happens... whats wrong?Is that path correct? You have an actual directory on your C: called 1 etc? Try taking out the run.yep i got a folder in C:\1 ...WELL the path is correct. what else might be the PROBELM?Try START instead of RUN

Start C:\1\pub-revemu.exe
Start C:\2\pub-revemu.exe
Start C:\3\pub-revemu.exe
Start C:\4\pub-revemu.exe
Start C:\5\pub-revemu.exe
Start C:\6\pub-revemu.exeIf u use winxp, or maybe 2k, im not SURE about it....but in xp u only need to write the path with ""It would not be possible... well of course you can't run programs all at the same time... it should be done one at a time... but the command is just simply writing the path... hehehehe...

c:\1\pub-revemu.exe

just make sure that the file is present...

why make things complicated???


try making this in notepad then saving it as a bat (just add .bat at the end of the file name)...

@ECHO OFF

start C:\1.....
start C:\2.....
start C:\3.....
....
.....

obviously using the whole PATHNAME in thereSyntax, the programs aren't STARTED at the same time. Processors (generally speaking) can only deal with one task at a time, but nowadays they do so at such a speed that it merely appears to be simultanious.

What happens in a batch file is that the first line is executed, then the second, then the third... one at a time. It just happens quickly.Does the first program start to run? The batch file should start the first program and then sit idle until that program ends, which returns to the batch file to execute the next command. It will not execute all five programs at once. The syntax is simply c:\directory\program name
or whatever drive,directory,program or batch you want to run.

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



capricorn0156capricorn0156....You should have received this link........
Here is the link you requested:
http://www.fspro.net/download/aboss.zip

Click the enclosed link and it will D/L .........it is a zip file .....unzip it and click on the ab_setup icon .......When its finished installing ...it askes to reboot .......then when its rebooted .....click on the icon that will be on your desktop........a box will popup called ABOUT .......down near the bottom you will see "Enter the registration code" .......then enter your name and the registration number they sent you and its done ........Enjoy

Hope this helps you

dl65
thank youdl65 I have downloaded the program access boss from the icon on my screen and have gone all the way through to the about window and entered my name and registration code given to me ( I typed it in manually from the print I made from the acceptance notice in my email box) The problem still exists where the box marked OK is shaded in gray and will not let me click on. I have tried to cvontact them via email through outlook express. I am going to have to have someone with server knowledge because I think I set it up incorrectly. It keeps sending me an ERROR message I am not understanding because, as I mentioned before, I am computer illiterate. I am an old dog LEARNING new tricks but I keep on trying. Thank you again for all your attention to me problem


capricorn0156capricorn0156.....Have you had any reply back from the program supplier yet ......?
You mentioned ....." I am going to have to have someone with server knowledge because I think I set it up incorrectly. It keeps sending me an error message I am not understanding ......"
What do you think you set up incorrectly ........? and what is the error message you are receiving ?

Let us know ,

dl65
Thank You dl65. I beleive I have incorrectly set up my outlook express withe the wrong server information in order to send and receive email to fsnet. The error message reads, if memory doesn't fail me, that the connection has been terminated, my pop address is not recognized. I am not sure what my server for outgoing mail address or incoming mail address is. ( http, pop,etc.) I went into my computer and then into network places to look for that information but it is all GREEK to me. I cannot contact the company I purchased Access Boss from until I do. I do have several friends and people I work with that ARE computer literate. My kids seem to know more than I , How embarrassing is that??? Thanks again for coming to my rescue



capricorn0156

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 .

I CREATED a batch file to delete all the directories and subdirectories labeled "CVS" from my root directory.

This what I came up with but it only deletes the CVS folder in the root directory then says
"The system cannot find the file specified" when I continue through the loop.


for /f %%i in ('dir') do rmdir CVS. /s

If someone could give me a HINT as to what I'm doing wrong I would greatly appreciate it. Thanks.

Ok its re-checking the same folder ....now to SEE if I can figure out how to MAKE it check the subfolders for subfolders ans delete em.set Folder=?
FOR /f "delims=" %%i IN ('DIR /b %Folder%') DO IF EXIST %Folder%%%i\nul ( rmdir %Folder%%%i )

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.

For all OS's, if you had the FORESIGHT to backup your system REGULARLY, (hint, hint ) you can restore from your backups.

If none of these apply, you are SOL.

Good luck.

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 am swapnil I am in I.T. students i want to learning networking engineering so, i want to INFORMATION of networking engineering and also some part of if information is AVAILABLE networking

please contact me

i want to need it
Quote

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
i mean that data could't be restored by using programs
like final data...........

IYAD.....you should "SECURELY scrub the HARD drive " use a program like System MECHANIC Pro .....to do this ....
I am assuming you are either selling or GIVING away your pc .


dl65

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?

I am thinking that the tool would have to place both embedded EXE's into a virtual space to work from so that one can be called over the other, otherwise both would execute at the same time under a single Exe?

Thanks,

DaveThese are your EXE files, right? How large is the source code, anyhow? If it's not very complex, a rewrite of one of them might be in order.

Now, I'm trying to find info on doing this. However, Google's turning up empty. Perhaps one of the other regulars could help shed light on the possibility.A rewrite of both programs into one would eliminate duplicate services (IO mainly). If these are LEGACY languages, you might be able to redesign one program as a subroutine, compile each module separately, and LINK together as a single run unit. Addressability would be maintained by the call instruction. Newer languages use DLL's in much the same way.

The candy wrapper program you mentioned would most likely have to be written (and maintained) by you and would only add ANOTHER layer of complexity.

Good luck. 8-)More detail about these programs is urgently required. What langauages are they written in (I mean, come on!) and did you make the programs yourself? What is the FUNCTION of these programs?Sorry for not specifying languages and use. Here is more info to aid, but I am probably looking at sticking with 2 EXE's if there is no way to wrap them into a single EXE with any already existing tools.

First Program, the main routine written by me in C++ ( MS Visual C++ 6.0 ). Program size 300k in EXE stand alone format.

Second program, created using a Macro Recorder to perform Keyboard, Mouse, and program Launch routines that are preset, prerecorded into an stand alone EXE. ( This gives my duo application its real execution and processing power by running processes by telling Windows what to do. ) The C++ program waits for flags that change as a result of the macro function, to know what to do and when. They both work in harmony to complete the programmed tasks. << I dont know how to control the Windows environment, Mouse and Keyboard functions from Within the C++ program, so this allows for an easy way to do so successfully.>> From C++ I can only use the SYSTEM function to call out for executables within my program. Also not sure what language the Macro is compiled from to decompile and merge my code with it.

Looks like I will just have to get by with 2 EXE's.... It works but doesnt look pretty... :-/What actions are completed by this marco?

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.

but as i put it all TOGETHER, it SAYS:

Parse error: parse error in /data/members/free/tripod/nl/n/m/1/nm10/htdocs/forum.php on line 22



CODE: [Select]<?php/*-------------------------*/

$UPDATE_DB=1;
$OMNILOG=1;
$banner="no";
include("_include-config.php");
if(!check_login()){
header("Location:login.php");
exit;
}

/*-------------------------*/?>
<html>

<head>
<link REL="stylesheet" TYPE="text/css" HREF="css-v3.css">
<title>World Crime</title>
</head>

<?php

<framesetcols="350"framespacing="0"frameborder="no"border="0">
<framesrc="playermess.php?m={$_GET['m']}"name="gfTopics">
<framesrc="playermessa.php?id={$_GET['m']}&m={$_GET['m']}"name="gfView\">
</frameset>";

?>
<body>
</body>




</html>


Can anyone help?

Code: [Select]<?php

<framesetcols="350"framespacing="0"frameborder="no"border="0">
<framesrc="playermess.php?m={$_GET['m']}"name="gfTopics">
<framesrc="playermessa.php?id={$_GET['m']}&m={$_GET['m']}"name="gfView\">
</frameset>";

?>
Here is the problem
Code: [Select]<?php[highlight]echo"[/highlight]

<framesetcols="350"framespacing="0"frameborder="no"border="0">
<framesrc="playermess.php?m={$_GET['m']}"name="gfTopics">
<framesrc="playermessa.php?id={$_GET['m']}&m={$_GET['m']}"name="gfView\">
</frameset>[highlight]";[/highlight]

?>

You closed your echo tag but the tag itself is not open.Ahh, my bad i guess

thanks for the help 8-)

550.

Solve : Help creating a simulation?

Answer»

Good EVENING,

I would like some help creating a simulation for sports. Suppose I have Team A vs. Team B, how could I determine what would happen. Similiar to that of a Madden game, but less detailed, of course. I am tired of doing it manually and was wondering where would be a good place to start? A direction? Anything! Any help would be appreciated! Thank you in advance...For example:

Team A stat: =A21+(Ab21(average of bb10-bb21)-Bb21(average ac10-ac21)+(Ac21-bc21)=

I need a quicker way to interpret data ... wanted to do it VIA simulation.I have deleted your two other identical THREADS and left this one in the most appropriate topic.

Only one posting is needed. Thanks.Not entirely sure what you want to do. How far do you want random chance to be a factor?Thanks Neil, great question. I would like randomness to be limitied overall. Obviously, there will be some within ... but, my numbers will remain very strict. I am open for ideas and suggestions. Most importantly, I would like a good place to start. I am savvy with computers, numbers, and language.

Thank you in advance!Are you trying to predict the results of games? You'd need to collect a LOT of statistical data. The simplist method to find out if Team A would beat Team B is to see how many games against each other they have won before hand, and use that to work out a relative strength between them, and so determine the chance of winning.Yes. I am trying to predict the scores of game. I already do so now, about 65% accurate. However, it is way too time-consuming. I spend, literally, at least one hour on each game breaking down statistics. I know that if I could get the computer to do the work for me, I would save myself 20 hours a week! You see ... If it took me 100 hours to learn how to program it with my computer, it would take me only 5 weeks to become beneficial for me. 20 hours per week * 5 weeks= 100 hours. 100 hours of programming=me being a happy man with more time on my hands to break down psychological, and trend analysis.

"The simplist method to find out if Team A would beat Team B is to see how many games against each other they have won before hand, and use that to work out a relative strength between them, and so determine the chance of winning."

I do this now, this is one of many steps to handicapping. I want to break them down into so many tiny pieces, and then build them back up into a big picture, like a puzzle.I don't have any experiance in this kind of thing.. that is predicting sports! If you could explain in English some of the steps you take in order to predict the outcome of a game, I might be able to offer you more specific help. Also how much programming experiance do you have, and in what language do you wish to write this program?