Friday, July 31, 2009

Windows 98 Find option / MS-DOS Problems/ Microsoft Word problems needed urgently?

I'll give you 10 points


I want detailed step-by-step instructions!


for Windows 98 users only: (also answer examples)


# How to find files in selected directories (eg. find only in drive C,D not in E)?


#How to display only files, not folders (eg, find files in c,d drives starting with a)?


#finding files created 6 months ago


#What are the options in dropdown box "FIND ALL FILES" in date tab? (default: Modified)?


#What are options in dropdown box of "OF TYPE" (default: All files and folders) and SIZE IS dropdown in the advanced tab?





MS-DOS:give the Syntax to copy or move %26gt;1 files with example.





MS-Word:


#What are the default font %26amp; font size in MS-word?


#How insert page no. in the right corner of the footer?


#"Write 'A' letter to your friendS inviting them for your birthday party" - Will I have to do mail merge or write a single letter to all friends?

Windows 98 Find option / MS-DOS Problems/ Microsoft Word problems needed urgently?
Win 98


#1 There is no way any how do this. Yu can find only one diractory at a time. or Local Hard Drives (C,D,E)


#2 This can also be not done as folders don't have an extension. You can only find files with a particular extension.


#Type the first %26amp; last date of the month in the from..to(between option)- selecting the created option.


#Modifed, Created, Last Accessed


#of type: other extnsions of files, sixe is - at least,at most





DOS type: copy/? or move/? in the ms-dos.you'll get. Ex. copy(or move) source1 + source2 destination.





Word


#Times new roman 12 (in 2000 %26amp; later) TNR 10 (before 2000)


#Click view , header %26amp; footer, go to footer by switchin'. Press tab for a few times or ctrl+r


#anything wish
Reply:Just ask the paperclip
Reply:New Computer Please


This is a question about data structures (linked lists)?

Suppose that p is a pointer variable that contains the NULL pointer. What happens if your program tries to read or write *p?


A. A syntax error always occurs at compilation time.


B. A run-time error always occurs when *p is evaluated.


C. A run-time error always occurs when the program finishes.


D. The results are unpredictable.





Suppose that f is a function with a prototype like this:


void f(________ head_ptr);


// Precondition: head_ptr is a head pointer for a linked list.


// Postcondition: The function f has done some computation with


// the linked list, but the list itself is unchanged.





What is the best data type for head_ptr in this function?


A. node


B. const node


C. node*


D. const node*

This is a question about data structures (linked lists)?
for 1st Q.... the answer is ... it is run time error it will occur when u try to read data into the NULL pointer


for 2nd Q... node*


Microssoft excel help question#5. please computer friends?

If you want to calculate the average number of customers you have had over the past month, what would the syntax of your formula look like?











a. AVERAGE(number1, [number2,...])


b. CALCULATE(number1,number2,...])


c. AVERAGE(numberx,numberxx,...)


d. CALCULATE(number1, [number2,...])

Microssoft excel help question#5. please computer friends?
None of the above. My formula would be a vlookup() to determine which days had customers, a if("","",countif()) to determine the total count and then a averagea(sum()) to determine the average of the cells without blanks.
Reply:c

send flowers

Java boolean input question?

Im still learning Java and I am supposed to program something that has the user input a string and determine if the string is a string of characters, numbers, or empty string.


I have to use the command "boolean Character.isLetter(char c)" and "boolean Character.isDigit(char c)" to determine the first and last character of the string but I cant seem to get the syntax right. Any help would be greatly appreciated.

Java boolean input question?
The answer is here


MySQL Errors? Please Help!?

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%26lt;?











define("DB_SERVER", "localhost")' at line 1














That's exactly what I get, and I'm not sure why. I don't have a ' after localhost"); , but that says I do. If I need to supply more information, please just email me and I will give the rest of the code, here's a small snippet





%26lt;?


/**


* Constants.php


*


* This file is intended to group all constants to


* make it easier for the site administrator to tweak


* the login script.


*


* Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC)


* Last Updated: August 19, 2004


*/





/**


* Database Constants - these constants are required


* in order for there to be a successful connection


* to the MySQL database. Make sure the information is


* correct.


*/


define("DB_SERVER", "localhost");


define("DB_USER", murdok_"Murdok");

MySQL Errors? Please Help!?
You haven't even executed any MySQL in this example so I don't know where the message comes from. The error will be in a call to something like mysql_query.





But while we are here the user line looks wrong. Probably should be


define("DB_USER","Murdok");
Reply:Try this. This is what I always use:





$con = mysql_connect("localhost","root") or die(mysql_error());


$db = mysql_select_db("answerthis", $con);
Reply:The problem is actually in the next line - murdok_ should be within quotes:


define("DB_USER", "murdok_Murdok");





Currently it is not valid PHP syntax, so the script can't read it.
Reply:define("DB_SERVER", "localhost");


define("DB_USER", murdok_"Murdok");





first what is this murdok_"Murdok".... its wrong...


remember mysql may not tell you precisely...where the error is.


murdok_"murdok"....what is this??


you are using a variable and a string constant with an underscore...!!!!


change this and try,,,





Also you have this "%26lt;?" as a top most line...


make sure this is not there in your file


Plz someone help me out ! ! !?

consider the following database


s(sno,sname,status,city),


p(pno,pname,weight,color,city),


j(jno,jname,city),


spj(sno,pno,,jno,qty),


1.Now Pleez answer the following queries using SQL syntax:


a.Get full details of all projects in Peshawer as well as in Lahore.


b.Get supplier name of all suppliers who supplies project J1 in supplier name order.


c.Get complete detail of all shipments where quantity ranges from 200 to 700


d.Get the total quantity of part P1 supplied by supplier S2


e.Get the project number and city information for projects where city has an ‘I’ as the second





letter of its name.


f.Get the supplier name with complete parts information where part color is red.


g.Delete all projects for which there is no shipment.


h.Change the name of supplier to Asmat,his city to lahore, where supplier no is 101


2.answer the following queries using Relational Algebra syntax:


i.Get full details of all projects in Peshawer as well as in Lahore.


j.Get supplier name, parts name,project name and project city


of those supplier who supply part p1 with quantity greater thkan 100.


k.Get complete details of all shipments where quantity ranges between 200 to 700


l.Get the supplier name with complete parts information where part color is red.

Plz someone help me out ! ! !?
Read C.J.Date "An Introduction To Database Systems".


How do I open a command prompt to a specific directory without changing the defaults?

I need the syntax to open a cmd window to a specifc diretory. I have tried clicking on Run: then entering the following





cmd /k c:\Documents and Settings





This does not work





I need to know how to do this from the Run line becasue I really need the syntax to be used in a Java program I am writing..Alternative methods of opening a cmd promt wont do me any good Thanks for any help

How do I open a command prompt to a specific directory without changing the defaults?
cd c:\documents and settings





may try also





cd "C:\documents and settings"
Reply:You need the CD command before the path, and quotes around it if there are spaces.





so it becomes this:





cmd /k "cd c:\Documents and Settings"





Although if it is on another drive you have to change drives after it has started, I'm not sure how to do it directly.





--------------------





Alternatively, you can have your Java program write a batch script like this:





CD (directory) - changes path


C: - changes drives


(other dos commands here)





And call cmd /k (generated batch file)

quince

What does this error messege mean?

on joining forces reunited, after i filled in my profile, the next time i tried it , i got this, microsoft oledb providers for odbc drivers error 800 40e09 [tcv] {my odbc] you may have an error in your sql syntax; check the manual that corresponds to your my sql server version for the right syntax to use near ;at 1 line, can you tell me what this means, and is the fault on my p/c or with forces reunited program, how can i fix it,

What does this error messege mean?
It means that some Data Base Administrator over at the Forces Reunited site needs to fix a problem in his or her code. There is nothing you can do to your computer that will fix this issue.
Reply:I hope nobody is going to flame me for this.





Try updating to MSXML 6.0 from Microsoft Website


http://www.microsoft.com/downloads/detai...





some may say doesn't have anything to do with Ole Obj, but it fixes A LOT of issues with databeses in general and online games in particular.





good luck
Reply:It generally means a bug in the compiler for not being able to handle


certain constructs. However, sometimes, it also means there's a bug


in the code being compiled, that takes the compiler into an execution


path that's actually not supposed to ever happen.
Reply:Its a problem with the forces reunited site. It probably means that there were too many connections / requests and sent the database management system into a spaz.





Nothing to do with your machine.
Reply:It is a database error about user access. You can't do anything about it.
Reply:wefibwiofugbh2o


Language similar to Java...?

I currently take Computer Science in school, so I can do high-school level Java. I have an independent study project in which I have to teach myself another programming language. I am wondering which language is most similar to Java, and also something that is not too complicated (I'm stupid so I can't deal with really complex things). I am planning to get a book on whichever language I choose, from the library.





