Add several different nodes from one xmltype to another

Hello

Given the two following bits of XML:

< root >
< xmlnode >
val1 < subnode1 > < / subnode1 >
val2 < subnode2 > < / subnode2 >
< / xmlnode >
< xmlnode >
val3 < subnode1 > < / subnode1 >
< subnode2 > val4 < / subnode2 >
< / xmlnode >
< / root >

< a >
< b > < /b > valb
valc < c >/< c >
< d >
vald1 < d1 > < / d1 >
< d2 > vald2 < / d2 >
/ < d: >
Vale of < e > < /e >
valf < f > < /f >
< g >
valg1 < g1 > < / g1 >
valg2 < g2 > < / g2 >
/ < g >
< h >
valh1 < h1 > < / h1 >
valh2 < h2 > < / h2 >
< HR >
< /a >

I need to insert a few nodes of the second xml in a new node at the top of the first xml, as follows:

< root >

< InfosSuppl >

< b > < /b > valb

< d >

vald1 < d1 > < / d1 >

< d2 > vald2 < / d2 >

/ < d: >

valf < f > < /f >

< h >

valh1 < h1 > < / h1 >

valh2 < h2 > < / h2 >

< HR >

< / extrainfo >

< xmlnode >

val1 < subnode1 > < / subnode1 >

val2 < subnode2 > < / subnode2 >

< / xmlnode >

< xmlnode >

val3 < subnode1 > < / subnode1 >

< subnode2 > val4 < / subnode2 >

< / xmlnode >

< / root >

At the time I thought that I had to only add a few nodes (eg. b and f), I used:

