How to list all organization channels?
Hi there,
What code should I use to list in a JSP Channel all channels existent in an organization?
The idea is make a dinamic list of channels names.
Atention: is not the available channels of a container, is all desktop channels and containers of the organization.
Thanks for any help,
Minassa.
Hi LVB,
Unfortunately, there is no property node I can find which will return the Global channels created within the Project. However, since we can return the Global Channels from MAX, the only way to work around this problem would be to save the Global Channels from the Project into MAX. To do this you could use the DAQmx Save Global Channel VI, but you will have to manually assign a global channel you wish to save as this will not save all the channels in your project for you. I'm sorry I could not find any better solution.
S_Hong
National Instruments
Applications Engineer
Similar Messages
-
How to list all properties in the default Toolkit
I would like to know what kinds of properties are stored in the default Toolkit (Toolkit.getDefaultToolkit()). I don't know how to list all of them. Toolkit class has a method getProperty(String key, String defaultValue), but without knowing a list of valid keys, this method is useless.
Any idea would be appreciated.Here is a little utility that I wrote to display all the UIDefaults that are returned from UIManager.getDefaults(). Perhaps this is what you are looking for?
import javax.swing.*;
import java.util.*;
public class DefaultsTable extends JTable {
public static void main(String args[]) {
JTable t = new DefaultsTable();
public DefaultsTable() {
super();
setModel(new MyTableModel());
JFrame jf = new JFrame("UI Defaults");
jf.addWindowListener(new WindowCloser());
jf.getContentPane().add(new JScrollPane(this));
jf.pack();
jf.show();
class MyTableModel extends javax.swing.table.AbstractTableModel {
UIDefaults uid;
Vector keys;
public MyTableModel() {
uid = UIManager.getDefaults();
keys = new Vector();
for (Enumeration e=uid.keys() ; e.hasMoreElements(); ) {
Object o = e.nextElement();
if (o instanceof String) {
keys.add(o);
Collections.sort(keys);
public int getRowCount() {
return keys.size();
public int getColumnCount() {
return 2;
public String getColumnName(int column) {
if (column == 0) {
return "KEY";
} else {
return "VALUE";
public Object getValueAt(int row, int column) {
Object key = keys.get(row);
if (column == 0) {
return key;
} else {
return uid.get(key);
class WindowCloser extends java.awt.event.WindowAdapter {
public void windowClosing(java.awt.event.WindowEvent we) {
System.exit(0);
} -
How to list all the rows from the table VBAK
Friends ,
How to list all the rows from the table VBAK.select query and the output list is appreciated.Hi,
IF you want to select all the rows for VBAK-
Write-
Data:itab type table of VBAK,
wa like line of itab.
SELECT * FROM VBAK into table itab.
Itab is the internal table with type VBAK.
Loop at itab into wa.
Write: wa-field1,
endloop. -
How to list all files in a given directory?
How to list all the files in a given directory?
A possible recursive algorithm for printing all the files in a directory and its subdirectories is:
Print the name of the directory
for each file in the directory:
if the file is a directory:
Print its contents recursively
else
Print the name of the file.
Directory "games"
blackbox
Directory "CardGames"
cribbage
euchre
tetris
The Solution
This program lists the contents of a directory specified by
the user. The contents of subdirectories are also listed,
up to any level of nesting. Indentation is used to show
the level of nesting.
The user is asked to type in a directory name.
If the name entered by the user is not a directory, a
message is printed and the program ends.
import java.io.*;
public class RecursiveDirectoryList {
public static void main(String[] args) {
String directoryName; // Directory name entered by the user.
File directory; // File object referring to the directory.
TextIO.put("Enter a directory name: ");
directoryName = TextIO.getln().trim();
directory = new File(directoryName);
if (directory.isDirectory() == false) {
// Program needs a directory name. Print an error message.
if (directory.exists() == false)
TextIO.putln("There is no such directory!");
else
TextIO.putln("That file is not a directory.");
else {
// List the contents of directory, with no indentation
// at the top level.
listContents( directory, "" );
} // end main()
static void listContents(File dir, String indent) {
// A recursive subroutine that lists the contents of
// the directory dir, including the contents of its
// subdirectories to any level of nesting. It is assumed
// that dir is in fact a directory. The indent parameter
// is a string of blanks that is prepended to each item in
// the listing. It grows in length with each increase in
// the level of directory nesting.
String[] files; // List of names of files in the directory.
TextIO.putln(indent + "Directory \"" + dir.getName() + "\":");
indent += " "; // Increase the indentation for listing the contents.
files = dir.list();
for (int i = 0; i < files.length; i++) {
// If the file is a directory, list its contents
// recursively. Otherwise, just print its name.
File f = new File(dir, files);
if (f.isDirectory())
listContents(f, indent);
else
TextIO.putln(indent + files[i]);
} // end listContents()
} // end class RecursiveDirectoryList
Cheers,
Kosh! -
Urgent: How to list all alias for a server throw DNS query?
Hi
Is there anyone know how to list all alias for a server by asking the network DNS. Is that possible?
It doesn't work with InetAddress it return a single result.
Best regardInetAddress will not get you the aliases, but you can certainly find all the different IP addresses for a specific host name using the getAllByName() method.
You won't be able to get the aliases since those IP addresses (assuming there are more than 1) will all be cached as mapping to the name you passed to the getAllByName() method and you can't clear the map cache until the JVM exits.
So your best hope is to get a list of IP's and either exit your app and restart with a new mode, or save them to a file for another app to read. -
Sunone Messaging Server 6.1--How to list all mail user's last login time
hi,i want to know how to list all the mail user's last login time.
There are more than 100000 mailbox accounts on our mail server,
i want to know which account is not used for more than 2 or 3 years.
thanks.http://wikis.sun.com/display/CommSuite/imsconnutil
Somchai. -
How to list all active local ports where a server/services is listening?
How can I list all local ports where a local server or services is listening?
The listing should contain the path and program name of the listening server/service.
So I need something like:
port=22 /lib/svc/method/sshd
port=25 /bin/emailprgm
port=1049 /ust/local/bin/myserver
How can I do this?lsof (compile, sunfreeware.com, blaswave)
it wont show full path i think (man lsof for more) however it gives pids/ports/exe name, so you could take that and script it or do something with the output. -
How to list all the fonts in an FLA?
Hello all,
I want to find a way to list all the fonts in my FLA files. I want to see that the developers get the fonts they need before the problems crop up - wild idea, I know. Using the edit/font mapping option seems to only show fonts which are missing or have been re-mapped. How do I get the FLA to give me the name of every font it's holding?Not the answer you want, but the closest you're going to find:
Open the Movie Explorer (Window/Movie Explorer). Select the "A" button at the top of the panel and deselect all others. This gives you a list of all text in the FLA, with the font listed at the end of each line. -
How to list all filename in excuteable jar file?
Hi there,
i've been googling around for hours, but found no good answer :(
i want listing all file name in my excuteable jar file
Firstly, i use
File f = new File("/sounds");
String[] filenames = f.list();
and use these filenames to load some resouces from url
//ex
URL url = getClass().getResource("/sounds/"+filenames);
No problem occurs when i run it normally
but when I put it in excuteable jar file, NullPointerException appears
i think it's because : "File f = new File("/sounds");" doesn't work in jar file (somehow, i don't know why too)
is there any alternative way to listing all filename in this situation?
thanks in advanceThere are jar handling classes in the standard library under java.util.jar. I think JarFile is the one you want.
Hower it's not good practice to list jar contents in order to read resources. It's better to have some kind of resource file in the jar which lists your sounds or whatever. A simple text file with one file name per line suffices. -
How to list all files and directories in another directory
I need to be able to list all the directories and files in a directory. I need to write a servlet that allows me to create an html page that has a list of files in that directory and also list all the directories. That list of files will be put into an applet tag as a parameter for an applet that I have already written. I am assuming that reading directories/files recursively on a web server will be the same as reading directories/files on a local system, but I don't know how to do that either.
Hi,
Here is a method to rotate through a directory and put all the files into a Vector (files).
* Iterates throught the files in the root file / directory that is passed
* as a parameter. The files are loaded into a <code>Vector</code> for
* processing later.
* @param file the root directory or the file
* that you wish to have inspected.
public void loadFiles(File file) {
if (file.isDirectory()) {
File[] entry= file.listFiles();
for (int i= 0; i < entry.length; i++) {
if (entry.isFile()) {
//Add the file to the list
files.add(entry[i]);
} else {
if (entry[i].isDirectory()) {
//Iterate over the entries again
loadFiles(entry[i]);
} else {
if (file.isFile()) {
//Add the file
files.add(file);
See ya
Michael -
How to list all the episodes in a podcast?
Hi!
iTunes 7.5.0.20 on Windows XP.
When subscribing to a podcast, I like to download all the old episodes. Easy enough to do most times (either use GET ALL option or individual GET per episode), but for some of the feeds I subscribe to iTunes doesn't list all the episodes available. Example: if the podcast has 100 episodes, iTunes will only list the last 80 or so. When I look at the same feed using another tool (Google Reader in my case), I see all 100 episodes there.
What's happening here? How can I get ALL the episodes associated with a feed?
I searched this forum (almost 300 answered questions) but if the information is there I missed it...
Thanks!
FernandoSometimes the episodes are available from the producer directly. Go to the podcast website to check. Sometimes they are listed in an archive area. Sometimes this is a limitation on the producer because of the hosting they use. For popular podcasts it is done to reduce bandwidth. In all but two cases in the past I have been able to get the old episodes from producer. In one of the two cases they admitted the really old files were lost, in the other they said the old files were of such bad quality compared to new ones that they no longer wanted to distribute them.
-
How to list all USB AUDIO DEVICES using PowerShell on Windows 7
Hi all,
I'm starting today on the powershell programming world, and my first task is list all USB Headsets plugged on my computer, I wanna get the name of this devices like is shown on Windows Volume Control.
My headset is a ZOX DH-60, every time that I change the USB port, the name changes, like Headset ZOX DH-60, then Headset 2 ZOX DH-60, how could I get this name using powershell ?
Thanks,
Best Regards
Leonardo LimaHi,
Nope... see my command and return
Get-WmiObject Win32_PnPEntity | ? {$_.Service -eq 'usbaudio'} | Select * | Format-List
__GENUS : 2
__CLASS : Win32_PnPEntity
__SUPERCLASS : CIM_LogicalDevice
__DYNASTY : CIM_ManagedSystemElement
__RELPATH : Win32_PnPEntity.DeviceID="USB\\VID_0D8C&PID_000E&MI_00\\8&149B33FB&0&0000"
__PROPERTY_COUNT : 24
__DERIVATION : {CIM_LogicalDevice, CIM_LogicalElement, CIM_ManagedSystemElement}
__SERVER : HOBBIT
__NAMESPACE : root\cimv2
__PATH : \\HOBBIT\root\cimv2:Win32_PnPEntity.DeviceID="USB\\VID_0D8C&PID_000E&MI_00\\8&149B33FB&0&0000"
Availability :
Caption : Generic USB Audio Device
ClassGuid : {4d36e96c-e325-11ce-bfc1-08002be10318}
CompatibleID : {USB\Class_01&SubClass_01&Prot_00, USB\Class_01&SubClass_01, USB\Class_01}
ConfigManagerErrorCode : 0
ConfigManagerUserConfig : False
CreationClassName : Win32_PnPEntity
Description : Dispositivo de áudio USB
DeviceID : USB\VID_0D8C&PID_000E&MI_00\8&149B33FB&0&0000
ErrorCleared :
ErrorDescription :
HardwareID : {USB\VID_0D8C&PID_000E&REV_0100&MI_00, USB\VID_0D8C&PID_000E&MI_00}
InstallDate :
LastErrorCode :
Manufacturer : (Áudio USB genérico)
Name : Generic USB Audio Device
PNPDeviceID : USB\VID_0D8C&PID_000E&MI_00\8&149B33FB&0&0000
PowerManagementCapabilities :
PowerManagementSupported :
Service : usbaudio
Status : OK
StatusInfo :
SystemCreationClassName : Win32_ComputerSystem
SystemName : HOBBIT
Scope : System.Management.ManagementScope
Path : \\HOBBIT\root\cimv2:Win32_PnPEntity.DeviceID="USB\\VID_0D8C&PID_000E&MI_00\\8&149B33FB&0&0000"
Options : System.Management.ObjectGetOptions
ClassPath : \\HOBBIT\root\cimv2:Win32_PnPEntity
Properties : {Availability, Caption, ClassGuid, CompatibleID...}
SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
Qualifiers : {dynamic, Locale, provider, UUID}
Site :
Container :
__GENUS : 2
__CLASS : Win32_PnPEntity
__SUPERCLASS : CIM_LogicalDevice
__DYNASTY : CIM_ManagedSystemElement
__RELPATH : Win32_PnPEntity.DeviceID="USB\\VID_074D&PID_3556&MI_00\\8&285F78A6&0&0000"
__PROPERTY_COUNT : 24
__DERIVATION : {CIM_LogicalDevice, CIM_LogicalElement, CIM_ManagedSystemElement}
__SERVER : HOBBIT
__NAMESPACE : root\cimv2
__PATH : \\HOBBIT\root\cimv2:Win32_PnPEntity.DeviceID="USB\\VID_074D&PID_3556&MI_00\\8&285F78A6&0&0000"
Availability :
Caption : ZOX DH-60
ClassGuid : {4d36e96c-e325-11ce-bfc1-08002be10318}
CompatibleID : {USB\Class_01&SubClass_01&Prot_00, USB\Class_01&SubClass_01, USB\Class_01}
ConfigManagerErrorCode : 0
ConfigManagerUserConfig : False
CreationClassName : Win32_PnPEntity
Description : Dispositivo de áudio USB
DeviceID : USB\VID_074D&PID_3556&MI_00\8&285F78A6&0&0000
ErrorCleared :
ErrorDescription :
HardwareID : {USB\VID_074D&PID_3556&REV_0006&MI_00, USB\VID_074D&PID_3556&MI_00}
InstallDate :
LastErrorCode :
Manufacturer : (Áudio USB genérico)
Name : ZOX DH-60
PNPDeviceID : USB\VID_074D&PID_3556&MI_00\8&285F78A6&0&0000
PowerManagementCapabilities :
PowerManagementSupported :
Service : usbaudio
Status : OK
StatusInfo :
SystemCreationClassName : Win32_ComputerSystem
SystemName : HOBBIT
Scope : System.Management.ManagementScope
Path : \\HOBBIT\root\cimv2:Win32_PnPEntity.DeviceID="USB\\VID_074D&PID_3556&MI_00\\8&285F78A6&0&0000"
Options : System.Management.ObjectGetOptions
ClassPath : \\HOBBIT\root\cimv2:Win32_PnPEntity
Properties : {Availability, Caption, ClassGuid, CompatibleID...}
SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
Qualifiers : {dynamic, Locale, provider, UUID}
Site :
Container :
__GENUS : 2
__CLASS : Win32_PnPEntity
__SUPERCLASS : CIM_LogicalDevice
__DYNASTY : CIM_ManagedSystemElement
__RELPATH : Win32_PnPEntity.DeviceID="USB\\VID_074D&PID_3556&MI_00\\8&3B19294B&0&0000"
__PROPERTY_COUNT : 24
__DERIVATION : {CIM_LogicalDevice, CIM_LogicalElement, CIM_ManagedSystemElement}
__SERVER : HOBBIT
__NAMESPACE : root\cimv2
__PATH : \\HOBBIT\root\cimv2:Win32_PnPEntity.DeviceID="USB\\VID_074D&PID_3556&MI_00\\8&3B19294B&0&0000"
Availability :
Caption : ZOX DH-60
ClassGuid : {4d36e96c-e325-11ce-bfc1-08002be10318}
CompatibleID : {USB\Class_01&SubClass_01&Prot_00, USB\Class_01&SubClass_01, USB\Class_01}
ConfigManagerErrorCode : 0
ConfigManagerUserConfig : False
CreationClassName : Win32_PnPEntity
Description : Dispositivo de áudio USB
DeviceID : USB\VID_074D&PID_3556&MI_00\8&3B19294B&0&0000
ErrorCleared :
ErrorDescription :
HardwareID : {USB\VID_074D&PID_3556&REV_0006&MI_00, USB\VID_074D&PID_3556&MI_00}
InstallDate :
LastErrorCode :
Manufacturer : (Áudio USB genérico)
Name : ZOX DH-60
PNPDeviceID : USB\VID_074D&PID_3556&MI_00\8&3B19294B&0&0000
PowerManagementCapabilities :
PowerManagementSupported :
Service : usbaudio
Status : OK
StatusInfo :
SystemCreationClassName : Win32_ComputerSystem
SystemName : HOBBIT
Scope : System.Management.ManagementScope
Path : \\HOBBIT\root\cimv2:Win32_PnPEntity.DeviceID="USB\\VID_074D&PID_3556&MI_00\\8&3B19294B&0&0000"
Options : System.Management.ObjectGetOptions
ClassPath : \\HOBBIT\root\cimv2:Win32_PnPEntity
Properties : {Availability, Caption, ClassGuid, CompatibleID...}
SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
Qualifiers : {dynamic, Locale, provider, UUID}
Site :
Container : -
How to list all trusted certificates that I selected to trust from email recipients
Hi,
I'm happy Mac user for not very long, and recently I have bought iPhone 4S, and I'm very happy with it (except the battery life, but this is another question )
When I'm sending mail I like to use certificates in order to sign and encrypt messages with my friend and colleagues. I use this this feature on my Macs and it works great.
I've purchased iPhone, and decided to use this nice feature here as well, and must to say, it also works great. On both (Mac OS X and iOS) you have to install your certificate first, then you can send signed emails. The only difference between Mac OS and iOS regarding this is that if I want to send encrypted messages to my recipients in Mac OS you have just to receive signed e-mail, but in iOS additionally I have to install their certificates manually (receive signed e-mail->tap on sender in Mail->select View certificate->Install certificate). That is additional task, but not too annoying.
Now the question: how can I list all my certificates that I have chosen to trust (i.e. installed certificates)? In Mac OS X I can open Keychain and find all certificates there, but in iPhone I cannot. Even more - if I installed a certificate for the person that is in my contacts, I can view and/or remove certificate only by selecting the e-mail message (not contact from my address book - there is nothing about certificates associated to contact).
Thanks in advance!
BR,
Justas
Make mail safer! Install certificate - it's free!Start by defining "display". Then continue by reading this:
http://forum.java.sun.com/help.jspa?sec=formatting -
How to list all the Fields for an Active Directory Object
How do I list all the fields that an Active Directory object contains? I know the most common ones, but would like to enumerate through all the fields and obtain the type of fields and their values...
Here is my complete code - I only put snippets so that the post was not too huge...
Option Explicit
Const ADS_SCOPE_SUBTREE = 2
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim adoCommand, adoConnection, adoRecordSet
Dim dtmDate, dtmValue
Dim j
Dim lngBias, lngBiasKey, lngHigh, lngLow, lngValue
Dim objADObject, objClass, objDate, objFile, objFSO, objRootDSE, objShell
Dim pathToScript
Dim strAdsPath, strConfig, strDNSDomain, strHex, strItem, strProperty, strValue
Dim strFilter, strQuery
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("Wscript.Shell")
pathToScript = objShell.CurrentDirectory
Set objFile = objFSO.CreateTextFile(pathToScript & "\TestAD.csv")
' Determine Time Zone bias in local registry.
' This bias changes with Daylight Savings Time.
lngBiasKey = objShell.RegRead("HKLM\System\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias")
If (UCase(TypeName(lngBiasKey)) = "LONG") Then
lngBias = lngBiasKey
ElseIf (UCase(TypeName(lngBiasKey)) = "VARIANT()") Then
lngBias = 0
For j = 0 To UBound(lngBiasKey)
lngBias = lngBias + (lngBiasKey(j) * 256^j)
Next
End If
' Determine configuration context and DNS domain from RootDSE object.
Set objRootDSE = GetObject("LDAP://RootDSE")
strConfig = objRootDSE.Get("configurationNamingContext")
strDNSDomain = objRootDSE.Get("defaultNamingContext")
Set adoCommand = CreateObject("ADODB.Command")
Set adoConnection = CreateObject("ADODB.Connection")
adoConnection.Provider = "ADsDSOObject"
adoConnection.Open "Active Directory Provider"
adoCommand.ActiveConnection = adoConnection
adoCommand.CommandText = "SELECT * FROM 'LDAP://" & strDNSDomain & "'WHERE objectClass=user'"
adoCommand.Properties("Page Size") = 1000
adoCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE
Set adoRecordSet = adoCommand.Execute
Set adoRecordSet = adoCommand.Execute
adoRecordSet.MoveFirst
Do Until adoRecordSet.EOF
strAdsPath = adoRecordSet.Fields("ADsPath").Value
' Bind to Active Directory object specified.
Set objADObject = GetObject(strAdsPath)
Set objClass = GetObject(objADObject.Schema)
' Write which object is grabbed from AD
objFile.Write(Replace(strAdsPath, ",", ";;;"))
' Enumerate mandatory object properties.
For Each strProperty In objClass.MandatoryProperties
On Error Resume Next
strValue = objADObject.Get(strProperty)
If (Err.Number = 0) Then
On Error GoTo 0
If (TypeName(strValue) = "String") Or (TypeName(strValue) = "Long") Or (TypeName(strValue) = "Date") Then
objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
ElseIf (TypeName(strValue) = "Byte()") Then
strHex = OctetToHexStr(strValue)
objFile.Write("," & strProperty & "|||" & CStr(strHex))
ElseIf (TypeName(strValue) = "Variant()") Then
For Each strItem In strValue
On Error Resume Next
objFile.Write("," & strProperty & "|||" & Replace(CStr(strItem), ",", ";;;"))
If (Err.Number <> 0) Then
On Error GoTo 0
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
On Error GoTo 0
Next
ElseIf (TypeName(strValue) = "Boolean") Then
objFile.Write("," & strProperty & "|||" & CBool(strValue))
Else
objFile.Write("," & strProperty & "|||Type:" & TypeName(strValue))
End If
Else
Err.Clear
sColl = objADObject.GetEx(strProperty)
If (Err.Number = 0) Then
For Each strItem In sColl
objFile.Write("," & strProperty & "|||" & CStr(strItem))
If (Err.Number <> 0) Then
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
Next
On Error GoTo 0
Else
Err.Clear
Set objDate = objADObject.Get(strProperty)
If (Err.Number = 0) Then
lngHigh = objDate.HighPart
If (Err.Number = 0) Then
lngLow = objDate.LowPart
If (lngLow < 0) Then
lngHigh = lngHigh + 1
End If
lngValue = (lngHigh * (2 ^ 32)) + lngLow
If (lngValue > 120000000000000000) Then
dtmValue = #1/1/1601# + (lngValue / 600000000 - lngBias) / 1440
On Error Resume Next
dtmDate = CDate(dtmValue)
If (Err.Number <> 0) Then
objFile.Write("," & strProperty & "|||<Never>")
Else
objFile.Write("," & strProperty & "|||" & CStr(dtmDate))
End If
Else
objFile.Write("," & strProperty & "|||" & FormatNumber(lngValue, 0))
End If
Else
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
Else
On Error GoTo 0
objFile.Write("," & strProperty)
End If
On Error GoTo 0
End If
End If
Next
' Enumerate optional object properties.
For Each strProperty In objClass.OptionalProperties
On Error Resume Next
strValue = objADObject.Get(strProperty)
If (Err.Number = 0) Then
On Error GoTo 0
If (TypeName(strValue) = "String") Then
objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
ElseIf (TypeName(strValue) = "Long") Then
objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
ElseIf (TypeName(strValue) = "Date") Then
objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
ElseIf (TypeName(strValue) = "Byte()") Then
strHex = OctetToHexStr(strValue)
objFile.Write("," & strProperty & "|||" & CStr(strHex))
ElseIf (TypeName(strValue) = "Variant()") Then
For Each strItem In strValue
On Error Resume Next
objFile.Write("," & strProperty & "|||" & Replace(CStr(strItem), ",", ";;;"))
If (Err.Number <> 0) Then
On Error GoTo 0
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
On Error GoTo 0
Next
ElseIf (TypeName(strValue) = "Boolean") Then
objFile.Write("," & strProperty & "|||" & CBool(strValue))
Else
objFile.Write("," & strProperty & "|||Type:" & TypeName(strValue))
End If
Else
Err.Clear
sColl = objADObject.GetEx(strProperty)
If (Err.Number = 0) Then
For Each strItem In sColl
objFile.Write("," & strProperty & "|||" & CStr(strItem))
If (Err.Number <> 0) Then
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
Next
On Error GoTo 0
Else
Err.Clear
Set objDate = objADObject.Get(strProperty)
If (Err.Number = 0) Then
lngHigh = objDate.HighPart
If (Err.Number = 0) Then
lngLow = objDate.LowPart
If (lngLow < 0) Then
lngHigh = lngHigh + 1
End If
lngValue = (lngHigh * (2 ^ 32)) + lngLow
If (lngValue > 120000000000000000) Then
dtmValue = #1/1/1601# + (lngValue / 600000000 - lngBias) / 1440
On Error Resume Next
dtmDate = CDate(dtmValue)
If (Err.Number <> 0) Then
objFile.Write("," & strProperty & "|||<Never>")
Else
objFile.Write("," & strProperty & "|||" & CStr(dtmDate))
End If
Else
objFile.Write("," & strProperty & "|||" & lngValue)
End If
Else
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
Else
On Error GoTo 0
objFile.Write("," & strProperty & "||| ")
End If
On Error GoTo 0
End If
End If
Next
objFile.WriteLine("")
adoRecordSet.MoveNext
Loop
objFile.Close
' Function to convert OctetString (Byte Array) to a hex string.
Function OctetToHexStr(arrbytOctet)
Dim k
OctetToHexStr = ""
For k = 1 To Lenb(arrbytOctet)
OctetToHexStr = OctetToHexStr _
& Right("0" & Hex(Ascb(Midb(arrbytOctet, k, 1))), 2)
Next
End Function
I have been able to obtain all the Computer, Contact, Group and OU objects without issue with this code... -
How to list all user's "followed" count?
Dear all,
I need to genearate a report to list all user's Followed items count.
I found follow REST API:
http://msdn.microsoft.com/en-us/library/dn194080.aspx#bk_FollowedCount
By using "My/followedcount", I can get current user's count of items he or she followed. It is exactly what I need. But I need to list all users' "following count". How can I do it?
Thank you for any input.
MarkHi Mark Lui,
Please check the code sample in below article, whether it is working in your scenario, it is using the client object model to get the specified user’s followed content, to get all users’ following content, please first iterate users information, then use
this to get followed count:
How to get Count and List of documents and sites followed by a User in Office 365 SharePoint 2013 Site using CSOM:
http://sundarnarasiman.net/?p=186
Thanks,
Qiao Wei
TechNet Community Support
Maybe you are looking for
-
I have a brand new MacBook Pro and I'm trying to connect to the private wifi at my house however, I need the IP address. Everywhere I go to find it, the adress is blank. What do I do ?
-
Missing Fonts in my inDesign file...
Just recently completed an inDesign file, but it is telling me it has missing fonts. The file was originally started in CS4 by a coworker and completed by me in CS5. I'm confused because the fonts show up in the file, but still are classified as mi
-
HT4528 how do i download music into my itunes account?
How do i download music off my computer into my itunes account?
-
Tax Category Indicator on Asset Reconciliation Accounts
Does setting the tax indicator flag to '*' have any affect on reconciliation postings to an Asset Reconciliation account?
-
Add array to report without timestamp
Hello, I'm trying to use the Report Generation Toolkit for Office to form my excel report. I have an excel template which I am accessing via the Report Generation vi in order to pass a 2d array of doubles. The array is passed into the report, howeve