I heard that C++ is similar to Java, but I'm not sure. By similar, I mean the structures are set up the same way. I don't expect the syntax to be the same. If the biggest thing to re-learn is the syntax, then I think that will make it better for me. I am just looking for something relatively similar to Java.





Thank you for all your answers and help!

Language similar to Java...?
Instead, take up Python. Python is powerful, fun and useful. C++ is everything java without the templates. java is a template language when you boil it all down. C++ is stupid and crazy with its pointer math, which java does not have.





Take up Python. With Python and java you can accomplish about 70-85% of what a computer can do.





C# is proprietary Microsoft and MS wants license fees (you don't own MS products and they can be discontinued at any time without notice). C# is a dead horse.
Reply:c#


plus - if you have java + microsoft language knowledge - ur set for work when graduated.
Reply:I just wanted to respond to the second poster and say that Javascript, despite the name, really isn't similar to Java. And HTML is not a full fledged programming language. I'd take the first poster's advice and learn C#; it's pretty similar to Java.
Reply:The only thing I could think of is Javascript and it is similar to java or you could try html, or visual basics is another good computer language to learn. C+ is different than java too.


Problem creating a simple Query with SQL Server 2005?

I am trying to create a simple database:





but it gives me an error while executing the query.





CREATE DATABASE ApressFinancial ON PRIMARY


( NAME = N'ApressFinancial',


FILENAME = N'C:\Program Files\Microsoft SQL


Server\MSSQL.1\MSSQL\DATA\ApressFinanc... , SIZE = 3072KB ,


MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )


LOG ON


( NAME = N'ApressFinancial_log',


FILENAME = N'C:\Program Files\Microsoft SQL


Server\MSSQL.1\MSSQL\DATA\ApressFinanc... ,


SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)


COLLATE SQL_Latin1_General_CP1_CI_AS


GO

















Msg 5133, Level 16, State 1, Line 1


Directory lookup for the file "C:\Program Files\Microsoft SQL


Server\MSSQL.1\MSSQL\DATA\ApressFinanc... failed with the operating system error 123(The filename, directory name, or volume label syntax is incorrect.).


Msg 1802, Level 16, State 1, Line 1


CREATE DATABASE failed. Some file names listed could not be created. Check related errors.





WHAT SHOULD I DO GUYS?

Problem creating a simple Query with SQL Server 2005?
You need to use a correct file name. The path you have there is not valid, which is exactly what the error message is telling you. you're asking it to create a file named "Apre..." and that's not a valid file name.





Why aren't you using the Management Studio to do this? Knowing the syntax is cool, but this is one thing I almost never do using SQL. I almost always create new databases used the GUI tools.





[Edit]


No, the file name is wrong. That's what the error message is telling you. It's possible that you have an unclosed quotation mark, or a missing comma, but if Yahoo is going to jack up the code, then there's no way to tell. The error message is telling you that the file system can't find the file (Directory lookup failed) and it's giving you additional information from the operating system, which said "The filename, directory name, or volume label syntax is incorrect."





That pretty much means what it says. The file can't be found because the path name is incorrect. This could be a permissions issue, but I doubt it. In that case, usually it gives a message saying something about permissions, but this is telling you it can't find the file. That's pretty clear, I think.