with sample_data as (select xmltype ("< root >

< xmlnode >

val1 < subnode1 > < / subnode1 >

val2 < subnode2 > < / subnode2 >

< / xmlnode >

< xmlnode >

val3 < subnode1 > < / subnode1 >

< subnode2 > val4 < / subnode2 >

< / xmlnode >

(< / root > ') xml_to_update,.

XmlType ("< a >

< b > < /b > valb

valc < c >/< c >

< d >

vald1 < d1 > < / d1 >

< d2 > vald2 < / d2 >

/ < d: >

Vale of < e > < /e >

valf < f > < /f >

< g >

valg1 < g1 > < / g1 >

valg2 < g2 > < / g2 >

/ < g >

< h >

valh1 < h1 > < / h1 >

valh2 < h2 > < / h2 >

< HR >

(< /a > ') xml_to_extract_from

the double)

Select sd.xml_to_update,

SD.xml_to_extract_from,

insertXMLbefore (sd.xml_to_update,

"/ root/xmlnode [1]."

XmlType ("< extrainfo > ' |")

"< b >" |

ExtractValue (sd.xml_to_extract_from, ' / a/b / text () ').

"< /b > < f >" |

ExtractValue (sd.xml_to_extract_from, ' / a/f / text () ').

' / f <>|

((/ extrainfo > ')) updated_xml

of sample_data sd;

that worked, but I now need to add several other knots, I don't think that is the wisest way to continue to use. I tried Googling and forum searching but my search-fu must be low today, because I have not found similar examples that I can copy base my solution to. I'm sure that there is a funky way of doing it using xquery or something, but I admit not having a clue about where to start even with xquery!

We are on 11.2.0.3, and the xmltype columns are stored as a CLOB (sorry Marco Gralike!).

Can anyone help point me in the right direction please?

Hello

Using XQuery Update:

SQL > with sample_data like)

2 Select xmltype (')

3

4                        val1

5                        val2

6

7

8                        val3

9                        val4

10

11 ') xml_to_update,.

12 xmltype (')

13                      valb

14                      valc

15

16                        vald1

17                        vald2

18

19                      vale

20                      valf

21

22                        valg1

23                        valg2

24

25

26

valh1

27

valh2

28

29 ") xml_to_extract_from"

30 double

31)

32 select xmlserialize (document

33 xmlquery)

34 ' copy $d: = $old

35 edit)

36 Insert element extrainfo {} node

$37 new/a/b

38, $ new/a.

39, $ new/e/f

40, $/ a/h new

41} as the first in $d / root

42              )

43 return $from

44 from sd.xml_to_update as "old."

45, sd.xml_to_extract_from as 'new '.

46 by returning the content

47           )

dash 48

49         )

50 to sample_data sd;

XMLSERIALIZE (DOCUMENTXMLQUERY)

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

valb

vald1

vald2

valf

valh1

valh2

val1

val2

val3

Val4

Tags: Database

Similar Questions

  • How to transfer several photos from one folder to another

    I want to delete a number of photos in my folder and then transfer some blocks of them to other folders to better organize. I know how to remove one at a time, but I don't know how to highlight a bunch of them for moving.  They are coming up with numbers, like 079, 080, 081 etc but not on a list where I can highlight.  I also want to do the same with several short videos I have.  By the way, I have transferred all this media from my iphone / ipad and everything came automatically - that is why I need now to separate and organize especially if I want to send copies to parents and friends.

    I want to delete a number of photos in my folder and then transfer some blocks of them to other folders to better organize. I know how to remove one at a time, but I don't know how to highlight a bunch of them for moving.  They are coming up with numbers, like 079, 080, 081 etc but not on a list where I can highlight.  I also want to do the same with several short videos I have.  By the way, I have transferred all this media from my iphone / ipad and everything came automatically - that is why I need now to separate and organize especially if I want to send copies to parents and friends.

    ==========================================
    You can select multiple by holding your CTRL key while left
    by clicking on the thumbs or file names.

    You can also select groups of photos by selecting one...
    While holding down your shift key and select another further
    fixing the list. All photos between the two selected will be
    chosen too.

    Move photos from one folder to another.

    With the thumbnail selected... type... CTRL + x. sa is the
    keyboard shortcut for "cut". Selected thumbnails are
    bland and appear grey.

    Open the folder that you want to move the photos to, and then type...
    CTRL + V. sa is the keyboard shortcut for paste.

  • How nagivate values from one page to another page as well assured in different modules like po and pon

    How nagivate values from one page to another page as well assured in different modules like po and pon?

    I tried using the session values, hashmap, and Transaction. But none worked.

    Please help me on this.

    Dilip thanks.

    My problem is solved.

    I solved the issue.using the main concepts of java.

    By importing a package into other package and then instantiate the required class.

    Kind regards

    2793235.

  • How can I move photos from one date to another in my catalog? Downloaded LR of photos taken over several days to a date. LR6 PC Win7

    How can I move photos from one date to another in my catalog? Downloaded LR of photos taken over several days to a date. LR6 Win7 PC.

    Hi bubba43,

    Please select the images in the library grid mode Module and then drag and drop them in another folder you want.

    Kind regards

    Tanuj

  • Problem transfer VM from one host to another, different VCenter Server ESXi

    Hello everyone.  I'm new on communities, please excuse my lack of experience of VMWare.  I have a problem with the migration of computers and I hope someone here can help you.

    We have two independent groups in my building that each have their own installer of VMWare.  They each at least two hosts ESXi, VCenter Server, san, etc.  They are in separate laboratories on separate subnets.  I need to get a system in place where some images migrated in one laboratory to another on a regular basis, but I'm running into obstacles.

    My first attempt was a copy of the right lane.  Lift the file in my store of data takes about 5 hours, and the final result is a vmdk file is not set up.  I don't know why.  I created a new VM the custom option usign and attempted to add an existing hard drive.  When I accessed this file in my data store, there is no evidence, even if a 50 GB file is really there. I also tried to install this vmdk as a second hard drive to an existing image file, and I end up with the same result.  The Add Hardware Wizard does not have the file as an option.

    My second attempt was to have a group to create a clone of the server and let it off.  Then, I tried to run an import of a clone of one VCenter Server installation to another.  This leads to an error that it was 'Impossible to determine the operating system called'.

    I also tried to import the clone in an installation of SCVMM MS I'm hungry.  That no longer works.

    We don't have a VMotion. We have Essentials more licenses.  A group is running ESXi 4.0 hosts and the other is running ESXi 4.1 hosts.  What is the best way to get an image from one group to another?

    Thank you in advance for your help!

    Joe

    You can always use tools such as Veeam Backup and replication, it will take 5 hours for the first complete copy maybe, but then it's just modified pieces which are transferred.

    If this post was useful/solved your problem, please mark the points of wire and price as seem you. Thank you!

  • Links appear different from one PC to another

    It is a weird (at least I think). Why the appearance of a hyperlink would change from one system to another?

    I put the font style "link Hypertext visited" to "automatic". However, when I return to the style sheet and look at the definition of the style, the font is defined as 'red '. When I compile the help, the visited color is dark green. When my colleague compiles the same help system on his PC, the visited color is purple (which is what we want).

    (In addition, if we change the police "visited hyperlink" to be anything other than 'auto', it affects the style of link glossary pop up, we want to look the same regardless of whether it is selected or not).

    What the hell is happening?

    Thank you!

    It's not too weird. It's normal. The Help Viewer uses Internet Explorer settings, which the user can set to display any desired color scheme. I think that maybe your Internet Explorer settings changed somehow. Go to Internet Explorer/Tools/Options/colors and see what you have there. You can override these settings, but using 'auto' will use the settings of the user.

  • Whenever I have move photos from one folder to another file, the picture is no longer accessible.

    I use Windows XP - perfectly up-to-date.  Whenever I have move photos from one folder to another file, the picture is no longer available and cannot be removed with using unlocker.  This has happened for several years.  I copy pictures and new folders whenever I want to move them, but sometimes I forget and move them and then I lose the picture I'm trying.  I also noticed that there is a strange file that opens in the trash that won't let me remove it without using unlocker. These files start with "Dd" followed be a number.  When I delete these use unlocker, another will appear the a different number on this subject.  It is a very maddening problem.  It is not possible for me to do a system restore because it lasts for quite awhile.  Please help - I'm tired of losing pictures that I can't replace.  Thank you for your help.

    Hi JB_11321,

    Thanks for the reply.

    Have you tried methods 1 and 3 mentioned in my previous post?

    We meet after completing the steps so that we can better help you.

  • Need some ideas on the copy of the data from one schema to another.

    Dear all,

    I would like to know the best method and possible by copying data from one schema to another. (I won't use EXP / IMP).
    Example:


    I have a scheme of production on which I have hundreds of tables. I copy the data of the TEST environment after comparing data, I should copy the data incrementally.
    Maybe this copy of data may occur once a month, or on request.

    I want to have this done by a procedure.
    I was thinking about the logic below, using a procedure I will compare the tables and the structures between the two schemas.
    Then I willl use the primary key in both tables column and compare the data first. If the data if it does not exist then I only inserts these records in the target.
    The above said logic could be as similar as the synchronization of data or records, but the table does not all columns to track records archived / copied from the source.
    Suggest me so if you can give me the best logic or solution.

    Thanks in advance...

    Concerning
    Suresh

    GSKumar wrote:
    Dear all,

    I would like to know the best method and possible by copying data from one schema to another. (I won't use EXP / IMP).
    Example:
    I have a scheme of production on which I have hundreds of tables. I copy the data of the TEST environment after comparing data, I should copy the data incrementally.
    Maybe this copy of data may occur once a month, or on request.

    I want to have this done by a procedure.
    I was thinking about the logic below, using a procedure I will compare the tables and the structures between the two schemas.
    Then I willl use the primary key in both tables column and compare the data first. If the data if it does not exist then I only inserts these records in the target.
    The above said logic could be as similar as the synchronization of data or records, but the table does not all columns to track records archived / copied from the source.
    Suggest me so if you can give me the best logic or solution.

    I don't know why you don't want to opt for EXP/IMP.
    As an alternative, if you have a link DB between Production and Test pattern (which I seriously doubt), you can use the MERGER to a copy of data from Production to Test Delta.
    a. INTRODUCE IN test_schema.table_name SELECT sequence_columns, column_list FROM (SELECT column_list FROM prod_schema.table_name LESS SELECT column_list from test_schema.table_name)
    Column_list must not contain columns that contain sequence values because they may differ and result in an incorrect result; Therefore, this is taken into account in the outer query rather than Inline mode.
    b. MERGE STATEMENT
    c. FALL of test_schema.table_name. CREATE test_schema.table_name as SELECT column_list from prod_schema.table_name; -A way very neat to copy all the data, provided you do not keep any changes to test the tables in the schema.

    However, you mentioned to find existing records based on the primary key; IMO, primary key is normally a sequence (may be alphanumeric) and its value on env Production and Test may defer or even can have different attributes, therefore, I find it incorrect to match only the primary keys. I would say to match the key attributes.

    If you want to follow the last update/insert for a record, you can add a column that puts the time of last modification. In this way, you can track the changes of a column. Another alternative would be to use a check to the table.

    Let us know your thoughts or concerns, so that help can be provided.

    I suggest that you read and follow {message identifier: = 9360002}.
    If you will be useful if you can provide all the information required in advance to help us provide you with a quick resolution.

  • How to transfer the contents of my Itunes from one PC to another?

    Hello

    I tried several options that I found on the web, but no seem to work and my playlist are all empty?

    I have the usual content in Itunes, music, games, memos, tones...

    I would like to use Itunes as I did on my old computer to my new computer...

    Thank you

    Migrate a library iTunes from one computer to another

    These are two approaches that work normally to move an existing library to a new computer.

    Method 1

    1. Save the library with this trick of the user.
    2. Remove the old computer if you no longer wish to access content protected on it.
    3. Restore the backup to your new computer by using the same tool used to back it up.
    4. Keep your current backup in the future.

    Method 2

    Connect the two computers on the same network. Share your folder from the old computer and copy the file whole iTunes library in the folder on the new. Yet once, remove the old computer so is no longer necessary.

    These two methods should give the new computer, a clone of the library work which was on the former. What about iTunes is it is still the 'home' for your devices library you should not have problems with iTunes will erase and reload.

    I recommend method 1 because it establishes a current backup for your library.

    Note If you have iOS devices and that you have not reached your contacts and calendar all in all items, then you need to create a dummy entry in your new profile and iTunes expected to merge existing data from the device.

    If your media folder has been separated in the main folder of iTunes, you may need to do some preparatory work to make it easier to move. See make a library of portable split.

    If you are in the unfortunate position where you're able to access your original library or a backup and then see recover your iTunes from your iPod or an iOS device to get tips on how to configure your devices with a new library with the maximum preservation of data.

    TT2

  • On my iPad, can I move files from one folder to another, but not in the Preview file, why?

    When you manage files in iCloud, from an iPad, I can move to the files from one folder to another, but not in the Preview file. Secondly, when I check the file Preview to iCloud from Mac content is so different when you look at an iPad. Why is the gap between the iPad and the Mac?

    Try to go to iCloud.com to see if the elements are there and whether the device or the computer. That should indicate if the device or computer is not synchronizing. If the computer, try going to System Preferences/iCloud and stop synchronization. Wait a few minutes, then recheck the timing. If the device, go to settings/iCloud and do the foregoing.

  • How can I move notes from one folder to another?

    I thought that some of my notes were missing, but it seems that some are stored in icloud and the other in different files associated with my personal email address.  How can I make sure that they are all on the icloud (in case I lose my phone, when I update my phone, etc.)?  How can I move them from one folder to another?  I not create separate records in the first place. I guess it happened when I updated to the current IOS.  Thanks for your help!

    Slide left on each note you want to move to your iCloud folder. Move and delete option is available. The rest is simple.

  • problem of collage of video clips from one film to another file

    I use the Director of microsoft with Windows 8.1.  I have many movies at home that I edited various movie maker project files.  I would like to take some of my favorite clips of different projects and paste them into a new project.

    This has not worked for me.  That's how I tried to do.  I open the project file with clip I want to copy and paste.  I clip on the clip and select copy.  I then open the movie maker project where I want to paste this, and I click on the Clipboard to paste highlighted at the top left of the screen.  When I do that, I just get some sort of error noise ding, and then function to paste the Clipboard is grayed out.

    Anyway, how can I copy the project one film to another machine?

    Thanks much for any help.

    Sorry to post what I finally understood how to do this!  In case anyone else has had problems, here's what I discovered.

    To paste me a clip from one file to another, the destination file should have at least a clip already on it.  So what I did was import a video in the file as if to edit it, and then I managed to stick a clip of another movie project in this file, place the new file alongside the existing clip.  I guess you must have at least a clip holding a place for the paste function to work.

  • I can't move files from one folder to another on Windows Vista.

    Hello

    I can't move files from one folder to another in windows Vista.
    It is quite frustrating.
    I am an administrator of the account.
    I get an error saying that I don't have permission to do the action.
    It is said: Destination folder access denied. You need permission to perform this action. Then the buttons 'Try Again' and 'Cancel '.
    Help, please!
    Here is a link to an image of the error I get when I try to move a file:
    Thank you
    Jeremy

    Explorer

    Explorer (explorer.exe) is the program that is the start menu and taskbar, windows folder and the office (which is a folder window).

     

    To see if a fix is available

    In Control Panel (and select Classic discovered in the left pane) select reports on the problems and Solutions (problem of type in the START search box), go to historical problem, right-click of your error and choose check for the Solution.

    You can also right-click and choose Details for more information. Post these details here. The name of the Module fault is important information.

    If the problem affects Panel press the Windows key + R and type wercon (or type it at a command prompt).

     

    Close the browser and start a command prompt

    • Close Windows Explorer
    • Start - All Programs - Accessories - right on command prompt and choose run as administrator.
    • Click Start. Ctrl + Shift + Right-click on an empty spot (just above the power of buttons is one place) then Exit Explorer.
    • Press Ctrl + Alt + Delete then Task Manager.
    • Control all processes to explore are closed. On the process tab select explore and right-click and choose end process, repeat if more of an Explorer in the list.

    Then to restart the Explorer after trying all of the following

    • Press Ctrl + Alt + Delete and choose Task Manager
    • In the Task Manager, click the file menu and then click new task (run) and enter explorer
     

    If you cannot start the Explorer at all

    • Press Ctrl + Alt + Delete and choose Task Manager
    • Under the processes tab, click Show processes from all users to elevate to administrator
    • In the Task Manager, click the file menu and then click new task (run) and type cmd
    • Other things you can try typing

      Explorer
      Explorer c:\
      Explorer/e, c:\
      wercon
      control
      Iexplore
      Rstrui

    If you cannot start a folder window you can use the Browse button in the new task dialog. Don't forget that you must right click and choose Open rather than double-clicking.

     

    Reregister the shell registry entries

    It is important that each order is accepted. If the command fails it means the file is damaged and must be repaired.

    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).

    regsvr32 /i shell32
    regsvr32 /i urlmon.dll
    regsvr32 RPCRT4.dll
    regsvr32 PROPSYS.dll
    regsvr32 MSCTF.dll
    regsvr32 cscui.dll
    regsvr32 rsaenh.dll
    regsvr32 timedate.cpl
    regsvr32 ATL DLL
    regsvr32 OLEACC.dll
    regsvr32 actxprxy.dll
    regsvr32 USERENV.dll
    regsvr32 msshsq.dll
    regsvr32 NaturalLanguage6.dll


    regsvr32 thumbcache.dll
    regsvr32 WINTRUST.dll
    regsvr32 MMDevAPI.DLL
    regsvr32 audioses.dll
    regsvr32 audioeng.dll
    regsvr32 ExplorerFrame.dll
    regsvr32 msi.dll
    regsvr32 FirewallAPI.dll
    regsvr32 netshell.dll
    regsvr32 pnidui.dll
    regsvr32 QUtil.dll
    regsvr32 c:\windows\system32\wpdshserviceobj.dll
    regsvr32 WINHTTP.dll
    regsvr32 C:\windows\system32\qagent.dll
    regsvr32 C:\windows\system32\portabledeviceapi.dll
    regsvr32 wbemprox.dll
    regsvr32 wbemsvc.dll
    regsvr32 fastprox.dll
    regsvr32 imapi2.dll
    regsvr32 wshext.dll
    regsvr32 gameux.dll
    regsvr32 msxml6.dll
    regsvr32 vbscript.dll
    regsvr32 jscript.dll
    regsvr32 wshext.dll
    regsvr32 wshom.ocx
    regsvr32 wshcon.dll
    regsvr32 scrrun.dll

     

    Delete the folder and the settings of the Menu

    This will remove the settings are saved for each file that you visit. Also the order of the start menu.

    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).

    Reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell" /f

    Reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams" /f

    Reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2" /f

    Reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder" /f

    Delete the thumbnail and icon Caches

    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).

    attrib - r s h '% userprofile%\AppData\Local\*.db '.

    del "% userprofile%\AppData\Local\*.db".

    Disable thumbnails and previews

    Damaged documents and particularly corrupt pictures or videos, can cause Explorer crash all trying to generate a thumbnail or an overview. This miniature and previews active option off.

    If you can start the Explorer, previews is Union on the command - folder and Search Options - framework of tasks use classic Windows foldersbar.

    Thumbnails are organized on the command bar - folder and Search Options - view tab - and check under Advanced settings - always show icons, never thumbnails and uncheck Show icon file in the pictures.

    If you cannot start the Explorer close Explorer as above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "IconsOnly" /t Reg_DWord /d 00000001 f

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "ShowPreviewHandlers" /t Reg_DWord /d 00000000 f

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "ShowTypeOverlay" /t Reg_DWord /d 00000000 f

    Turn around after testing the Explorer.

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "IconsOnly" /t Reg_DWord /d 00000000 f

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "ShowPreviewHandlers" /t Reg_DWord /d 00000001 f

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "ShowTypeOverlay" /t Reg_DWord /d 00000001 f

     

    A boot is a way to explore

    It can be caused by a shell extension.

    Explorer (explorer.exe) is the program that is the start menu and taskbar, windows folder and the office (which is a folder window).

    The Explorer is built on addin programs called Extensions of Shell. The standard is provided by Microsoft, but programs add their own.

    • Download Autoruns http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx
    • Close Windows Explorer
    • Start Autoruns by right-clicking and choose run as administrator
    • Click on the menu Options - Filter Options and check hide Microsoft entries and disable include empty locations
    • Go to the Explorer tab and uncheck everything to the left.
    • Click Start. Ctrl + Shift + Right-click on an empty spot (just above the power of buttons is one place) then Exit Explorer.
    • Press Ctrl + Alt + Delete and choose Task Manager.  Control all processes to explore are closed. On the process tab select explore and right-click and choose end process, repeat if more of an Explorer in the list.
    • Click the file menu and then click new task (run) and enter explorer

    If this can help, reactivate ½ at a time to identify those who. If this does not help, restart AutoRuns and go to the all tab and uncheck everything that it and restart. If this can help, reactivate ½ at a time to identify those who.

    Run Microsoft Fixit

    Microsoft has a range of automatic programs to solve common problems. To see problems explore

    http://support.Microsoft.com/mats/windows_file_and_folder_diag/en-us

    For the visit of the list the most comprehensive

    http://support.Microsoft.com/FixIt/en-us

    When you choose to download, choose the option to run on another computer. You can then save it to your hard drive. Open the folder, open the folder fix this laptop and run Run Fix It. It will contain all 27 FixIt.

    Recycle Bin
     
    If the problem is the trash bin remove the storage folders. It will be automatically re-created next time you delete a file or open the Recycle Bin. It will remove the trash and the files it contains for all users.
     
    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).
     
    RD C:\$RECYCLE. BIN/s/q
     
    then repeat for each drive to change the drive letter, for example
     
    d:\$recycle Rd. BIN/s/q
     
    e:\$recycle Rd. BIN/s/q
     
     
    If the Office does not start
     
    This will create a new empty by user and common desktop computer. This will allow to test if a file on your desktop to start the Explorer.
     
    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).
     
    MD "% userprofile%\DesktopTest".
     
    Add reg "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" / v/t desktop REG_EXPAND_SZ /d "% USERPROFILE%\DesktopTest" /f
     
    MD "% public%\desktopTest".
     
    Tracking Add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" v "Common Desktop" REG_EXPAND_SZ /d "% Public%\DesktopTest" t f
     
    To restore default after having tested if begins to explore.
     
    Set ExpFix1 = % user
     
    Set ExpFix2 = % profile
     
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" / v/t desktop REG_EXPAND_SZ /d "% ". ' ExpFix1 ExpFix2%% \Desktop "/f
     
    Set ExpFix1 = % Pub
     
    Set ExpFix2 = % lic

     
    reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Common Desktop" /t REG_EXPAND_SZ /d "% ". ' ExpFix1 ExpFix2%% \Desktop "/f
     
    You will need to disconnect then.
  • How to transfer files from one user to another in Windows Vista?

    How to transfer files from one user to another under Vista?

    How to transfer files from one user to another under Vista?

    A simple way is to move the file to the Public folder.
    Public folder is accessible by all users.

    How...
    Right click on the file > click Move To > navigate to the Public folder > click on move.

    If you do not Move To option in your right click context Menu, here is the tutorial...
    http://www.Vistax64.com/tutorials/89196-context-menu-add-copy-folder-move-folder.html

    Use an easier method.

    PS you can also use methiod drag-and-drop rather than pass to the method. I prefer the latter.

  • How to move the FILE from one place to another and keep "Indexing" have to move to the unknown location so you can't discover its full file path? Windows instructions provide information wrong re: how to do this!

    Make a bunch of audio files, placed in a folder on my desktop. Files initially sent to RealPlayer to burn, but when finished burning CD and went to read a CD, folder got seized by Media Player, 'Indexed' and disappeared from the office. I'm a relatively new computer user, and I need to learn more about file paths, how to view the path FULL of a file on my computer and how to type (create) full path when I need to. The "Indexing" feature seems to erase this lesson for me, and after having spent four hours trying to find Vista instructions on "How to move the file from one place to another", I gave up! Windows 'Help and Support' on my computer gives wrong directions. It states that if I right click on a folder > properties, a dialog box opens with a tab by which I can move my account. There is no tab location here. I found locations tab when right click on the "Mobile" folder, but still no option to "move file". No idea what is the folder "Roaming" or why it's on my computer. I want my audio files in the My Music folder, but this place is "access denied." Don't know how to get the audio file it in any case, but if anyone has any advice, I would be very happy! Thank you. PS - I had no problem moving folders in XP. I don't like the idea that a computer is to decide where to put my files. I want to control where I put my files. I don't like the way search works under Vista. I liked the XP search companion better because, for a computer fool like me, it was really easy to organize and find files and folders and had an option specific to find audio and video file TYPES.

    Here is an article on how to move your personal folders in Vista: http://www.howtogeek.com/howto/windows-vista/moving-your-personal-data-folders-in-windows-vista-the-easy-way/.  If you're talking about the special folders (such as photos, Documents, office...), then here is an article on how to move: http://www.winhelponline.com/articles/95/1/How-to-move-the-special-folders-in-Windows-Vista.html.

    If you have trouble with the search after you move the files, then rebuild the index: http://www.tech-recipes.com/rx/2103/vista_rebuilding_the_search_index/.  Here is an article on how to use Indexing Options in Vista that may be useful for you: http://www.vistax64.com/tutorials/69581-indexing-options.html.

    If the above does not help, your problem seems to relate to the image of the files/folders and their interactions with Media Center (which operate on different other folders).  Please repost your question in images and video Forum at: http://social.answers.microsoft.com/Forums/en-US/vistapictures/threads where the people who specialize in issues of the image will be more than happy to help you with your quesitons.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for