Need help with WMI code that will send output to db
'm new to WMI code writing, so I need some help with writing code that we can store on our server. I want this code to run when a user logs into their computer
and talks to our server. I also want the code to:
* check the users computer and find all installed patches
* the date the patches were installed
* the serial number of the users computer
* the computer name, os version, last boot up time, and mac address
and then have all this output to a database file. At the command prompt I've tried:
wmic qfe get description, hotfixid
This does return the patch information I'm looking for, but how do I combine that line of code with:
wmic os get version, csname, serialnumber, lastbootuptime
and
wmic nicconfig get macaddress
and then get all this to output to a database file?
Thank you for the links. I checked out http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx and
found lots of good information. I also found a good command that will print information to a text file.
Basically what I'm trying to do is retrieve a list of all installed updates (Windows updates and 3rd party updates). I do like that the below code because it gives me the KB numbers for the Windows updates. I need this information so my IT co-workers &
I can keep track of which of our user computers need a patch/update installed and preferably which patch/update. The minimum we want to know is which patches / updates have been installed on which computer. If you wondering why we don't have Windows automatic
updates enable, that's because we are not allowed to.
This is my code so far.
#if you want the computer name, use this command
get-content env:computername
$computer = get-content env:computername
#list of installed patches
Get-Hotfix -ComputerName $computer#create a text file listing this information
Get-Hotfix > 'C:\users\little e\Documents\WMI help\PowerShell\printOutPatchList.txt'
I know you don't want to tell me the code that will print this out to a database (regardless if it's Access or SQL), and that's find. But maybe you can tell me this. Is it possible to have the results of this sent to a database file or do I need to go into
SQL and write code for SQL to go out and grab the data from an Excel file or txt file? If I'm understanding this stuff so far, then I suspect that it can be done both ways, but the code needs to be written correctly for this to happen. If it's true, then which
way is best (code in PowerShell to send information to SQL or SQL go get the information from the text file or Excel file)?
Similar Messages
-
Need help with a workflow that will restrict resize to 720x540
I need help constructing a workflow that will resize any image I choose to 720x540. I want this to be restrictive to this size, in other words I don't want 720x468 or etc. I have tried this too many times, will no success so now I am reaching out for help. HELP. Once I have correct resized an image as needed I want to change its format and save a copy.
As always thanks for your reading and replying to my Post,
SebastianHi there,
what Image editing software do you have, if any ?
regards
Ric -
Need help with an applet that will only run as an application
I am working on a slide show applet. The problem is that is won't run as an applet. I added a quite standard main method to stick the applet in a JFrame and this worked. I believe that the problem lies in how I am trying to open the files.
here are two of the methods that I believe contain part of the problem
private void showImage( String image_name )
image_file = Toolkit.getDefaultToolkit().getImage( image_name );
display_image.loadImage( image_file );
repaint();
private void setFileFolder( String folder )
file_finder = new File( folder );
file_results = file_finder.list();
}image_file is an object of class Image, display_image is an object of class ImageComponent (extends JComponent to draw an image), and file_finder and file_results are both objects of class File
I would greatly appreciate it if some one would help me with this.
The full source can be found at http://www.geocities.com/enchantedforest/3688/ImSP.zipOk. I got the image loading to work.
Now how do I fix the second method shown in my first post? It is needed to find all of the images in one specific folder so that the slide show can run. -
I need help with my code..
hi guys. as the subject says I need help with my code
the Q for my code is :
write a program that reads a positive integer x and calculates and prints a floating point number y if :
y = 1 ? 1/2 + 1/3 - ? + 1/x
and this is my code
This program that reads a positive integer x and calculates
and prints a floating point number y if :
y = 1 - 1/2 + 1/3 - ? + 1/x
import java.util.Scanner; // program uses class Scanner
class Sh7q2
// main method begins execution of Java application
public static void main( String args[] )
// create Scanner to obtain input from command window
Scanner input = new Scanner( System.in );
int i = 1; // i is to control the loop
int n = 2; // n is suppose to control the number sign
int x; // a positive integer entered by the user
int m;
System.out.println("Enter a positive integer");
x = input.nextInt();
do
m = (int) Math.pow( -1, n)/i;
System.out.println(m);
n++;
i++;
while ( m >= 1/x );
} // end method main
} // end class Sh7q2 when I compile it there is no error
but in the run it tells me to enter a positive integer
suppose i entered 5
then the result is 1...
can anyone tell me what's wrong with my codeThis program that reads a positive integer x and calculates
and prints a floating point number y if :
y = 1 - 1/2 + 1/3 - ? + 1/x
import java.util.Scanner; // program uses class Scanner
class Sh7q2
// main method begins execution of Java application
public static void main( String args[] )
// create Scanner to obtain input from command window
Scanner input = new Scanner( System.in );
int i = 1; // i is to control the loop
int n = 1; // n is suppose to control the number sign
int x; // a positive integer entered by the user
double m;
int a = 1;
double sum = 0;
System.out.println("Enter a positive integer");
x = input.nextInt();
for ( i = 1; a <= x; i++)
m = Math.pow( -1, n+1)/i;
sum = sum + m;
n++;
a++;
System.out.print("y = " + sum);
} // end method main
} // end class Sh7q2is it right :S -
I need help with this code error "unreachable statement"
the error_
F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
int index;
^
F:\Java\Projects\Tools.java:71: missing return statement
}//end delete method
^
F:\Java\Projects\Tools.java:86: missing return statement
}//end getrecod
^
3 errors
import java.util.*;
import javax.swing.*;
import java.awt.*;
public class Tools//tool class
private int numberOfToolItems;
private ToolItems[] toolArray = new ToolItems[10];
public Tools()//array of tool
numberOfToolItems = 0;
for(int i = 0; i < toolArray.length; i++)//for loop to create the array tools
toolArray[i] = new ToolItems();
}//end for loop
}//end of array of tools
public int search(int id)//search mehtod
int index = 0;
while (index < numberOfToolItems)//while and if loop search
if(toolArray[index].getID() == id)
return index;
else
index ++;
}//en while and if loop
return -1;
}//end search method
public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
if(numberOfToolItems >= toolArray.length)
return 0;
int index;
index = search(id); <-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------HERE
if (index == -1)
toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
numberInStock ++;
return 1;
}//end if index
}//end if toolitem array
return -1;
}//end insert method
public int delete(/*int id*/)//delete method
}//end delete method
public void display()//display method
for(int i = 0; i < numberOfToolItems; i++)
//toolArray.display(g,y,x);
}//end display method
public String getRecord(int i)//get record method
// return toolArray[i].getName()+ "ID: "+toolArray[i].getID()
}//end getrecod
}//end class
Edited by: ladsoftware on Oct 9, 2009 6:08 AM
Edited by: ladsoftware on Oct 9, 2009 6:09 AM
Edited by: ladsoftware on Oct 9, 2009 6:10 AM
Edited by: ladsoftware on Oct 9, 2009 6:11 AMladsoftware wrote:
Subject: Re: I need help with this code error "unreachable statement"
F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
int index;
^
F:\Java\Projects\Tools.java:71: missing return statement
}//end delete method
^
F:\Java\Projects\Tools.java:86: missing return statement
}//end getrecod
^
3 errorsThe compiler is telling you exactly what the problems are:
public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
if(numberOfToolItems >= toolArray.length)
return 0; // <<== HERE you return, so everyting in the if block after this is unreachable
int index;
index = search(id); //< -----------------------------------------------------------------------------------------------------------------HERE
if (index == -1)
toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
numberInStock ++;
return 1;
}//end if index
}//end if toolitem array
return -1;
}//end insert method
public int delete(/*int id*/)//delete method
// <<== HERE where is the return statement?
}//end delete method
public String getRecord(int i)//get record method
// return toolArray.getName()+ "ID: "+toolArray[i].getID() <<== HERE you commented out the return statement
}//end getrecod
}//end class -
Need help with error code 150:30
need help with finding out what error code 150:30 is and how to fix it
See the following:
Error 150:30 - Error "Licensing has stopped working" | Mac OS :
http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html -
Noob needs help with this code...
Hi,
I found this code in a nice tutorial and I wanna make slight
adjustments to the code.
Unfortunately my Action Script skills are very limited... ;)
This is the code for a 'sliding menue', depending on which
button u pressed it will 'slide' to the appropriate picture.
Here's the code:
var currentPosition:Number = large_pics.pic1._x;
var startFlag:Boolean = false;
menuSlide = function (input:MovieClip) {
if (startFlag == false) {
startFlag = true;
var finalDestination:Number = input._x;
var distanceMoved:Number = 0;
var distanceToMove:Number =
Math.abs(finalDestination-currentPosition);
var finalSpeed:Number = .2;
var currentSpeed:Number = 0;
var dir:Number = 1;
if (currentPosition<=finalDestination) {
dir = -1;
} else if (currentPosition>finalDestination) {
dir = 1;
this.onEnterFrame = function() {
currentSpeed =
Math.round((distanceToMove-distanceMoved+1)*finalSpeed);
distanceMoved += currentSpeed;
large_pics._x += dir*currentSpeed;
if (Math.abs(distanceMoved-distanceToMove)<=1) {
large_pics._x =
mask_pics._x-currentPosition+dir*distanceToMove;
currentPosition = input._x;
startFlag = false;
delete this.onEnterFrame;
b1.onRelease = function() {
menuSlide(large_pics.pic1);
b2.onRelease = function() {
menuSlide(large_pics.pic2);
b3.onRelease = function() {
menuSlide(large_pics.pic3);
b4.onRelease = function() {
menuSlide(large_pics.pic4);
I need to adjust five things in this code...
(1) I want this menue to slide vertically not horizontally.
I changed the 'x' values in the code to 'y' which I thought
would make it move vertically, but it doesn't work...
(2) Is it possible that, whatever the distance is, the
"sliding" time is always 2.2 sec ?
(3) I need to implement code that after the final position is
reached, the timeline jumps to a certain movieclip to a certain
label - depending on what button was pressed of course...
I tried to implement this code for button number two...
b2.onRelease = function() {
menuSlide(large_pics.pic2);
if (currentPosition = finalDestination) {
this.large_pics.pic2.gotoAndPlay("s1");
--> sliding still works but it doesn't jump to the
appropriate label...
(4) I wanna add 'Next' & 'Previous' buttons to the slide
show - what would be the code in this case scenario ?
My first thought was something like that Flash checks which
'pic' movieclip it is showing right now (pic1, pic2, pic3 etc.) and
depending on what button u pressed u go to the y value of movieclip
'picX + 1' (Next button) or 'picX - 1' (Previous button)...
Is that possible ?
(5) After implementing the Next & Previous buttons I need
to make sure that when it reached the last pic movieclip it will
not go further on the y value - because there is no more pic
movieclip.
Options are to either slide back to movieclip 'pic1' or
simply do nothing any more on the next button...
I know this is probably Kindergarten for you, but I have only
slight ideas how to do this and no code knowledge to back it up...
haha
Thanx a lot for your help in advance !
Always a pleasure to learn from u guys... ;)
MikeHi,
I made some progress with the code thanx to the help of
Simon, but there are still 2 things that need to be addressed...
(1) I want the sliding time always to be 2.2 sec...
here's my approach to it - just a theory but it might work:
we need a speed that changes dynamically depending on the
distance we have to travel...
I don't know if that applies for Action Scrip but I recall
from 6th grade, that...
speed = distance / time
--> we got the time (which is always 2.2 sec)
--> we got the disctance
(currentposition-finaldestination)
--> this should automatically change the speed to the
appropriate value
Unfortunately I have no clue how the action script would look
like (like I said my action script skills are very limited)...
(2) Also, one other thing I need that is not implemented yet,
is that when the final destination is reached it jumps to a certain
label inside a certain movieclip - every time different for each
button pressed - something like:
if (currentPosition = finalDestination) {
this.large_pics.pic2.gotoAndPlay("s1");
that statement just doesn't work when I put it right under
the function for each button...
Thanx again for taking the time !!!
Mike -
hello i am having difficulties in adding a number to an array. Look......i have done until here but i need to add the number to the array......so when i look at the array.....the array should contain the number i inserted into it.
int x,y,f=0,z,c,v=0,b,n,m,flag=0;
String A,B,C,D,E,F,G;
int sum[]={15,8,7,4,11,2,1,0,0,0};
BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Please Put The Number That You Want To Add Here!!!");
C=dataIn.readLine();
m=Integer.parseInt(C);
for(n=0; n<sum.length; n++)
if(v==sum[n])
m=sum[n];
System.out.println(m);
but when i put m=sum[n]; (m is the number i inserted and is making that part of the array equal to the number inserted ) it doesn't work. I't won't change anything. I just want to change a cero from my array with the number i inserted. Please Someone Help Me!!!!!This is the code, formatted and fixed. ;-)
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public Main() {
public static void main(String[] args)throws IOException
int x,y,f=0,z,c,v=0,b,n,m,flag=0;
String A,B,C,D,E,F,G;
int sum[]={15,8,7,4,11,2,1,0,0,0};
System.out.println(" <------------------------Menu------------------------------>");
System.out.println("Please Select Any Of These Options By Pressing The Corresping Number Of Your equest:");
System.out.println("1) Display Array");
System.out.println("2) Search For A Number");
System.out.println("3) Add A Number");
System.out.println("4) Delete A Number");
System.out.println("5) Sort Array");
System.out.println("6) Exit");
BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Please Put A Number Here!!");
A=dataIn.readLine();
y=Integer.parseInt(A);
if(y==1)
System.out.println("Displaying Array...");
for(b=0; b<sum.length; b++)
if(v != sum)
System.out.print( sum[b] + " ");
else if(y==2)
System.out.println("Search For A Number Here");
B=dataIn.readLine();
c=Integer.parseInt(B);
for(n=0; n<sum.length; n++)
if(c==sum[n])
System.out.println(sum[n]);
flag=1;
if(flag==1)
System.out.println("Your Number Is Registered In Our Database");
else
System.out.println("Your Number Is Not Registered In Our Database");
// This is the part i am having trouble with..........i don't know how to deal with it so that it will add the number to the array.
else if(y==3)
System.out.println("Please Put The Number That You Want To Add Here!!!");
C=dataIn.readLine();
m=Integer.parseInt(C);
for(n=0; n<sum.length; n++)
if(v==sum[n])
sum[n]=m;
System.out.println(sum[m]);
else if(y==4)
System.out.println("Delete A Number");
else if(y==5)
System.out.println("Sort Array");
else if(y==6)
System.out.println("You Just Exited The Prgoram");
System.out.print("Have A Nice Day!");
else
System.out.print("Please type In A Number Between 1 and 6");
// TODO code application logic here -
Need help with Workflow Issue: One notification sending out non-stop email.
Hi,
We've created a custom PO Approval Workflow based on standard PO Approval Workflow and we've had this for a while now. Last week, we encountered an issue where the notification keeps on sending email to the Suppliers and Buyers. We found out that the particular notification_id in the WF_NOTIFICATIONS table keeps getting updated by the minute setting the MAIL_STATUS to INVALID then back to SENT then back to INVALID again and so on. We think that whatever is updating this table is the cause but up until now we haven't found what's updating it. Below are some information of our instance.
Oracle Applications: 11.5.10.2
Database: 10.2.0.4 64 bit
OS: AIX
Custom Workflow based on revision 115.127.11510.16
Customizations:
- Created custom notification XX_EMAIL_PO_PDF_SUPP based on EMAIL_PO_PDF_SUPP.
- Created custom message XX_EMAIL_PO_PDF based on EMAIL_PO_PDF.
- Added #WFM_CC to XX_EMAIL_PO_PDF.
- Created custom attribute XX_PO_WF_EMAIL_PERFORMER and set as Performer to notification XX_EMAIL_PO_PDF_SUPP.
- Created custom function XX_ADDTL_STARTUP_VAL right after function "Set Workflow Startup Values". This function sets #WFM_CC attribute and XX_PO_WF_EMAIL_PERFORMER attribute.
Not sure if the customizations have anything to do with the issue since not all POs have this issue. Have anyone experience this? Would really appreciate any help with this.
Thanks,
AllenKashif M wrote:
Just review this thread, may help you
Workflow Notification Mailer is Spamming the Email Accounts of Users [ID 1293792.1]
thanksHi,
This note has solved our issue. Hopefully they will release a fix for this as it is a common thing for us to change the email address of Supplier Site.
Thanks,
Allen -
Hello, thanks for helping:
my problem is that I am creating a "before" and "after" situation between strings. (What a string was before.. and now what it is)
so here's the sample I created. Basically a display issue. If you run it you'll know the problem.
Thanks again for helping.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class JScrollExample extends JFrame
JPanel mainpanel = new JPanel();
JTextArea text = new JTextArea();
JScrollPane scroll = new JScrollPane(text);
String[] before, after, other;
int sda, indexMaxLength;
int[] ja;
StringBuilder[] sb;
String[] name;
public JScrollExample()
getContentPane().add(mainpanel, BorderLayout.NORTH);
setTitle("JScrollExample");
text.setColumns(100);
text.setRows(30);
mainpanel.add(scroll);
before = new String[]
"asdf-asdfasdfasdf-asdf", "asdf-asdfasdfasdf-asdffdsaasdf",
"asdf-asdffdsaasdffdssasdfasdf-asdf", "AVDSDFDSasdf-asdfasdfasdf-asdf",
"asdsdfsdfsdfsdfsdsdfsdf-asddsffasdsdfsdfasdfvfdvdfvfd-asdf"
after = new String[]
"jkloolkj-iriod-3342", "jsdfsdolkj-iriod-3342", "jkloolkj-fdsfiriod-3342",
"jkloolkj-idsfsfsfsdfsdfiod-3sdfds342", "ASXkloolkj-iriod-3342MBW"
other = new String[]
"AAAAAAAAAAAAAAAAAAAA", "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "AAAAAAAAA", "AAAAAAAAAAAAA"
indexMaxLength = 0;
sb = new StringBuilder[before.length];
ja = new int[before.length];
name = new String[before.length];
for(int j = 0; j < before.length; j++)
if(before[j].length() > before[indexMaxLength].length())
indexMaxLength = j;
sda = before[indexMaxLength].length();
for(int i = 0; i < before.length; i++)
ja[i] = ((sda - before.length()) + 25);
for(int j = 0; j < ja.length; j++)
sb[j] = new StringBuilder("");
for(int g = 0; g < ja[j]; g++)
sb[j].append(" -");
text.append("I'm trying to make it look nice and neat," +
"and have each line have same amount of '-' " + "I tried doing it " +
"and this is what I got. Basically what i'm doing is finding " +
"the longest string, subtracting each string's \nlength with the " +
" longest one, then adding 25, to get an equal value, then using " +
"that value to put that many '-' in between before and after. But " +
"because every character has a different size, it doesn't work\n " +
"unless all the characters are the same\n\n");
for(int i = 0; i < before.length; i++)
String y = (after[i]);
text.append(before[i] + sb[i].toString() + "> " + y + "\n");
indexMaxLength = 0;
sb = new StringBuilder[before.length];
ja = new int[before.length];
for(int j = 0; j < other.length; j++)
if(other[j].length() > other[indexMaxLength].length())
indexMaxLength = j;
sda = other[indexMaxLength].length();
for(int i = 0; i < other.length; i++)
ja[i] = ((sda - other[i].length()) + 25);
for(int j = 0; j < ja.length; j++)
sb[j] = new StringBuilder("");
for(int g = 0; g < ja[j]; g++)
sb[j].append(" -");
text.append("\n\nWHAT I WANT IS THIS: \n\n");
for(int i = 0; i < other.length; i++)
String y = (after[i]);
text.append(other[i] + sb[i].toString() + "> " + y + "\n");
public static void main (String[] args)
JFrame.setDefaultLookAndFeelDecorated(true);
JScrollExample frame = new JScrollExample();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
frame.pack();what methods do you think I should use?I think you should use the monospaced font.
I went to the font metrics page, and I understand what it does.Well, then you should realize that you can't be guaranteed that your column will line up if you attempt to use the FontMetrics class. All the FontMetrics class can tell you is the width of a String.
You can calculate the width of your longest String and then calculate the width of 25 " -" to get the total width before the second colum. Lets assume this width is 500. Now lets also assume that each " -" string is 10 pixels.
If we have "i" as the only text and its width is 3 pixels, then how do you calculate a multiple of " -" which will total to 500 pixels?
Similiarly if you have a "W" as the text and its width is 7 pixels you will never be able to add characters that will total to 500 pixesl.
So if you need "- - - - >" between column 1 and column 2 the easiest solution is to use a monospaced font.
If on the other hand you only care about column two lining up in the same postion each time, then you may be able to use tabs in a JTextPane as you can easily control the placement of text for each tab. This posting will give you an idea:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=585006 -
Beginner needs help with simple code.
I just statrted learnind java, and I need some help with this simple program. For some reason everytime I enter my Farenheit value, the Celsius conversion returns as 0.0. Would really appreciate the help. Thanks.
Here's the code:
public class TempConverter
public static void main(String[] args)
double F = Double.parseDouble(args[0]);
System.out.println("Temperature in Farenheit is: " + F);
double C = 5 / 9;
C *= (F - 32);
System.out.println("Temperature in Celsius is: " + C);
}double C = 5 / 9This considers "5" and "9" to be integers and does an integer division, discarding the remainder. The result of that division is 0. Trydouble C = 5.0/9.0;
-
Hi,
I'm trying to make a driver for an instrument with NAT9914 chipset and I'm having some problems. Sometimes, my Read lost the first character and my Write always get stuck waiting for BO after sending the first character.
Can somebody points me out what is wrong?
Here is my code:
* Initialization
// enable 9914 chip reset state
GPIBout(&(hDev->pIo->w.auxcr, 0x1c);
// disable all interrupts
GPIBout(&(hDev->pIo->w.imr0, 0);
GPIBout(&(hDev->pIo->w.imr1, 0);
// clear status registers by reading
GPIBin(&(hDev->pIo->r.isr0);
GPIBin(&(hDev->pIo->r.isr1);
// set GPIB address;
GPIBout(&(hDev->pIo->w.adr,(25 & 0x1f));
// speed is 4Mhz
GPIBout(&(hDev->pIo->w.accr), 0x0100 );
// Set T1 Delay to vstdl
GPIBout(&(hDev->pIo->w.auxcr), 0x97 );
// release 9914 chip reset state
GPIBout(&(hDev->pIo->w.auxcr), 0x00);
* Read
// Wait to be Active Listener
while( !((GPIBin(&(hDev->pIo->r.adsr)) & HR_LAPS)) );
// set and get eos
ibeos(hDev, (REOS << 8) | '\n');
eos = bdGetEOS();
// reading loop
while(1)
// send RHDF
GPIBout(&(hDev->pIo->w.auxcr),AUX_RHDF);
// wait for BI or stop on end
while(!((isreg1 = GPIBin(&(hDev->pIo->r.isr0)) & HR_BI) && !(isreg1 & HR_END ) && NotTimedOut());
// No BI
if( (isreg1 & HR_END) || TimedOut() )
break;
// read byte
bin[j++] = GPIBin(&(hDev->pIo->r.dir);
// read last character
bin[j] = GPIBin(&(hDev->pIo->r.dir));
// make string readable
if((eosmodes & REOS) && (bin[j] == eos ))
bin[j] = '\0';
else
bin[j+1] = '\0';
* Write
// Wait to be Active Talker
while( !((GPIBin(&(hDev->pIo->r.adsr)) & HR_TPAS)) );
// writting loop
while(i{
// write byte to register
GPIBout(&(hDev->pIo->w.cdor), buf[i++]);
// wait for BO or ERR
while( !((GPIBin(&(hDev->pIo->r.isr0)) & HR_BO))
|| !((GPIBin(&(hDev->pIo->r.isr1)) & HR_ERR)) )
// if error, stop
if((GPIBin(&(hDev->pIo->r.isr1)) & HR_ERR))
break;
// if no error, send EOI with last byte
if(!((GPIBin(&(hDev->pIo->r.isr1)) & HR_ERR)))
GPIBout(&(hDev->pIo->w.auxcr ), 0x08 );
GPIBout(&(hDev->pIo->w.cdor), buf[i]);
Thanks,
MichaelTry visiting the NI web site for Registry Level programming. It contains Manuals, Notes, Examples and KB entries that should help with your application:
ni.com>>Technical Support>>GPIB>>GPIB Register Level Programming -
What is wrong with this code? It does not play. It should play in Windows-7 and XP with IE8.
Also, on the screen there is a large white area where the <video> code is. Why?
How do I get rid of it?
Thanks.
<!DOCTYPE HTML>
<html>
<head>
<title>video testing</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
<p>Click the <a href="Download" _mce_href="http://www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.mp4">Download">http://w ww.amelox.com/Media/UX-CT-Tour-Short-1024d12db.mp4">Download mp4 </a> button to start video.</p>
<p>Click the <a href="Download" _mce_href="http://www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.webm">Download">http:// www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.webm">Download webm </a> button to start video.</p>
<p>Click the <a href="Download" _mce_href="http://www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.ogg">Download">http://w ww.amelox.com/Media/UX-CT-Tour-Short-1024d12db.ogg">Download ogg </a> button to start video.</p>
<p>Click the <a href="Download" _mce_href="http://www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.flv">Download">http://w ww.amelox.com/Media/UX-CT-Tour-Short-1024d12db.flv">Download flv </a> button to start video.</p>
<video width="480" height="270" controls="controls">
<source media="all" src="rtp:UX-CT-Tour-Short-1024d12db.mp4" type='video/mp4; codecs="vp8, vorbis"' />
<source media="all" src="rtp:UX-CT-Tour-Short-1024d12db.webm" type='video/webm; codecs="avc1.42E01E, mp4a.40.2"' />
<source media="all" src="rtp:UX-CT-Tour-Short-1024d12dB.ogg" type="video/ogv; codecs="theora, vorbis"" />
<object data="id=player1" width="480" height="270">
<param name="classid" value="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" />
<param name="movie" value="player.swf" />
<param name="flashvars" value="UX-CT-Tour-Short-1024d12db.flv & autostart=true" />
<param name="allowfullscreen" value="false" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="allowscriptaccess" value="always" />
<embed flashvars="file=UX-CT-Tour-Short-1024d12db.flv & autostart=true" id="player1" src="player.swf"
allowfullscreen="true" allowscriptaccess="always" width="480" height="270" />
</object>
</video>
<p>here is some more text</p>
</body>
</html>Data load? Did it pass a syntax check?
Anyway, maybe this will help:
DATA: create_date TYPE sy-datum,
update_date TYPE sy-datum,
number_of_days_closed(4) TYPE c,
alert_close_flag(1) TYPE c,
result LIKE number_of_days_closed.
IF alert_close_flag EQ 'Y'.
number_of_days_closed = update_date - create_date .
ELSE.
CLEAR number_of_days_closed.
ENDIF.
result = number_of_days_closed.
Rob -
Need help trying to upgrade itunes for windows, i get to a certain point and the following error comes up "ERROR 1714: THE OLD VERSION OF ITUNES CANNOT BE REMOVED CONTACT YOUR TECHNICAL SUPPORT GROUP" i click ok and then another error comes up "ERROR 1603 FATAL ERROR" can anybody help Please!!!!!!!!!!!!!!!!!!!!
hi wags!
hmmmm. okay, let's try using the complete uninstallation instructions from the following document to remove your existing itunes and QT:
Trouble installing iPod, iTunes, or QuickTime software in Windows
if you do that first, will the new itunes install go through properly?
if you get an error message on the uninstalls, let us know what it says. include error message numbers if you're getting any.
love, b -
I need help with this code involving making stuff in safari appear the same in internet explorer
In the Preview mode, Safari shows it the way I want it too
look, but when I go to view it on Internet Explorer, the window
look blank. When I check the 'veiw source code' for it it shows all
the codes I have for it. I'm guessing because I'm using positioning
in CSS and HTML its not aligning right in explorer. But I heard
from one of my friends that there is a code that somehow makes it
so that the webpage looks the same for safari and internet
explorer. He said he didn't know the code, and I've can't find it
on the web so far, so maybe somebody here knows what I'm talking
about? He said all I had to do is enter the code in the code panel
and it should work.Looks like you did not close the JavaScript comments on the
portfolio page:
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a
)&&x.oSrc;i++) x.src=x.oSrc;
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for
(i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers
.document);
if(!x && d.getElementById) x=d.getElementById(n);
return x;
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
</script>
Try adding the closing comment just above the closing
</script> tag, like this:
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a
)&&x.oSrc;i++) x.src=x.oSrc;
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for
(i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers
.document);
if(!x && d.getElementById) x=d.getElementById(n);
return x;
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
//-->
</script>
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com
"SCathey" <[email protected]> wrote in
message news:[email protected]...
>
http://myweb.usf.edu/~scathey/
Theres the link. The home, resume, and bio page
> seems to work fine, but when I check the portfollio
page, thats when it turns
> blank in internet explorer. I used a javascript slide
show code for those
> pages, but I used a similar code like that and I had no
previous problems. I
> just want to know if there is a code that allows the
codes to work the same in
> all browsers.
>
Maybe you are looking for
-
Flash Player for Firefox on Win 8 / 64 bit
I'm trying to install Flash Player for Firefox on a Windows 8, 64 bit system, but have been having no end of grief. I've finally traced the problem back to the origin, and it's happening because when I enter the info on the download page, it serves
-
ODI11g Server Installation in Linux64 bit
Hi Experts, After running the uninstaller for ODI11g installatiion in Linux,getting follwing error. Checking if CPU speed is above 300 MHz. Actual 3000 MHz Passed Checking Temp space: must be greater than 300 MB. Actual 1084 MB Passed Checking swap s
-
Launch Appsite in browser failed missing file
error message in the F12 console log: GET https://10.128.74.169:4301/sap/hana/uis/server/rest/v1/sites/sap%7Chana%7Cdemocontent%7Cepm%7Cui%7Cuis%7Csite%7CUISExample?invalidator=1398075248953 500 (Internal Server Error) and i already import the hana_u
-
How to add 'Publisher' info in Projector (.exe) file?
The title says all about what I want to know. As you are aware that, Windows showing a security warning (as Unverified and Unknown Publisher) when we run a Projector (.exe) file. I just wanted to put something instead of showing Unknown Publisher. I
-
OSB-Catching error and sending it as response
hi, in OSB, the system throws eror on any exception. but i want it to be catched and sent as a response to the customer. how is it possible?