(This is not one of those cases where the error message is saying the wrong thing. It's telling you exactly what happened.)
Reply:CREATE DATABASE [ApressFinancial] ON PRIMARY


( NAME = N'ApressFinancial', FILENAME = N'G:\Temp\ApressFinancial.mdf' , SIZE = 3072KB , FILEGROWTH = 1024KB )


LOG ON


( NAME = N'ApressFinancial_log', FILENAME = N'G:\Temp\ApressFinancial_log.ldf' , SIZE = 2048KB , FILEGROWTH = 10%)


GO
Reply:Use Enterprise Manager to Create the Database.





**** NEW COMMENT IN REPLY ***


Make sure you are using the sa account and password. That account owns every object.


Flickr?????

I have 30 photos on my flickr and it was working eairler now I only can see 2 of the photoes and there is this error message Parse error: syntax error, unexpected T_ELSE in /var/www/html/www.flickr.com/templates_c... on line 40

Flickr?????
I think you're just going to have to re-upload the pictures..

garden centre

COM in PHP?

I am trying to create a COM/dll object in PHP. I have figured out how to create a COM/dll object in Visual Studio 2005 Standard. I am unsure what file I am looking for in the





$object = ('Application.ID');





syntax in PHP, because there are so many files created by Visual Studio C++. Anyone have any idea?

COM in PHP?
http://us2.php.net/manual/en/ref.com.php


PHP help please?

Here's the code:


--------------------------------------...


%26lt;?PHP


$XXX = 500; //value can be input numerous ways


$A = $XXX - (($XXX * 0.034)+0.3);


$B = $A - ($A * 0.1);


$C = $B* 1.1;


$D = $C - (($C* 0.025) + 5);


$E = $D * 7827;


echo number_format($E);


// show your answer in this formate show 688,413





?%26gt;


--------------------------------------...


* originally helped by,


catbertnc and Mohd.SAQIB Q.. Thanks Guys!!





Now further question:


What's the input syntax, so i will have a box,


like a search box, where i can key in various input numbers.


And when i click "calculate" it will echoes E.





What i mean is to have a web page, with an input box and calculate button.


And when pressed will automatically shows the result.





Thank you verryyy much.. :D

PHP help please?
Ok, the easiest way requires two scripts. I'll call the first one form.php and the second calculate.php. The first holds the form the user will use, and the second will perform the calculations.





form.php


---------------


%26lt;?php


echo "%26lt;form action='calculate.php' method=POST%26gt;";


echo "Number: %26lt;input type=text name='xxx'%26gt;%26lt;BR%26gt;";


echo "%26lt;input type=submit value='Calculate'%26gt;";


?%26gt;


-------


calculate.php


--------------


%26lt;?PHP


$XXX = $_POST['xxx'];


$A = $XXX - (($XXX * 0.034)+0.3);


$B = $A - ($A * 0.1);


$C = $B* 1.1;


$D = $C - (($C* 0.025) + 5);


$E = $D * 7827;


echo number_format($E);


// show your answer in this formate show 688,413





?%26gt;





That should do it.
Reply:i dunno, lol
Reply:PHP have no way to input from the user, for that matter any server side script would have to use HTML to display or fetch user data, either by AJAX or form.


Batch file (cmd.exe, too) cannot find file on shared drive?

Network (Novelle Netware) with a shared drive (F: for all users) to which everyone has read and write access to files there. (Don't ask; not my construction and it works here.)





A batch program on one computer (on and executed from its C: drive) successfully copies a file from a folder on the F: drive to two other folders on the F: drive. Syntax is:





copy F:\folder1\folderx\filename F: \folder2\filename


copy F:\folder1\folderx\filename F: \folder3\filename





I edited the working batch file and saved it as another named batch file. Folder and filenames changed; all legal names and all existing on the F: drive in the named places. (Verified here by two pairs of eyes through Windows Explorer and run cmd.exe DOS navigation.)





The second batch file errors out--"Cannot find the specified file." Same result, whether run on and from the original C: drive, the F: drive, or another computer's c: drive.





Any suggestions?

Batch file (cmd.exe, too) cannot find file on shared drive?
do you run the second batch with the same user/credential on system? or it's on a background process?
Reply:try just running the command from a command line





( ie go to c: copy F:\folder1\folderx\filename F: \folder3\filename ) but using the parameters of your new batch file


Basic batch script question?

I'm trying to copy a file from a directory that has spaces on it, do I need to use special syntax with quotes around it?





The below is my attempt at copying the file from A to B and then running regsvr32 on it to patch a broken file on our systems. Can someone help me correct this? It's to copy the file to C:\Windows\system32 and then register it.





@ECHO OFF





copy G:\ISD\Public\ASD\aands\Media Player known problems\msdxm.ocx to C:\Windows\System32\





C:





cd windows\system32





regsvr32 msdxm.ocx

Basic batch script question?
Enquote the path, containing spaces.





copy "G:\ISD\Public\ASD\aands\Media Player known problems\msdxm.ocx" C:\Windows\System32\

flower show

Why do todays youth write like total idiots?

Just read these posts. No correct syntax. No idea about verb tense. I'm not the greatest writer but c'mon? Don't they teach sentence diagrams anymore? What an embarrassment to America. They're our future?! (There are ******?)

Why do todays youth write like total idiots?
Your question can be answered in two words:





TEXT MESSAGING.





While I can see it being handy texting on a 12 key phone, I think it's just plain lazy to write like that on a full pc keyboard. It seems that youth today looks for the easy way out. I have met 15 year olds that could not tell time without a digital clock.





Sad but true :-(
Reply:This is the unfortunate problem that occurs due to chat rooms and cell phone texting. People today have gotten so accustomed to typing in shorthand 'chatspeak' that they cannot be bothered to pay attention to spelling or grammar.





It is indeed an embarrassment, and an irritation to many people. However, many of them who type that way and refuse to even try to clean it up a bit are either kids, or adults who can't type, so they type shorthand to be faster.





Someone answered a similar question earlier with "i no how tspel n use gremmar, but it coolr 2 typ this way" or something similar.





It makes my eyes bleed.
Reply:Sentence diagrams are to be considered an abomination. Perhaps our efforts would suit you better if you didn't just teach, but taught well. Also, I would encourage you to encourage others to read. The majority of this lack of grammar comes from e-mail, text messaging, and chat rooms. These are most likely just a few of many factors that contribute to the problem.
Reply:hyhyhyhy
Reply:"Why Johnny Can't Read or Write" Now for the PC, PS2, XBOX and PSP. (That's why)
Reply:Its just a form of shorthand-nothing to get all excited about!


I believe it all began with trying to use "code" so mom %26amp; dad didn't know what they were typing on the computer!


Its actually kinda (oops!) fun when you try it!


Give them a break! All school year they have to constantly think about grammar %26amp; syntax!


This is YA ,not grammar school!


Man, what do your grocery lists look like? Pulitzer prize winners?
Reply:Personally, I blame the parents and the education system. Parents don't take the time to ensure that their children are doing the homework, getting an education, turning off the television/computer, and getting back to basics. The education system pressures the teachers to pass the students regardless of the grades earned. How often do we hear of high school graduates that can't read or write? How can this happen?





I have a teacher friend who was told, by a parent, that it was the school's responsibility to teach the child morals, ethics and responsibility. That's just wrong.





Let's get back to basics. Parents take responsibility for your children, teachers take responsiblity for education.
Reply:Others and I that are older, only have us to blame.


As the asker mentioned, they are our future as we were the ones before us.


We stopped or failed in reaching and teaching them.


It is not they who invented the PC; PS2; Sega; Nintendo; DVDs; CDs; et al.


It is mainly our generation.


It is us that lost patience and wanted everything NOW and passed that on to them.


Many of us are the recovering alcoholics and addicts that they watched as they grew up. Many of us are the ones that didn’t speak correct English around them or correct them as they learned to talk and communicate.


We didn’t give them that many tools to work with to make things better in the world.


We taught them to be selfish and wasteful.


We wanted them to have the things that we didn’t have when we were growing up so we gave it to them without teaching them to earn.


I could go on and on.


They are evolving and laying the groundwork for the ones that will be THEIR future.


Out of it just might come a new language.
Reply:They'll learn. Just like if you speak slang in a family outing, the moment they show off their resume and have 'Good writing skillz' as one of their bullet points, they'll realize the error in their ways.





Let them be. All we can do is watch them grow out of it.
Reply:Don't you mean: "Why does today's youth write as if it were comprised of total idiots"?





True, education 'aint what it used ter be; but in the wake of more liberal social demcratic thinking, there was an increasing dependence on 'whole of school' style of learning (an open style of classroom education), rather than formalised learning. I think the pendulum is swinging back again, because the 'open' style suited the brighter kids; but left the less bright (or less priviledged) ones struggling. The search for egalitarian education failed those very kids it was aimed at helping. A more balanced approach is probably the way to go.
Reply:Cuz they got drifted with all the technology and they have no time to study and stuff u no!
Reply:Unfortunately, theses individuals are our future. Standards in schools have decreased, and society has found it ok to not push the importance of proper English and sentence structure. Hell, many jobs are hiring people with out resumes. The main reason why there is an epidemic of people who can not write is that people don't read literature, news articles, or any other writing that isn't formulated by another simplistic internet user.
Reply:Generally speaking, they don't teach the same degree of technical "correctness" in writing as they have in the past.





There is a much greater emphasis on appreciation of content rather than form. That combined with the jaded longing for the way it was "back in the day" that creeps up on each generation as they age, and you have "todays youth". Just the same as they said, whats wrong with youth today in the fifties, sixties, seventies etc...





Welcome to the new millenium.
Reply:It mainly has to do with this new technology called IMing and texting. If you type in every word as is, the cellphone / mobile phone company will charge you per text by the minute, so the fewer characters [a-z;A-Z; 0-9] or symbol[!@#$%^%26amp;*()_=, etc...] and spaces typed = less charges and the faster your message will get across. On IMs, if I type too slowly, my friends will go to sleep, so that by the time they finish responding to my message, I'll definitely be asleep also.
Reply:i dont like to write like that, but i think they do it to rebel or they think missing out 1 or 2 letters is going to help type it faster. They seem lazy like that, they need to relax, stop drinking so much coca cola and take things slowly
Reply:no there not you adults just judge too quick
Reply:I don't know. I'm personally at the age group right now that is probably in the age range you're talking about. Several of my friends type like that. I actually have one friend who instant messages me all the time and writes like





"sooooooo wut r u up2 sk8er?"


"shcool 2dai wuz so laim"





It honestly gets so bad sometimes that I just write back....


"Yep...."


Cause I have no idea what she's saying. Today, I actually got a message from her that said "5trgggg"





I just went, "Hm."





And, the comments on Youtube Videos? *shudder*
Reply:As a whole, they're WATCHING and NOT reading (thinking).
Reply:I think the same thing whenever I start answering questions. Sometimes, the grammar is so bad that even though I know the answer to their questions, I refuse to answer them.
Reply:I'm a youth and I hate to bust your bubble, but I am NOT an idiot.


[That is a sentence, it has a verb %26amp; a noun. I have a future, and I am the future :] Person c'mon isn't a word.
Reply:i happen to agree.


i hate the way the youth type.


with all their retarded spellings like


wat r u doin 2day?


that kind of stuff really bugs me.


or when they type LiKe DiS


and actually expect people to understand them.
Reply:only the total idiots talk like that. it is not because they are younger.
Reply:I have a few theories... laziness, conformity, moronism, incompetence
Reply:Hi. I'm 16, and I'd just like to point out a few apparent flaws in your criticisim;


a) Before you criticize the spelling and grammar of "todays youth" (you're missing an apostrophe in youth, by the way), try fixing your own. It's appalling. I'm probably half your age, yet I can safely say I had better writing skills than you when I was 7.


b) Before you begin to criticize today's youth AT ALL, remember that over 70% of the volunteer work that benefits communities all over the world is conducted by youth. That's right, people under 20. And over 90% of all criminal offences are commited by people OVER the age of 20.





Perhaps you should think twice about your own generation of hypocritical, cynical bigots. You are the ones who induced global warming and other environmental problems, and today's youth are stuck with the cumbersome job of correcting the errors of your generation. How can you even begin to criticize something so trivial as our spelling and grammar when your own generation has so many problems?!


Hypocrisy is a flaw in your generation.


It's a good thing that the future is in OUR hands.


How one can Shutdown a remote system through shutdown command of msdos in windowXP?

I can use this command to shutdown my own system but can not perform remote shutdown even i log with admin.I have 10 system on LAN Network and i know IP address of each and every node , I did not Want shutdown system through software.


Here is the Help to


Syntax


Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]





No args Display this message (same as -?)


-i Display GUI interface, must be the first option


-l Log off (cannot be used with -m option)


-s Shutdown the computer


-r Shutdown and restart the computer


-a Abort a system shutdown


-m \\computername Remote computer to shutdown/restart/abort


-t xx Set timeout for shutdown to xx seconds


-c "comment" Shutdown comment (maximum of 127 characters)


-f Forces running applications to close without warning


-d [u] [p]:xx:yy The reason code for the shutdown


u is the user code


p is a planned shutdown code


xx is the major reason code (positive integer less than 256)

How one can Shutdown a remote system through shutdown command of msdos in windowXP?
To get connected to the other machines with an authenticated connection to execute the shutdown, do the following:


1) Open an command prompt ("DOS" Window)


2) Type "net use \\%26lt;ip or hostname%26gt;\ipc$ /user:%26lt;administrator%26gt;" and enter the password for that system, when prompted.


3) Then execute "shutdown -l -s -m \\%26lt;ip or hostname%26gt; -t 1" if you're shutting it down and don't care who's on it...





All of this could be put into a script and run. You could execute the net use statements to connect to all of the computers at one time and then run the shutdown script on each afterwards. Of course, you'll have to pass your password to the script, which isn't a secure way to do it unless you do something like set it as a command line variable... Many possibilities there.





Good luck,


WG
Reply:When you state that you are an admin, do you mean that this is a domain, or that you have an admin account set up on each workstation.





