Issue in looping through drives and servers

I'm trying to write a script which scan through all the drives and find old files with specific extension on the list of servers which I pass in servers.txt. Please find below the errors and the script which I executed. Can anyone suggest 1) why it is checking
in my local desktop drive rather than server listed in servers.txt.2) How to pass a value to a variable :$diskname="\\$strComputer$\$disk$"
Error Message 
starting
Cannot find an overload for "op_Subtraction" and the argument count: "2".
At C:\Documents\oldfiles_new.ps1:29 char:25
+    $time = ((Get-Date) - <<<<  $file.CreationTime).Days 
    + CategoryInfo          : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodCountCouldNotFindBest
\\.$\\\local_host\root\cimv2:Win32_LogicalDisk.DeviceID="D:"$
Compiling list, this could take a while.
Get-ChildItem : Illegal characters in path.
At C:\Documents\oldfiles_new.ps1:25 char:23
+ $files = get-childitem <<<<  $diskname -Include *.trn,*.bak -recurse  
    + CategoryInfo          : InvalidArgument: (\\.$\\\ACWIN-MG....DeviceID="D:"$:String) [Get-ChildItem], ArgumentException
    + FullyQualifiedErrorId : ItemExistsArgumentError,Microsoft.PowerShell.Commands.GetChildItemCommand