Within a domain, you should be able to execute the command as long as the policy settings allow remote execution.





If a workgoup environment, as well as the machine policy allowing the remote execution, you will also need to authenticate against the machine with your local account details on that machine prior to executing the command.


How to recieve the column number from the column name in microsoft excel by using macros.?

In an excel sheet i have to recieve the column number ranging from 1 to 256 while the input will be A or B or C upto IV. Please provide me a solution by providing me some macro syntax.

How to recieve the column number from the column name in microsoft excel by using macros.?
Why using a macro when you can use a function?


Put this in B2, to read column name in A2


=column( indirect( A2%26amp;"1"))


and whenever you put a column name in A2 (Like HA), B2 will give you the number of that column











If you insist about macro then use this..





Function ColumnNumber(ColumnName)


Range("A2").Value = ColumnName


Range("B2").FormulaR1C1 = "=column(indirect(rc[-1]%26amp;1))"


ColumnNumber = Range("B2").Value


End Function


Which is using the same functions (COLUMN and INDIRECT) but in VBA.





Read my profile, I am XLMan
Reply:I am not sure what you need:





1. If you just need to know what is the serial number of each column, you can go to Options %26gt; General %26gt; R1C1





2. If you want a loop that will span all columns, the syntax is this:


' //


' // Start Code


' //


Sub abdullah()


For Column_Counter = 1 to 256


ActiveSheet.Cells(1, Column_Counter) = "Lalala"


Next Column_Counter


End Sub


' //


' // End Code


' //





3. If you want to convert a letter to a column (D %26gt;%26gt; 4), it can be done - but please elaborate your reason for needing it, because I am pretty sure you are asking for it just due to a lack of VBA know-how, and I am pretty certain it is both unncecessary and unhealthy code writing.


Simple SQL select, where statement?

I'm selecting information from three tables, xx, yy, and zz that all share a common field, "num". Can I do this in one statement? What is the syntax?





Here's my basic structure:


select xx.num, xx.a, yy.b, zz.c from xx, yy, zz, where xx.num=yy.num=zz.num ?





select a, b, c from xx, yy, zz, where xx.num=yy.num, yy.num=zz.num?

Simple SQL select, where statement?
select xx.num, xx.a, yy.b, zz.c


from xx, yy, zz


where xx.num=yy.num and xx.num=zz.num

phone cards

Help creating batch files?

I have tried to create a batch file that will copy my docs to an external hard drive and it doesn't work. Here is what I have.





@echo off


xcopy C:\Documents and Settings\Jay\My Documents E:\My DOcs Backup





I also tried to create a batch so I can delete my cookies and temp files, but that doesn't work either.





del C:\Documents and Settings\Jay\Local Settings\Temp\*.*


del C:\Documents and Settings\Jay\Local Settings\Temporary Internet Files\*.*


del C:\Documents and Settings\Jay\Cookies\*.*





I have looked on numerous websites to see if I had the correct syntax and everything looks good, maybe I missed something. The only thing that happens is when I double click on the .bat icon it just flashs once and nothing happens





Please help

Help creating batch files?
The "problem" here is your path has spaces in them, which means you need to put them "in quotes", like





xcopy "c:\documents and settings\Jay\My Documents" "e:\My docs backup"





DOS commands don't like spaces... they thought it's separate commands, unless you put them in quotes.
Reply:your copy statement is wrong it needs to be like so





xcopy C:\Documents and Settings\Jay\My Documents\* E:\My DOcs Backup /s /i





the s coppies all sub folders and the i defines the destination as a folder











(is My DOcs Backup spelt right also as you may want to check correct spellings of folder)


Which of the statements below is true of int n =5, *p=&n;?

a. p is a pointer initialized to point to n.


b. p is a pointer initialized to the value of 5


c. n and p are both pointer variables


d. the declaration contains a syntax error

Which of the statements below is true of int n =5, *p=%26amp;n;?
Hi !





The right answer is "a. p is a pointer initialized to point to n."


Lets substantiate this statement!





Here I'm presenting you a simple program to reveal the fact !





void main()


{


int n = 5 , *p = %26amp;n;





printf("%d\n" , *p);


printf("%u %u " , %26amp;n , p);


}





Sample results obtained from this program


5





65524 65524


Let the address of 'n' is 65524 and p is a pointer initialized to point to n.





Its clear from the above results thats because p holds the address of n .





Thanks and Regards !


Prince M. Premnath
Reply:I think the answer must be A. The '*' symbol following the variable name is a pointer. when the %26amp; symbol is used before n, this means the address of n. This must be the pointer p is point to n.


In Excel, can you nest SUMIF fomulas?

For example sum in Column C where Column B="x" and Column A%26lt;today()





... and what would the syntax of the finished formula be?

In Excel, can you nest SUMIF fomulas?
You can, but it requires an old feature of Excel that is not very well known.





Enter this into the formula bar, but do not press enter. Instead, hold down Ctrl and Shift, THEN press enter. If you do it right, you should see the formula automatically surrounded by curly braces { }. If you do it wrong, it will likely give a VALUE error result.





=SUM(IF(A:A%26lt;TODAY(), IF(B:B="x", C:C, 0), 0))





What this does, is it replaces each column entry (A:A, B:B, C:C) with the cells in a row (A1, B1, C1), then evaluates the formula with every row. It's somewhat complex, but if you learn how to make them work you can do a lot.





Check out the link below for a short little tutorial.
Reply:You have two options when you want to sum based on more than one condition


1- Is adding new column with the IF function and your conditions all together wiht AND or OR functions, then SUM that column.





Add this function in column E


=IF( AND( B1="x", A1 %26lt; TODAY()), C1, 0)


then fill it down to the end of the table


Then do a regular SUM to column E





2- Use SUM and IF functions together and enter as array (CTRL + SHIFT + ENTER).





Enjoy my profile, I am the VBAXLMan
Reply:Use the sumproduct formula, it' not technically used for this but we are 'tricking' Excel into doing sumif's with more than 1 criteria:





= sumproduct((B2:B1000="x") *(A2:A1000%26lt;today()) *(C2:C1000))





A few pointers about this:


If you have a column header, do not include it in the formula. Notice that I began in row 2.


Each range must have the same number of rows.


Don't use the entire column. The formula creates an array in memory and that will slow down calculations.


You can have as many criteria as you like but one of them has to be the range you are summing. (I always put that one last)


Winzip help! :)?

Hello, I need some help with the winzip! When I try to open some files stored in the winzip (mp3 files, the file names are all written in greek) a message pops up and says: "Error: The file name, directory name, or volume syntax label is incorrect" and also "Error: unable to create output file C:\...."





What's the problem here? My first thought was that the files cannot open because they are non written in english (but in greek), but i'm not sure... and if this is the problem, can I rename the files while they are still zipped??





P.s: I can't do any other action, even extract... :((





Plz help me! THX

Winzip help! :)?
I haven't heard of Greek file names causing a problem, but you could try renaming the files within the zip file.


From what you're saying the zip file may be corrupt, which is bad news as you probably won't be able to get the files back.
Reply:Winzip is primitive, download WinRAR and try again.

orange

Why do I get compiler errors when I type: "vlt = sin*(2*pi*freq * time);"?

I am programming using C++, using Microsoft Visual Studio 2005.


here are the errors:


j:\hw2\hw2a-ssabdelm.cpp(23) : error C2143: syntax error : missing ')' before ';'


j:\hw2\hw2a-ssabdelm.cpp(23) : error C2563: mismatch in formal parameter list


j:\hw2\hw2a-ssabdelm.cpp(23) : error C2100: illegal indirection


j:\hw2\hw2a-ssabdelm.cpp(23) : error C2059: syntax error : ')'


j:\hw2\hw2a-ssabdelm.cpp(23) : warning C4552: '*' : operator has no effect; expected operator with side-effect


Build log was saved at "file://c:\Documents and Settings\Sam %26amp; Jacqueline\My Documents\Visual Studio 2005\Projects\hw2-ssabdelm\hw2-ssabdelm\...


hw2-ssabdelm - 4 error(s), 1 warning(s)


========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Why do I get compiler errors when I type: "vlt = sin*(2*pi*freq * time);"?
Take out the *





vlt = sin(2*pi*freq*time);





And remove the semicolon from your #define for pi (which should be upper case anyway):





#define PI 3.14
Reply:sin is a math function which has the following prototype:





double sin(double x);





so as an obvious syntax error its easy to see you are incorrectly adding in a '*' between sin and its parameter.





The line should have the '*' after the sin function removed in order for the parameter to be properly accepted.





vlt = sin(2*pi*freq*time);





Hope that helps.





--------------------------------------...





You still have a problem now that you've paste the code with your preprocessor define





eg: #define pi 3.14;


used with : vlt = sin*(2*pi*freq * time);


becomes : vlt = sin*(2*3.14;*freq * time);





The semi-colon will cause a syntax error, therefore the define should not have it in there eg





#define pi 3.14





is all you need.
Reply:I think you need to write sin(x), not sin*(x).
Reply:syntax error: there should be no * between sin and bracket. I t should be vlt = sin(2*pi*freq * time);
Reply:Take out the ; from in front fo the " and put it behind it.
Reply:Well I assume you are intending to use the Sine function...





your line should read vlt = sin(2*pi*freq*time);





- you have a star (*) between sin and the opening parenthesis which I believe is causing at least some of your problems..





You may also want to make sure the other terms in your expression are correctly defined and watch out for the 2.. it will be interpreted as an integer which may cause the other terms to be truncated to integers I.E. It becomes sin( 2 * 3 * freq * time ) which I'm fairly sure is not what you want.








Hope this helps.


Which programming language should I learn next?

First I learned Macromedia (Now Adobe) Flash Actionscript, and I consider myself advanced at it. Then I learned HTML, and Javascript which I'm about as good with since it has like the same functions and syntax as Actionscript. Now I want to learn an application language (like C++, .NET, Java, etc.) but I don't know which one I should. Any suggestions as to which would be the most useful, or which would serve as the best foundation to learn other programming languages, etc.? Thanks for any response.

Which programming language should I learn next?
I have to say go with Kevin's answer, have you looked at the web sites he has built, if not go now and peruse the work of one damn nice builder. Nice work Kevin stylish and efficient. Put me to shame mate.
Reply:NET
Reply:This is based on your needs and your interest.If you want to do system programming then go for c,c++. If you want to make other application then you can go for Java %26amp; .NET. Both have their own pros. %26amp; cons. You will easily find it from websites. But I prefer .NET technologies. Because it provides rapid development and also some what easier to learn.





If you want make best foundation to learn languages once you should refer C language,
Reply:VB.NET and C# are useful, but only on Windows platforms. I love C# because its very similar to java. VB.NET and C# are great for ASP.NET web sites, but must be hosted on proprietary MS IIS. There are a few embedded Windows devices out there that utilizes a compact .NET framework.





Learn C++ on Unix based system or install cygwin on Windows. If you're good with C or C++ and are familiar with Unix Shell scripting and X windows GUI forms programming you won't run out of projects to work on. Also learn SQL! Its important. You know the different flavors, MySQL, PostGreSQL, FireBird SQL, but don't overlook SQLite, it is powerful, embeddable/compact and is used everywhere (even used in OS X tiger). There are many embedded Linux devices out there that do nifty things with a bit of C++ code and SQL script. Also, the Mac OS X Mach kernel is based on the BSD kernel so there is another path there too, but most MAC apps are coded in Cocoa (objective C).





Java is great too and is multiplatform because is runs on a Virtual Machine. I used it for bluetooth programming.





Another nice interpretive language is Python.
Reply:Personally I would suggest you learn CSS first even though it is not a programming language. I would also be sure I was proficient in JavaScript well enough to be comfortable writing DOM scripting. I would then say to learn PHP so you are not limiting yourself to doing websites only on Microsoft IIS web servers.





The .NET framework is one of the best in the world but it is very Microsoft. The average small business cannot afford to have their own Microsoft servers or IT staff to support them. Especially if they plan on owning their own servers they have to figure in that a single processor license for Microsoft SQL server is about 25,000 dollars alone (MySQL is free).





Another thing to keep in mind is that web sites are not all about looks and graphics they are about quality of code so your pages should all comply with the international standards as published by the W3C for (x)HTML and CSS if not for accessibility as well.





There are not many pages out there created with flash that are compliant with the standards. The search engines cannot read the images as text so therfore if you have a web site of all images to a search engine it is like a website that has no content.





You may also consider learning to be more proficient with other tools such as Adobe Photoshop as well.
Reply:C++ then java, or maybe java then c++ because you already know javascript. I believe c++ is a simpler language to learn (easier syntax) but java and c++ have semi similar applications. Most people learn C++ before java.
Reply:You should learn ,NET I have taught myself throught the years and I Love it very much


Executing keystrokes using TC?

hi...





basically i am more in to electronics stuff.. but for i need to use Turbo C for a project of mine... a part of my project includes executing key strokes using c...





suppose i want to press the key F1....





i wan t to wirte a program in which i will copy the scan codes of the particular key ( F1 here, down stroke = 3B, up stroke = BB in hex values)


to the keyboard port .. which i am not sure coz i have confusion between 60 and 64h..... using outport command....


i have kept F1 as a global hotkey to change the track in winamp.. so if it gets executed the track should change.. but unfortunately its not working.. maybe the syntax is wrong...or the logic??....





will this logic serve my purpose ??..... i am not sure of syntax too... can anyone pls help me with this...








thanks in advance.....

Executing keystrokes using TC?
Ok, I'm going to make the assumption here that you have a Windows OS of some kind running. Good news is that it isn't your program, bad news is that you CANNOT intercept a keystroke that way and send it to another Windows application (the aforementioned Winamp, for example) because all Win32 applications get their messages from Windows ques. You have to write a Win32 compatible program in order to access these ques to message Winamp. Better to try and trap some character value directly in your program, assuming it is a regular old DOS console that you're doing. As far as I know, Turbo C versions less than 3.X don't support any flavor of Windows directly. The URL below has a good tutorial on Win32 stuff, so if your compiler can do it, you can too.


Why do people think of Visual Basic as a uber-easy language?

Personally, I've done C, C++, VB, C#, Ruby. Professionally, when it comes to .NET, I love working in VB instead of C# because I love the aesthetics of VB more. With those statements out of the way, I hope that helps to understand a bit more where I'm going to be coming from and hope to eliminate some snooty answers. I see a lot of answers here every day stating how "Visual Basic is a language for noobs" when this hasn't been the case for a few years (even going back to VB6) due it's syntax, the fact that it's a fully object oriented language, the fact it runs on the CLR (and soon DLR), and have more constructs in common with Java and C#. Do people who generally make these "noob; popular among Windows developers" comments have ever used or looked at Visual Basic in their life? Maybe if Microsoft changes the name of the language, some of the ignorance regarding VB will go away. This really isn't your father's GW-BASIC (or QBASIC even).





Probably just MS disdainment...

Why do people think of Visual Basic as a uber-easy language?
Heyy,actually people are made to learn that until we dig our hands in those POINTER %26amp; direct access to physical memory, no programming language have features and powers in it.I'm fond of VB and its .NET managed classes.I don't care about people who can live in fantasies to program thousands in c %26amp; c#.Microsoft's own favorite language is VB itself.But as we know Microsoft have some sort image for being a COPY CAT in market,its impact is also on the VB.People think VB is also as simple as Microsoft tried to make their OS's.Anyways...VB is best till Windows exists.
Reply:There were many commercial programs written in S-Basic or compiled BASIC long before IBM thought of making a personal computer.





People who think a language is good or bad based on how simple it is don't know anything about programming. (Php is simple - but it's one of the best html-construction languages out there.) I would take "it's only for ..." comments with more than one grain of salt. (I supported a huge commercial database front end for years that was written in VB6, and I still write db front ends in VB6.)

flash cards

Java question?

what are the two distinct syntax errors (each occuring multiple times)








import java.util.Scanner;


public class MaxMinRatio {


public static void main( String [] args ) {


Scanner in = new Scanner(System.in);


a = in.nextInt();


b = in.nextInt();


c = in.nextInt();


int min;


int max;


max = min = a;


if b %26gt; max { max = b; }


if c %26gt; max { max = c; }


if min %26gt; b || min %26gt; c {


min = b;


} else min = c;


System.out.println("ratio = " + max / min);


}


}

Java question?
Hi u must always use paranthesis for when keeping a condition.So put paranthesis to all your if conditions.





if(b%26gt;max)


if(c%26gt;max)


if(min%26gt;b||min%26gt;c)








Secondly i dont see declaring a,b,c in your main method which you have used.So declare them as ints.
Reply:Well done, way to sell of your dignity and do someone else's homework for them. Report It

Reply:you have to enclose each condition in parentheses. for example:


b %26gt; max should be (b %26gt; max) or min %26gt; b || min %26gt; c should be


(min %26gt; b || main %26gt; c)...
Reply:Why don't you compile it and see? They're pretty obvious.


Where on earth is it?????????????????????

where is this data stored????????


--------------------------------------...





In Turbo C there is a graphics.h file when we open the help section in turbo c. In this file there is a list and a well written description of all the graphics functions such as rectangle(), drawpoly(), line(), etc.