Script which I executed:
function oldfiles {
Param( 
    [alias("f")] 
    $outfile, 
    [alias("a")] 
    $maxage, 
    [alias("d")] 
    [string] $strComputer) 
#If a parameter was not specified, set a defualt 
if (!($strComputer)) {$strComputer = "."} 
if (!($outfile)) {$outfile = "C:\Documents\oldfiles.csv"} 
if (!($maxage)) {$maxage = 10} 
#param( [string] $strComputer) 
    # Get the Disks for this computer
    $colDisks = get-wmiobject Win32_LogicalDisk -computername $strComputer -Filter "DriveType = 3"
foreach ($disk in $colDisks) {
$diskname="\\$strComputer$\$disk$"
$diskname
Write-host "Compiling list, this could take a while." 
$files = get-childitem $diskname -Include *.trn,*.bak -recurse  
"File Name `t Age in Days " | out-file $outfile 
write-host "starting" 
foreach ($file in $files) { 
   $time = ((Get-Date) - $file.CreationTime).Days 
#$totalSize = {($file).Length -gt 5kb }
   if ($time -gt $maxage -and $file.PSiSContainer -ne $True) {"$($file.FullName) `t $time `t" | out-file -Append $outfile}  
foreach ($computer in cat C:\Documents\servers.txt) {oldfiles $strcomputer}
Any help would be appreciated
Thanks

This will get you close but it will take forever to run.
function oldfiles{
Param(
$outfile='C:\Documents\oldfiles.csv',
$maxage=10,
[string]$computer=$env:COMPUTERNAME
$date=[DateTime]::Today
$colDisks=get-wmiobject Win32_LogicalDisk -computername $computer -Filter 'DriveType = 3'
foreach ($disk in $colDisks){
$driveletter=$disk.DeviceID.Split(':')[0]
$diskname="\\$computer\$driveletter$"
Write-host 'Compiling list, this could take a while.'
$files = get-childitem $diskname -Include *.trn,*.bak -recurse
"File Name `t Age in Days " | out-file $outfile
write-host "starting"
foreach ($file in $files) {
$time = ($date- $file.CreationTime).Days
if ($time -gt $maxage){
"$($file.FullName) `t $time `t" | out-file -Append $outfile
foreach ($computer in (cat C:\Documents\servers.txt)){
oldfiles $computer
¯\_(ツ)_/¯

Similar Messages

  • Looping through folders and subfolders

    Hi,
    I'm about to create a script to check some tifs and jpgs for the right height and width, resolution and so on.
    I could get it to work if I see the files in the content panel (looping through the files by app.document.getSelection ...
    The script needs to check many files in different subfolders (all in one parent folder), so I don't like to use a collection to reveal all files of all subfolders first and then start the script.
    My plan is to choose the parent folder in the folder panel and the script should  loop through each file of each subfolder ...
    So maybe there's someone who knows a solution for this problem, it would be great!
    Thanks a lot,
    Sebastian.

    Wow,
    That was fast, I'll test it tommorow in the morning, thanks a lot so far!
    Hopefully I'll be able to get our scripts together...
    Thanks
    Sebastian
    Am 05.08.2012 um 20:13 schrieb Paul Riggott <[email protected]>:
    Re: looping through folders and subfolders
    created by Paul Riggott in Bridge Scripting - View the full discussion
    This should get you started...
    #target bridge  
    var folders =[];
    folders = FindAllFolders(Folder(app.document.presentationPath), folders);
    folders.unshift(Folder(app.document.presentationPath));
    for(var a in folders){
    var fileList = folders[a].getFiles(/\.(jpg|tif)$/i);
    for(var p in fileList){
    var thumb = new Thumbnail(fileList[p]);
    var height = thumb.core.quickMetadata.height;
    var width = thumb.core.quickMetadata.width;
    var Resolution = thumb.core.quickMetadata.xResolution;
    if(Resolution ==0) Resolution =72;
    //do your processing here
    //$.writeln(decodeURI(thumb.spec) + "," + height + "," + width + "," + Resolution);
    function FindAllFolders( srcFolderStr, destArray) {
    var fileFolderArray = Folder( srcFolderStr ).getFiles();
    for ( var i = 0; i < fileFolderArray.length; i++ ) {
      var fileFoldObj = fileFolderArray[i];
      if ( fileFoldObj instanceof File ) {  
      } else {
             destArray.push( Folder(fileFoldObj) );
      FindAllFolders( fileFoldObj.toString(), destArray );
    return destArray;
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4599891#4599891
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4599891#4599891. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Bridge Scripting by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Drive Partition causing issues after new hard drive and recovery disks installed

    I have an HP Pavilion Media Center PC m7640n running Windows XP Media Center Edition.
    My hard drive failed and I had a computer guy install a 1 TB Hard drive as well as additional memory.  I purchased the recovery disks and he installed everything for me.  I have two issues:
    1.  After updating to XP Service Pack 3 and all other Windows recommended upgrades the computer deleted all my drivers and would not "plug and play" install anything.  I had the computer guy back to fix this--he did get all my drivers to work, but when I plug in anything new for the first time (such as my iPad), I have to go into the device manager and manually update the drivers.  The computer doesn't recognize it and automatically prompt me to install it.
    2.  The hard drive partition defaulted to my C drive being very small and my D drive being large.  Since software usually defaults to the C drive for installation, I quickly ran out of space.  I had the computer guy back and he programmed something so that everything now defaults to the D drive.  Unfortunately all my program files (including Microsoft Office) are still on my C drive including everything I put on my desktop.  My C drive is now full.
    Here is an example:  iTunes shows that it is defaulting to the D drive for anything I load into it.  Yet I tried to download the new operating system for my iPad and it said my hard drive was full.  When I did a file search to see what files had changed in the last week, it shows iTunes on my C drive (and my D drive).  Yet all the files that were "changed" due to my upgrade were defaulting to the C drive, even though in the setting in iTunes it shows it should be saving to the D drive.
    D:\Documents and Settings\My Music\iTunes\iTunes Media
    Is there an easy way to fix these issues?  I've already spent more than I anticipated when I chose to rebuild this computer vs buying a new one.  Now I'm regretting the decision and I'd like to try and fix this myself and not pay my computer guy to come back at $90/hour.
    Thanks!

    Here are the original specs of your computer. The specs state that the original hard drive was 320GB. You have since replaced the factory drive with a 1TB (1000GB) hard drive. The HP recovery routine seems to have issues with hard drives that deviate from the original size. The partition issues you are experiencing may be a result of this. As for the rest of your issues, it sounds like the SP3 install went bad.
    If I were you, I would consider reinstalling the OS using your recovery discs by doing a complete "destructive" reinstall/recovery. Afterward, I would post the size of both the c: and d: partitions... and go from there.
    Frank
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • How to Loop through App and finding popup Windows

    Does anyone know how to loop through the app and find any
    popup windows..

    I guess application by default creates a SystemManager
    object... So i used
    this.systemManager.popUpChildren.numChildren and it gives me
    0 all the time.. even though I have instances of windows to the
    app.. According to the documentation this should give you the
    number of popup children but it doesn't.. Any more ideas?

  • Looping through Collection and getting ConcurrentModificationException

    I'm trying to loop through a collection to delete some objects referenced by that collection but keep coming up against a ConcurrentModificationException.
    BwView view = svci.getViewsHandler().find("Lists");
                  Collection<BwSubscription> subarr = new TreeSet<BwSubscription>();
                  subarr = svci.getSubscriptionsHandler().getAll();  
                  if (subarr == null) {
                       logger.info("Its not working");
                  for (BwSubscription sub: subarr) {
                       logger.info("Removing subs " + sub);
                       svci.beginTransaction();
                       svci.getSubscriptionsHandler().delete(sub);
                       logger.info("Deleting calendars :" + sub);
                       svci.endTransaction();
                 The loop is allowing me to delete the first entry but then fails with the exception.
    I have tried with a generic loop but this doesn't initialise the sub entity so the loop fails and is ignored leading to problems later in the code.
    BwView view = svci.getViewsHandler().find("Lists");
                  BwSubscription[] subarr = (BwSubscription[])view.getSubscriptions().toArray(new BwSubscription []{});
                  if (subarr == null) {
                       logger.info("Its not working");
                  for (int i=subarr.length - 1; i>=0; i--) {
                       sub = subarr;
                   logger.info("Removing subs " + sub);
                   svci.beginTransaction();
                   svci.getSubscriptionsHandler().delete(sub);
                   logger.info("Deleting calendars :" + sub);
                   svci.endTransaction();
    Sub is either not initialised or gets initialised as 0 causing an ArrayIndexOutofBoundsException. I'd be grateful for some advice on getting the code to loop correctly.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    While iterating over a collection (using its iterator), a ConcurrentModificationException will be thrown if the collection is modified, except if it is modified using the iterator itself.. The enhanched for-loop you're using is iterating over the collection by implicitly using an Iterator. To do what you want, make the Iterator explicit (change the enhanced for-loop to a while loop) and then use iterator.remove().

  • Loop through select and create cursor

    Is it possible to create a cursor after looping through a select?
          FOR TEST IN
            SELECT *
              FROM SOMETABLE
             WHERE SOMEID > 100
           ) LOOP
              IF TEST.NAME = 'AB' THEN
                   --CREATE CURSOR AND LOAD DATA
                   --LOAD TEST.ID, TEST.NAME, TEST.ADATE INTO NEW CURSOR
              END IF;
           END LOOP;     This is just a sample not the actual scenario.

    SeshuGiri wrote:
    Is it possible to create a cursor after looping through a select?Yes. But is also usually the wrong thing to do.
    A cursor loop within another cursor loop is known as a nested loop join in SQL. The SQL language is perfectly able to do joins like that. And far better and faster. It has a very clever optimiser and has more sophisticated algorithms than just a nested loop, for joining data sets.
    The sample code you've posted shows a very old 80's style Cobol approach to processing ISAM files or magnetic tape. In a row-by-row fashion.
    This approach does not scale in the modern database, where the SQL language is a data set processing language - and not an I/O interface for merely reading a record/row and writing a record/row as we did in the 80's with file-based data records.
    The basic approach to Oracle is: Maximise SQL. Minimise PL/SQL (Java/etc).
    This means using the very flexible, incredibly powerful, SQL language first and foremost to crunch database data. And only when the processing is beyond the capability of the SQL language alone, employ PL/SQL. Else restrict PL/SQL to managing only the process flow and error handling of SQL language statements.

  • Looping through elements and assigning the proper attributes

    So I'm trying to loop through all my xml elements. I then
    want to loop through an element and an elements child and all
    attributes assigned inside. Does this make sense, I hope so? This
    is for an on going Cascading menu I have been building. So
    basically every element inside an element would be a submenu of a
    menu. Here is what I have....

    Okay. Much better subject line this time. :)
    You apparently know what a factorial is. You need to multiply the input by all numbers less than it (except for special case of 0! [but, then, you tell them to enter a number between 1 and 12]).
    You don't want your loop to be "while (true)". You can either start at 1 and work your way up to the input number, or start at the input number and work your way down. You may want a 'for' loop instead of a 'while' loop.
    In this (and most cases), think about how you would calculate factorials manually. Write it down in English. Then, translate it to code.
    You've been working on factorials for a while now. You haven't found the algorithm yet?

  • [SOLVED] Having Issues with the Nouveau Driver and ACPI

    Hello,
    Trying to set up an old laptop I have with Arch and I'm having issues getting X up and running. My graphics chip is:
    01:00.0 VGA compatable controller: nVidia Corporation NV11 [GeForce2 Go] (rev b2)
    I've installed xf86-video-nouveau and get the following error when starting X:
    (EE) [drm] failed to open device
    (EE) No devices detected.
    From what I understand, I need the nouveau-drm package installed, which no longer exists in the repos. The nouveau-drm-lts package gives dependency errors:
    warning: cannot resolve "kernel26-lts>=2.6.32", a dependency of "nouveau-drm-lts"
    warning: cannot resolve "kernel26-lts<2.6.33", a dependency of "nouveau-drm-lts"
    Seems this is because those packages are no longer named "kernel" but "linux" instead.
    I've also tried using the proprietary nvidia driver, but I need the legacy 93xx driver, which the nvidia page in the Arch Wiki states it does not support Xorg 1.11.
    Last edited by Pres (2012-02-05 03:31:14)

    Went ahead and installed nouveau back to get an Xorg log. Here it is (though I'm getting a new error now):
    [ 51.572]
    X.Org X Server 1.11.4
    Release Date: 2012-01-27
    [ 51.573] X Protocol Version 11, Revision 0
    [ 51.573] Build Operating System: Linux 3.2.2-1-ARCH i686
    [ 51.573] Current Operating System: Linux Arch-2650 3.2.2-1-ARCH #1 SMP PREEMPT Thu Jan 26 08:28:27 UTC 2012 i686
    [ 51.574] Kernel command line: root=/dev/disk/by-uuid/1e766bce-dde5-4a31-9549-36b82bcd1157 acpi=off ro
    [ 51.574] Build Date: 29 January 2012 03:41:53PM
    [ 51.574]
    [ 51.574] Current version of pixman: 0.24.2
    [ 51.574] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 51.575] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 51.576] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Feb 1 17:38:43 2012
    [ 51.634] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [ 51.675] (==) No Layout section. Using the first Screen section.
    [ 51.675] (==) No screen section available. Using defaults.
    [ 51.675] (**) |-->Screen "Default Screen Section" (0)
    [ 51.675] (**) | |-->Monitor "<default monitor>"
    [ 51.696] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
    [ 51.696] (**) | |-->Device "nouveau"
    [ 51.696] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
    [ 51.696] (==) Automatically adding devices
    [ 51.696] (==) Automatically enabling devices
    [ 51.757] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
    [ 51.757] Entry deleted from font path.
    [ 51.757] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
    [ 51.757] Entry deleted from font path.
    [ 51.757] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    [ 51.757] Entry deleted from font path.
    [ 51.757] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    [ 51.757] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    [ 51.757] Entry deleted from font path.
    [ 51.757] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    [ 51.757] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/
    [ 51.757] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 51.757] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
    [ 51.768] (II) Loader magic: 0x8228580
    [ 51.769] (II) Module ABI versions:
    [ 51.769] X.Org ANSI C Emulation: 0.4
    [ 51.769] X.Org Video Driver: 11.0
    [ 51.769] X.Org XInput driver : 13.0
    [ 51.769] X.Org Server Extension : 6.0
    [ 51.770] (--) PCI:*(0:1:0:0) 10de:0112:1028:00f3 rev 178, Mem @ 0xe0000000/16777216, 0xf0000000/134217728, BIOS @ 0x????????/65536
    [ 51.770] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    [ 51.770] (II) Open APM successful
    [ 51.770] (II) LoadModule: "extmod"
    [ 51.797] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
    [ 51.809] (II) Module extmod: vendor="X.Org Foundation"
    [ 51.809] compiled for 1.11.4, module version = 1.0.0
    [ 51.809] Module class: X.Org Server Extension
    [ 51.809] ABI class: X.Org Server Extension, version 6.0
    [ 51.809] (II) Loading extension MIT-SCREEN-SAVER
    [ 51.809] (II) Loading extension XFree86-VidModeExtension
    [ 51.809] (II) Loading extension XFree86-DGA
    [ 51.809] (II) Loading extension DPMS
    [ 51.809] (II) Loading extension XVideo
    [ 51.809] (II) Loading extension XVideo-MotionCompensation
    [ 51.809] (II) Loading extension X-Resource
    [ 51.809] (II) LoadModule: "dbe"
    [ 51.810] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
    [ 51.815] (II) Module dbe: vendor="X.Org Foundation"
    [ 51.815] compiled for 1.11.4, module version = 1.0.0
    [ 51.815] Module class: X.Org Server Extension
    [ 51.815] ABI class: X.Org Server Extension, version 6.0
    [ 51.815] (II) Loading extension DOUBLE-BUFFER
    [ 51.815] (II) LoadModule: "glx"
    [ 51.815] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 51.844] (II) Module glx: vendor="X.Org Foundation"
    [ 51.844] compiled for 1.11.4, module version = 1.0.0
    [ 51.844] ABI class: X.Org Server Extension, version 6.0
    [ 51.845] (==) AIGLX enabled
    [ 51.845] (II) Loading extension GLX
    [ 51.845] (II) LoadModule: "record"
    [ 51.845] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
    [ 51.846] (II) Module record: vendor="X.Org Foundation"
    [ 51.846] compiled for 1.11.4, module version = 1.13.0
    [ 51.846] Module class: X.Org Server Extension
    [ 51.846] ABI class: X.Org Server Extension, version 6.0
    [ 51.846] (II) Loading extension RECORD
    [ 51.846] (II) LoadModule: "dri"
    [ 51.847] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
    [ 51.857] (II) Module dri: vendor="X.Org Foundation"
    [ 51.857] compiled for 1.11.4, module version = 1.0.0
    [ 51.857] ABI class: X.Org Server Extension, version 6.0
    [ 51.857] (II) Loading extension XFree86-DRI
    [ 51.857] (II) LoadModule: "dri2"
    [ 51.857] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
    [ 51.858] (II) Module dri2: vendor="X.Org Foundation"
    [ 51.858] compiled for 1.11.4, module version = 1.2.0
    [ 51.858] ABI class: X.Org Server Extension, version 6.0
    [ 51.858] (II) Loading extension DRI2
    [ 51.858] (II) LoadModule: "nouveau"
    [ 51.859] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
    [ 51.875] (II) Module nouveau: vendor="X.Org Foundation"
    [ 51.875] compiled for 1.11.3, module version = 0.0.16
    [ 51.875] Module class: X.Org Video Driver
    [ 51.875] ABI class: X.Org Video Driver, version 11.0
    [ 51.875] (II) NOUVEAU driver
    [ 51.875] (II) NOUVEAU driver for NVIDIA chipset families :
    [ 51.875] RIVA TNT (NV04)
    [ 51.875] RIVA TNT2 (NV05)
    [ 51.875] GeForce 256 (NV10)
    [ 51.875] GeForce 2 (NV11, NV15)
    [ 51.875] GeForce 4MX (NV17, NV18)
    [ 51.875] GeForce 3 (NV20)
    [ 51.876] GeForce 4Ti (NV25, NV28)
    [ 51.876] GeForce FX (NV3x)
    [ 51.876] GeForce 6 (NV4x)
    [ 51.876] GeForce 7 (G7x)
    [ 51.876] GeForce 8 (G8x)
    [ 51.876] GeForce GTX 200 (NVA0)
    [ 51.876] GeForce GTX 400 (NVC0)
    [ 51.876] (--) using VT number 7
    [ 51.901] drmOpenDevice: node name is /dev/dri/card0
    [ 52.076] [drm] failed to load kernel module "nouveau"
    [ 52.076] (EE) [drm] failed to open device
    [ 52.076] (EE) No devices detected.
    [ 52.076]
    Fatal server error:
    [ 52.076] no screens found
    [ 52.076]
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    [ 52.076] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    [ 52.076]
    Seems the important line here is:
    [ 52.076] [drm] failed to load kernel module "nouveau"
    "modprobe nouveau" gives:
    ERROR: could not insert 'wmi': No such device
    Don't remember getting that error before. Nouveau would load fine.

  • Satellite Pro L500-12E - Issue with CD/DVD drive and display

    Hello...
    I have some questions about my laptop..
    1. Is it normal that on some DVD/CD's the DVD rom it very loud and vibrates a lot, spesialy on older CD's..
    2.The cover/lid of my laptop when i close it its kinda not in line with the rest of the pc it is not totaly alligned but its kinda hard to see expect when you look for it..but its properly on and its not lose or anything just not alinged to the "body" of the laptop
    3.The lid again, Underneath the screen where the lid is mounted to the "body" off the laptop if.. it is not glued to the screen like the rest of the edges its just putted next to it you can drag in it so you can see the wires going into the screen etc
    is that normal?
    -thanks

    1 I can imagine that CDs/DVDs are louder. Maybe are they a little bit out of shape and by spinning you can notice some vibrations. Be sure the discs are placed properly into optical disc drive.
    2 It is not easy to discuss about it without some picture but I don't think it is some serious issue.
    3 What you see is probably cable for WLAN antenna. WLAN antenna is placed behind the LCD.
    I cannot confirm this is normal or not normal because I don't have L500 but if you want to have professional opinion visit nearest Toshiba service and show what do you mean exactly.
    For me all this don't sound as some serious issues or hardware problems.

  • How to loop through dates and return a list of dates?

    hi,
    thank you all for your help my all my oracle endaevors so far:)
    I was going through PL/SQL Programming book by Oracle Press, but overall wasnt able to find the answer for the following.
    I have a list of shops, simple: shop_name (table), date_holiday (table) that lets me keep dates that certain shop is closed.
    example: shopID = 10
    shopID 10
    date_holiday 12/31/2009
    shopID 10
    date_holiday 1/1/2009
    now, what I am trying to achieve is I am trying to get the list of days (formatted as MM/DD/YYYY, but thats not biggy) starting today and ending up in 3 months from now that will EXCLUDE all the holidays, example
    select date_open ...... where shopID = 10;
    [starting today]
    12/29/2009
    12/30/2009
    1/2/2010
    1/3/2010
    [ending 3 months from today]
    any simple ways or ideas that may help?
    thank you!

    somehow like this
    select :the_shop shopid,the_day date_open
      from (select the_day,date_holiday
              from (select trunc(sysdate) + level the_day
                      from dual
                    connect by level <= add_months(trunc(sysdate),3) - trunc(sysdate)
                   ) d,
                   (select date_holiday
                      from holday_table
                     where shopid = :the_shop
                   ) h
             where the_date = date_holiday(+)
           (select nvl2(location_open1,'open,','mon,')||
                   nvl2(location_open2,'open,','tue,')||
                   nvl2(location_open3,'open,','wed,')||
                   nvl2(location_open4,'open,','thu,')||
                   nvl2(location_open5,'open,','fri,')||
                   nvl2(location_open6,'open,','sat,')||
                   nvl2(location_open7,'open,','sun') location_not_open
              from locations
             where locationid = (select shopid
                                   from shops
                                  where shopid = :the_shop
    where instr(location_not_open,to_char(the_day,'dy')) = 0
        or date_holiday is nullRegards
    Etbin

  • Loop through xml and update the value

    I have the following xml table. I need to update the Field which name="data"
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Root name="xyz">
    <Row id="1">
    <Field name="data">456</Field>
    <Field name="time">2005-02-08 10:43:51</Field>
    </Row>
    <Row id="2">
    <Field name="data">123</Field>
    <Field name="time">2005-02-08 10:43:16</Field>
    </Row>
    </Root>
    After update, the table should look like this
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Root name="xyz">
    <Row id="1">
    <Field name="data">abc</Field>
    <Field name="time">2005-02-08 10:43:51</Field>
    </Row>
    <Row id="2">
    <Field name="data">edf</Field>
    <Field name="time">2005-02-08 10:43:16</Field>
    </Row>
    </Root>
    How do I update the value through java program? I do not want to load the data to database to update the value. The constrain is that i must have the value updated in java application before I loaded it to the database.
    Please any advise?
    Thank you!

    Use a DOM parser to parse the xml document...you will get a Document object, which you can use XPath or traverse the DOM tree and perform the updating.

  • Loop through layers and determine if its a text containing layer

    Hi,
    I am trying to loop/iterate through all layers, determine if it's a "text-layer", if it is, set it's opacity to 0.
    This is what I have so far:
    var iapp = new Illustrator.Application();
    var openoptions = new Illustrator.OpenOptions();
    var idoc = iapp.Open("c:\\myFile.pdf", Illustrator.AiDocumentColorSpace.aiDocumentRGBColor, openoptions);
    Illustrator.Layer mainlayer = idoc.Layers["Layer 1"];
    foreach (Illustrator.GroupItem groupitem in idoc.GroupItems)
    foreach (Illustrator.GroupItem item in groupitem.GroupItems)
    /* determine here if its a textlayer */
    if( ... ) // (item.TextFrames.Count > 0) perhaps?
    item.Opacity = 0;
    //item.Opacity = 15; //this indeed sets the layer opacity 15

    Is that VB? Does your soloution need to be too?
    #target illustrator
    textLayersOff();
    function textLayersOff() {
              var doc = app.activeDocument;
              for ( var i = 0; i < doc.layers.length; i++ ) {
                        if ( doc.layers[i].textFrames.length > 0 ) { doc.layers[i].opacity = 0; };
    This would check for text frames NOT their content… if any

  • Loop through header and item internal table

    Hi,
        My scenario will be like this, i have two internal tables which is populated based on certain conditions, now i have to call one bapi to update values that am going to store values in a tree structure say for eg mat01 is header and mat02 and mat03 are item values.
          What is the efficient method to call that bapi one time for header creation and consequte times for item creation respectively.
      shall i have to loop thro two internal tables i.e header and item?
    suggestions are welcomed from the experts...
    Thanks in advance...
    Regards,
    Babu

    Hi Babu
    you can do something like that.
    loop it_header.
    *Call bapi to create header
      loop it_item where field_key = it_header-field_key.
    *  Call bapi to create item  
      endloop.
    endloop.
    The important part is the where sentence in the second loop.
    Regards
          David N.

  • Loop through month and year till date while using a merge statement

    Hello Guys,
    I have 2 tables with the following datas in them:-
    Company
    CompanyId CompanyName
    1                 Company1
    2                 Company2
    3                 Company3
    Employees
    EmployeeId EmployeeName CompanyId StartDate
    1                  Employee1        1                 12/21/2011
    2                  Employee2        1                 01/20/2012
    3                  Employee3        2                 03/23/2012
    4                  Employee4        2                 07/15/2012
    5                  Employee5        2                 01/20/2013
    6                  Employee6        3                 12/17/2013
    Now i want to check, How many people were recruited in the team in the specified month and year? I have the storage table as follows:-
    RecruiterIndicator
    CompanyId Year Month EmployeeRecruited
    1                 2011 12      1
    1                 2012 1        1
    2                 2012 3        1
    2                 2012 7        1
    2                 2013 1        1
    3                 2013 12      1
    This should be a merge stored procedure that should update the data if it is present for the same month year and company and insert if that is not present?
    Please help me with this
    Thanks
    Abhishek

    It's not really clear where the merge to come into play. To get the RecruiterIndicator table from Employess, this query should do:
    SELECT CompanyId, Year(StartDate), Month(StartDate), COUNT(*)
    FROM   Employees
    GROUP  BY CompanyId, Year(StartDate), Month(StartDate)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Developing through Databases and servers

    Is it possible to have the basic information for the app on a database and link it to the app (written in VB) using a server? If so, how? 
    This is rather than typing loads of pages and instead can reduce the size of the app and have less frequent updates.

    You will have to host a WCF Service on our server where you have database. And you can consume WCF Service from Windows Phone.
    http://www.dotnetcurry.com/showarticle.aspx?ID=501
    http://www.c-sharpcorner.com/UploadFile/UrmimalaPal/creating-a-windows-phone-7-application-consuming-data-using-a-wcf-service/
    http://prathapk.net/consuming-wcf-service-in-windows-phone-application/
    You can use C# to VB.NET Converter to convert C# code to VB.NET 
    http://converter.telerik.com/
    Gaurav Khanna | Microsoft VB.NET MVP | Microsoft Community Contributor

Maybe you are looking for

  • Problems having my iCloud account on Mail (with Snow Leopard)!

    I have contacted apple store, apple office in Norway and went on chat with MobileMe support, but so far, I am not able to have my iCloud again on my MAIL since it disappeared yesterday. I am a bit upset and it would be great if there is any solution

  • Some characters not displaying :/

    I have a text box in wich I import an external txt file. Everything seemed to be working fine including url encoding things like &, @, % etc. But when I want to use something like an ö, ï, é or something like that the character turns up as a diamond

  • Ipod touch video to Burn to dvd?

    I'm a teacher and I need to use my IPOD touch to video my class. Can I burn such a video to a DVD? and How?

  • Responding to a Notification that was previously responded to

    I am having a problem with Workflow not sending out a notification if someone tries to respond to a notification that has already been responded to. The workflow documentation says that "If you send an invalid response, the Notification System sends

  • No paravirtualized guest systems are running on OVM Server

    Hello all, i have some problems to run a opensuse11 oder SLES10 same as debian4 as paravirtualized system on Oracle VM Server. (fullvirtualized systems run nicely) if i try creating paravirt. guest with VM manager the same error is printed as trying