Anyone plz tell me that where does all this description is stored. I mean from where the help manual access all this data. like when we open Help in Turbo c by pressing Shift+F1 keys then an index is displayed and we can click on any link of the particular topic we want to know about. suppose I click on the link putpixel() then a whole lot of description is displayed about putpixel() including its definition, syntax, examples, etc.





from where does the Help file access this data?????





Where is it stored ???





i searched my Turbo C folder in c drive but i could not find any file where all these definitions etc are stored......


Then where on earth the data is??????????








Thanks..........

Where on earth is it?????????????????????
It's in TCHELP.TCH





It should reside in the first level folder of the turbo C directory.





On my PC, it's like so:





C:\TC\TCHELP.TCH





But most of the file is not in text. It appears to be compressed (or coded perhaps) in a way that only TC.EXE knows how to extract and interpret.





Sample: [ O%26amp;Oß$ßfõyñº.ñ³ìÏ.üÐ ]

flower girl

HELP programming a python problem?

The problem is to write afunction body where unit is a temperature unit, either 'F' or 'C', and T is a temperature value (of type float) in that unit. The function should return the temperature (of type float) in the other unit.





This is the code I wrote so far, but I'm facing some syntax problems.





def temp(T, %26lt;unit%26gt;):





if


%26lt;unit%26gt; == ['F']


T_F=(5.0/9.0)*float(T)-32.0


T=T_F


return T_F,'C'





else


%26lt;unit%26gt; == ['C']


T_C= (9.0/5.0)*float(T)+32.0


T=T_C


return T_C,'F'














what is wrong with my code?

HELP programming a python problem?
no clue... sorry
Reply:Well if you have a decent compiler (not sure what language you are using, whatever it is, havnt really seen it much) then it would really help if we could see what error it is returning to you. Sorry if this wasnt much help
Reply:first, you have to indent. Indent everything that's in a function under the function declarations:


Next, everything in an if or else statement also has to be tabbed:





Now, you have some syntax errors. First, after saying 'if' or


'else', you need a colon.


Also, when you are doing math, it sometimes helps to put spaces between the different statements.


When you are setting a value equal to something, use '='; '==' is used for comparing to values.


The working code should be this:





def temp(T, %26lt;unit%26gt;):





if:


%26lt;unit%26gt; = ['F']


T_F = (5.0 / 9.0) * float(T) - 32.0


T = T_F


return T_F,'C'





else:


%26lt;unit%26gt; = ['C']


T_C = (9.0 / 5.0) * float(T) + 32.0


T = T_C


return T_C,'F'





That should work. If not, e-mail me the code and the error statement, and I'll see what I can do.


P.S.--Remember to include the indentions--they don't show up for some reason.


String.h error?

when compiled it just gives the following error


line 7: from main.c





when string.h at line 7 is commented out


line 14:syntax error before " void"





the source code is like:


#include %26lt;reg9s12c.h%26gt;


//#include %26lt;introl.h%26gt;


#include %26lt;hc812a4.h%26gt;


#include %26lt;dbug12.h%26gt;


#include %26lt;string.h%26gt;

















//Global Variables


#define highLow 75 //seize of data arrays








void Keypadlnit(); // initialize the keypad


//__mod2__void KeyWakeuplSR(); // ISR for each keypad depression (KWI)


void __attribute__((interrupt)) KeyWakeuplSR(void);





etc.,------------


----------

String.h error?
There is too much missing to answer. You say "when string.h at line 7 is commented out" but that line is line 5.





The error says the void at line 14 but there are three voids. Which is at line 14. Please provide the raw code. There is probably something there that is causing the problem.





Note also tell me what target you are using - that attribute may require arguments depending on what target - e.g. ARM may require "IRQ" or something separate.





Note also - I have always placed the attribute after the function declaration e.g.





void KeyWakeUpISR(void) __attribute__((interrupt));





In any event I need to see more.


String.h error?

when compiled it just gives the following error


line 7: from main.c





when string.h at line 7 is commented out


line 14:syntax error before " void"





the source code is like:


#include %26lt;reg9s12c.h%26gt;


//#include %26lt;introl.h%26gt;


#include %26lt;hc812a4.h%26gt;


#include %26lt;dbug12.h%26gt;


//#include %26lt;key.h%26gt;


#include %26lt;string.h%26gt;

















//Global Variables


#define highLow 75 //seize of data arrays








void Keypadlnit(); // initialize the keypad


//__mod2__void KeyWakeuplSR(); // ISR for each keypad depression (KWI)


void __attribute__((interrupt)) KeyWakeuplSR(void);





etc.,------------


----------

String.h error?
try:





#include %26lt;string%26gt;


How to convert upper or smaller case leters and strings in vb?

if thers isupper() islower() or strupper() and strlower in C/C++, how can u do that in visual basic 6.0? i need syntax or even better, examples, thanks!

How to convert upper or smaller case leters and strings in vb?
To convert a string in Uppercase use upper(string) function.


ex.


print upper("Vipin")





output: VIPIN





To convert a string in Lowercase use lower(string) function.


ex.


print lower("ViPiN")





output: vipin





To reverse a string use strreverse(string) function


ex


print strreverse("vipin")





output: nipiv

curse of the golden flower

Batch File Help!!?

I made a batch file to copy a file from one place to another but it keeps saying that the file does not exist!


But, if I go to the file through CMD and type "dir" I see it. I'm thinking that my syntax is wrong. This is my Batch File:


::This file was created to move the .class files


::from their original folders to the jdk folder


::for testing.





@echo off





IF EXIST %1 GOTO :success


IF NOT EXIST %1 GOTO :fail





:file_transfer


copy %1 C:\Program Files\Java\jdk1.6.0\bin\newjava.class


GOTO :end





:success


echo File found...beginning transfer


GOTO :file_transfer





:fail


echo File not found!


GOTO :final








:end


echo File Transfer completed.





:final


REM This is just the end of the file.





Okay os that didn't work so I tried going into CMD and typing:


copy C:\Program Files\Java\jdk1.6.0\bin\workspace\HelloW... C:\Program Files\Java\jdk1.6.0\bin





So that isn't working etheir. HELP!!





oh and I also wanted to know how to take input in a batch file and store it as a variable.

Batch File Help!!?
I think you have to put qoutes around the the statement if it has spaces in the name.





I.E. "copy c:\program files\java...."
Reply:Your peroblem is this line:


copy %1 C:\Program Files\Java\jdk1.6.0\bin\newjav...





The delimiter in the CSI (command string interpreter) is a space not enclosed in quotes, so you're copying the file to C:\Program, which probably doesn't exist. (If %1 is in the same form - a path with a space - you'll have the same problem at the first space.)





Gotos are just fine in batch files - you don't have much choice if what you're doing isn't linear (if it has to make choices).
Reply:You've just shown the world why GOTO's are horrid and a very bad practice. Granted, this is a very simple script, but why don't you try Perl? It's free and far more powerful.





In any case, if you needed to store a variable, which shouldn't be necessary in this case, just use the SET command to store it as a local environment variable. I would make sure that a) you delete it when you're done and b) you don't overwrite an existing environment variable.
Reply:you have to put quotes around the statement


The different programming languages?

whats the difference between the basic, c#, c++ and j# programming languages? i know that they all have a different syntax and some are easier to learn than others, but what else is different, why is one more useful at times than others?

The different programming languages?
It looks like you are considering .NET languages here.





In particular though, C and C++ ( which are not .NET) allow you some fine grain control that can let you do things like: allocate memory only when you need it, interface with drivers and interface with kernel libraries. Furthermore there tends to be some accuracy advantages when performing high precision calculations. If I remember correctly, the .NET languages are all techinically scripted languages where .NET is a magical system that compiles it to the same sort of 'intermediary' bytecode that the .NET framework can harness. The only advantage is the syntax. Since he overall system is turned into the same intermediary 'bytecode', all the .NET languages and their components can work together.





My recommendation to you is to go for the C++,C# or J# because the syntax has more breadth. VB is not similar to most other programming syntaxes nor is its object orientation.





Oh, and nobody uses J#. Seriously. It died a miserable death trying to compete with Java before it was ressurected entered .NET . It will probably die again. Programmers do not appreciate it when a company takes a language and redefines it to create vendor lock in and their own little idiosyncarcies that you must train to handle.
Reply:Most of this answer is wrong. Microsoft publishes Visual C++. You can write device drivers and "kernel interfaces" (whatever that means) with the .NET languages. . Report It

Reply:NET is not "scripted languages," it's a framework. There's nothing wrong with Visual Basic, it's just different. J# is still fully supported by Microsoft. Report It

Reply:No easy way to answer this. I'll go with this:





1. Microsoft's J# .NET is useless because of the simple fact no one uses it. It was Microsofts attempt to have a language for it's Java platform which has all but went away due to legal reasons. I'm sure there are J# advocates out there but I have yet to meet one.


2. C# is also a part of the .NET Framework and it's the one language mostly used when creating .NET apps. The best thing about C#, in my opinion, is the fact it un-complicates some of C++ pitfalls (i.e, C# has no pointers, no multiple inheritance, and has a meaningful difference between classes and structs-- reference and value types respectively). I can go on and on, but that's my main love for it.


3. C++ is old and reliable...depending on the point of view. There is a lot of room to program "into" this language instead of programming it, and that's the big one here. Available for many different platforms (/me loves) and is supported strongly by a myriad of open source projects (/me also love). My love for this is only surpassed by C#.
Reply:j#? never heard of that before- java sharp?. basically they are all high level languages that are implemented in an object oriented style. All the languages above could be used to design modren systems, the difference between them is the way in which they invoke hardware and how efficient they are at doing this. Most older programmers use some form of OO C ieC# or C++ , but mainly because for them it is a natural step from C. In my opinion java is as powerful as these 2, but is not so widely used. Basic is not a language used often in industry, due to it not being as powerful as C++ or java.Another consideration needed to choose a language to use would also be the platform you are developing for ie Linux , Windows. and their hardware and Interface consraints.
Reply:If you're referring to the Visual Studio .NET languages, the only practical difference between them is the syntax of the language -- that is, how you write the language.





They all use the Common Language Runtime, so they have the same overhead in compiling / execution; they all use the same Framework, so they have the same assemblies, namespaces, etc. available to each.





Which you choose would mostly have to do with which you favor writing. There's no practical difference other than that.


I get the following message when I try to install itunes 7.0:?

After I download itunes 7.0.2, I press run and the following appears:





":Windows ® Installer. V 3.01.4000.1823





msiexec /Option %26lt;Required Parameter%26gt; [Optional Parameter]





Install Options


%26lt;/package | /i%26gt; %26lt;Product.msi%26gt;


Installs or configures a product


/a %26lt;Product.msi%26gt;


Administrative install - Installs a product on the network


/j%26lt;u|m%26gt; %26lt;Product.msi%26gt; [/t %26lt;Transform List%26gt;] [/g %26lt;Language ID%26gt;]


Advertises a product - m to all users, u to current user


%26lt;/uninstall | /x%26gt; %26lt;Product.msi | ProductCode%26gt;


Uninstalls the product


Display Options


/quiet


Quiet mode, no user interaction


/passive


Unattended mode - progress bar only


/q[n|b|r|f]


Sets user interface level


n - No UI


b - Basic UI


r - Reduced UI


f - Full UI (default)


/help


Help information


Restart Options


/norestart


Do not restart after the installation is complete


/promptrestart


Prompts the user for restart if necessary


/forcerestart


Always restart the computer after installation


Logging Options


/l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] %26lt;LogFile%26gt;


i - Status messages


w - Nonfatal warnings


e - All error messages


a - Start up of actions


r - Action-specific records


u - User requests


c - Initial UI parameters


m - Out-of-memory or fatal exit information


o - Out-of-disk-space messages


p - Terminal properties


v - Verbose output


x - Extra debugging information


+ - Append to existing log file


! - Flush each line to the log


* - Log all information, except for v and x options


/log %26lt;LogFile%26gt;


Equivalent of /l* %26lt;LogFile%26gt;


Update Options


/update %26lt;Update1.msp%26gt;[;Update2.msp]


Applies update(s)


/uninstall %26lt;PatchCodeGuid%26gt;[;Update2.msp] /package %26lt;Product.msi | ProductCode%26gt;


Remove update(s) for a product


Repair Options


/f[p|e|c|m|s|o|d|a|u|v] %26lt;Product.msi | ProductCode%26gt;


Repairs a product


p - only if file is missing


o - if file is missing or an older version is installed (default)


e - if file is missing or an equal or older version is installed


d - if file is missing or a different version is installed


c - if file is missing or checksum does not match the calculated value


a - forces all files to be reinstalled


u - all required user-specific registry entries (default)


m - all required computer-specific registry entries (default)


s - all existing shortcuts (default)


v - runs from source and recaches local package


Setting Public Properties


[PROPERTY=PropertyValue]





Consult the Windows ® Installer SDK for additional documentation on the


command line syntax.





Copyright © Microsoft Corporation. All rights reserved.


Portions of this software are based in part on the work of the Independent JPEG Group."





IT SAYS TO CONSULT THE WINDOWS INSTALLER SDK FOR ADDITIONAL DOCUMENTATION ON THE COMMAND LINE SYNTAX.





I ALREADY UPGRADE THE WINDOWS INSTALLER AND I STILL CANNOT INSTALL ITUNES 7.





PLEASE HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I get the following message when I try to install itunes 7.0:?
setup again itunes


y u tries itunes its very suck
Reply:Redownload it at http://www.apple.com/itunes/download/ and try again.





If it still says that something is probably wrong with the Windows installer itself.


Darkerroleplay isnt working for me!?

it keeps saying





"SQL ERROR [ mysql4 ]





You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND t.template_id = s.template_id AND c.theme_id = s.theme_id AND i.imag' at line 4 [1064]





An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists."





:(

Darkerroleplay isnt working for me!?
I know , love. It's happening to everyone...I'm sure they're working on a solution right now.

apricot

SQL ERROR [ mysql4 ]?

i've been trying to log into this one site called darkerroleplay @ darkerroleplay.com





and it wont let me in ! it keeps saying


"SQL ERROR [ mysql4 ]





You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND t.template_id = s.template_id AND c.theme_id = s.theme_id AND i.imag' at line 4 [1064]





An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists."

SQL ERROR [ mysql4 ]?
The site is broken. There's nothing you can do until the administrator repairs it.


JAVA Making a CHAR equal a Number for an exercise creating GRADEBOOK. 2nd Post with CODE?

Possibly have MANY errors, but for now I'm concerned with the IF statement:


import javax.swing.*;


import java.lang.String;


import java.io.*; // This imports the File class


public class Lab10


{


public static void main (String args[])throws Exception


{


String StudentCountStr, SnameStr,Snumr,courseStr,lgradeStr,Grade...


Double nGrade;


FileWriter fw = new FileWriter("GradesTable.txt");


BufferedWriter bw = new BufferedWriter(fw);


PrintWriter pw = new PrintWriter(bw);


customerCountStr = JOptionPane.showInputDialog(null, "How many Customers to enter?");


StudentCountStr = JOptionPane.showInputDialog(null, "How many Student Grades to enter?");


/* Here the instructor will enter the number of students that must be entered.


Below, the string will be parsed to a numeric value for calculations */


SnameStr = JOptionPane.showInputDialog(null, "Enter Student Name");


Snumr = JOptionPane.showInputDialog(null, "Enter Student Number");


courseStr = JOptionPane.showInputDialog(null, "Enter Course Name %26amp; Section:");


lgradeStr = JOptionPane.showInputDialog(null, "Enter Letter grade: (no + or -");





// Grades are assigned as follows: A=4,B=3,C=2,D=1,F=0


Double GradeCount = Double.valueOf(GradeCountStr);





/* The syntax for the FOR loop is:


for(%26lt;initialization%26gt;; %26lt;condition%26gt;; %26lt;update%26gt;)


{ %26lt;executable statements%26gt; } */


for(int loopCount = 1; loopCount %26lt;= GradeCount; ++loopCount)





/* Here loopCount is initiated to 1 so as to never have a ZERO at the beginning. Then it is compared to


GradeCount. If loopCount is less than or equal to GradeCount, the program will go on %26amp; 1 will be added


to the value of loopcount. When loopCount is GREATER than GradeCount, the program will ask if there's


another student, if not it'll end.*/


{


if(lgradeStr.equals('A')) {nGrade = 4;}


else if (lgradeStr.equals(‘B’)) { nGrade = 3; }


else if (lgradeStr.equals(‘C’)) { nGrade = 2; }


else if (lgradeStr.equals(‘D’)) { nGrade = 1; }


else {ngrade = 0;}}


pw.println(" " + lgrade + " " + Gradepoints);


{


}


{


pw.println("Bucks County Community College Grade Report For");//this places the heading


pw.println(SnameStr);


pw.println(Snumr);


pw.println(" ");


pw.println(" ");


pw.println(" Course " + " Grade "+"Gradepoints");//This places the SubHeadings


}


pw.close();


}


}

JAVA Making a CHAR equal a Number for an exercise creating GRADEBOOK. 2nd Post with CODE?
This is quite simple, just use an if statement.





something like this:








char a = in.nextChar();


char b = 'b'


int i = (anything);


if(a == b)


{


i = 1;


}





and so on
Reply:I'm not to fmiliar with Java, but it sounds like you need to compare 2 strings (declare nGrade as a variable) to display 4 for A, 3 for B.... but that won't get you the GPA becaus eyou won't be able to ADD. Sorry


Jave Help...pleaaaaaase?

I'm studying for a test, and am looking for two syntax and one runtime errors in this little program:





import java.util.Scanner;


public class MaxMinRatio {


public static void main( String [] args ) {


Scanner in = new Scanner(System.in);


a = in.nextInt();


b = in.nextInt();


c = in.nextInt();


int min;


int max;


max = min = a;


if b %26gt; max { max = b; }


if c %26gt; max { max = c; }


if min %26gt; b || min %26gt; c {


min = b;


} else min = c;


System.out.println("ratio = " + max / min);


}


}





I have another, smaller program to compare it with and I have found one syntax but I've been looking at it for awhile and can't see anymore....any help would be great.

Jave Help...pleaaaaaase?
Here are two errors





Always conditions should be in brackets.Pls keep all your if condition in paranthesis





if(b%26gt;max)


if(c%26gt;max)


if(min%26gt;b||min%26gt;c)





Secondly a,b,c are not delcared





So after in main fucntion delare a,b,c as int








Run time error because your not closing the file at the end of program
Reply:I see three syntax errors: the expression for IF must be in parentheses.





The runtime error is going to be: Can not convert "int" to "string"





Note that you are going to get an integer result from "max / min" - and also that you did not check for possible divide by zero errors. So, if max is 3 and min is 2, your result is going to be 1, not 1.5.





I think there is also a logic error there... the min isn't set correctly. You start by setting it to the value of "a" - then if a is greater than either b or c, you set the min to be "b", but if it's less than both of those, you set the min to "c"? What happens if they are equal? How can "c" ever be the min?
Reply:always place a bracket "(" at the "if" statement. I dont see any other problems. Why not run the program and tell us the errors you get?


Trig integrals?

int. (6sin^6x)(cos^3x)dx





i worked it out and got 6[(sin^7x/7)-(sin^9x/9)] + C


webassign is telling me its wrong then there's a syntax error...help?

Trig integrals?
okay well sometimes calculators are weird. maybe you typed it in wrong. like try double parentheses.





did you do a , x?





i put it in my calculator and got:





-(cos(9x)+3cos(3x))/3





but that could be totally wrong.





good luck!
Reply:I don't think its powers you want. It works if they are coeefficients of x





sin6x = 2sin3xcos3x





Thus we have





int 12sin(3x)cos^2(3x)





If u = cos(3x) then du = -3sin3x dx





=%26gt; int -4u^2 du





= -4u^3/3





y = -4cos^3(3x)/3

song words

Programming Language Qs?

1.why was the slowness of interpretation of programs acceptable in the early 1950s?


2.Why were linguists interested in artificial intelligence in the late 1950s?


3.What language was used to describe the syntax of ALGOL 60?


4.What are two characteristics of C that make it less safe than Pascal?


5.What was the first application for Java?


6.What are the arguments for and against a typeless language?


7.describe, in your own words, the concept of orthogonality in programming language design.





please help me i should send answer to my doctor on monday

Programming Language Qs?
Did you see that "in your own words" part?
Reply:type your question in google...
Reply:What's with all the lazy students on here??


Less-Known Computer Languages?

Basic-Fortran-Cobol... These


programming languages are well


known and (more or less) well


loved throughout the computer


industry.





There are numerous other


languages however that are less


well known yet still have ardent


devotees. In fact these little


-known languages generally


have the most fanatic admirers.





For those who wish to know more


about these obscure languages -


and why they are obscure - I


present the following catalog.





SIMPLE ... SIMPLE is an acronym


for Sheer Idiot's Mono Purpose


Programming Lingusitic


Environment.





This language developed at the


Hanover College for Technological


Misfits was designed to make it


impossible to write code with


errors in it. The statements are


therefore confined to BEGIN-END-


and STOP. No matter how you


arrange the statements you can't


make a syntax error.





Programs written in SIMPLE do


nothing useful.Thus they achieve


the results of programs written


in other languages without the


tedious frustrating process of


testing and debugging.





SLOBOL ... SLOBOL is best known


for the speed or lack of it of


its compiler. Although many


compilers allow you to take a


coffee break while they compile


SLOBOL compilers allow you to take


a trip to Bolivia to pick up the


coffee. Forty-three programmers


are known to have died of boredom


sitting at their terminals while


waiting for a SLOBOL program to


compile.


Weary SLOBOL programmers often turn


to a related (but infinitely


faster) language...COCAINE.





VALGOL ... (With special thanks to


Dan and Betsy "Moon Unit" Pfau)


- From its modest beginnings in


southern California's San


Fernando Valley VALGOL is enjoying


a dramatic surge of popularity


across the industry.





VALGOL commands include REALLY-


LIKE - WELL and YAKNOW. Variables


are assigned with the =LIKE and


=TOTALLY operators.Other operators


include the "CALIFORNIA BOOLEANS"


FERSURE and NOWAY. Repetitions of


code are handled in FOR-SURE loops.


Here is a sample VALGOL program





. 14 LIKE-YAKNOW (I MEAN) START


. %% IF


. PI A =LIKE BITCHEN AND


. 01 B =LIKE TUBULAR AND


. 9 C =LIKE GRODY**MAX


. 4K (FERSURE)**2


. 18 THEN


. 4I FOR I=LIKE 1 TO OH MAYBE 100


. 86 DO WAH + (DITTY**2)


. 9 BARF(I) =TOTALLY GROSS(OUT)


. -17 SURE


. 1F LIKE BAG THIS PROGRAM


. ? REALLY


. $$ LIKE TOTALLY (Y*KNOW)





VALGOL is characterized by its


unfriendly error messages. For


example when the user makes a


syntax error the interpreter


displays the message GAG ME WITH


A SPOON!








LAIDBACK ... Historically VALGOL is


a derivative of LAIDBACK which


was developed at the (now defunct)


Marin County Center for T'ai Chi


Mellowness and Computer


Programming as an analternative to the


more intense atmosphere in nearby


silicon valley. The center was


ideal for programmers who liked to


soak in hot tubs while they


worked. Unfortunately few


programmers could survive there


for long since the center outlawed


pizza and RC Cola in favor of bean


curd and Perrier.





Many mourn the demise of LAIDBACK


because its reputation as a


gentle and nonthreatening language.


For example LAIDBACK responded to


syntax errors with the message


SORRY MAN I CAN'T DEAL WITH THAT.





SARTRE ... Named after the late


existential philosopher.SARTRE is


an extremely unstructured


language. Statements in SARTRE have


no purpose they are just there.


Thus SARTRE programs are left to


define their own functions.


SARTRE programmers tend to be


boring and depressed and are no


fun at parties.





FIFTH ... FIFTH is a precision


mathematical language in which


the data types refer to quantity.


The data types range from CC-OUNCE


-SHOT and JIGGER to FIFTH


(hence the name of the language)


LITER-MAGNUM and BLOTTO.


Commands refer to ingredients


such as CHABLIS-CHARDONNAY-


CABERNET-GIN-VERMOUTH-VODKA-SCOTCH


and WHATEVERSAROUND.





The many versions of the FIFTH


language reflect the sophistication


and financial status of its users.


Commands in the ELITE dialect


include VSOP and LAFITE while


commands in the GUTTER dialect


include HOOTCH and RIPPLE.


The latter is a favorite of


frustrated FORTH programmers who


end up using the language.





C-...This language was named


for the grade received by its


creater when he submitted it


as a class project in a


graduate programming class.





C- is best described as a


'Low Level' programming


language.





In fact the language


generally requires more C-


statements than machine-code


statements to execute a given


task. In this respect it


is very similar to COBOL.





LITHP ... This otherwise


unremarkable language is


distinguished by the absence


of an "s" in its character set.





Programmers and users must


substitute"TH". LITHP is said to


be useful in prothething lithtth.





DOGO ... Developed at the


Massachussettes Institute of


Obedience Training. DOGO heralds


a new era of computer literate


pets. DOGO commands include SIT


STAY-HEEL and ROLL OVER. An


innovative feature of DOGO is


'PUPPY GRAPHICS' in which a small


cocker spaniel occasionally leaves


a deposit as he travels across


the screen.

Less-Known Computer Languages?
OMG… Thanks for the laugh.!


Your star...!!


☆ ★ ☆ ★ ☆





O_=
Reply:lol
Reply:Wow!


Worth the read for the laughs!!


Cheers!!
Reply:Ha ha ha.!!!


Very good again so 10/10.!!!


Cheers for a laugh.!!
Reply:ha ha ha funny


thanks for a laugh
Reply:Very funny thanks
Reply:Wow another excellent one thanks