Rename folders

How do we rename folders on a server in forms 6i?
TIA

Try to use:
For Windows NT, W2K:
Host('cmd /c rename old_name new_name');
For Windows 95,98:
Host('rename old_name new_name');
or
Host('command.com /c old_name new_name');
I think, following code works at all Windows version. This way isn't described in Oracle notes.
DECLARE
cmd varchar2(1000);
new_cmd varchar2(1000);
BEGIN
cmd:='rename old_name new_name';
TOOL_ENV.GETVAR( 'COMSPEC', new_cmd );
new_cmd:=new_cmd||' /c '||cmd;
-- Message( new_cmd );
HOST(new_cmd);
END;

Similar Messages

  • Can't rename folders on Snow Leopard Server

    I have 10.6.8 Snow Leopard Server running on a new Mac Mini server. Attached I have a Pegasus Raid storing all my files. I have a sharepoint set up for every project we work on but a couple act strangely. Users can create and delete folders but can not rename them once created. In order to rename they must drag the folder onto the desktop, rename and then replace the folder on the server. All permissions are set up identical to the other sharepoints which work fine. I have had a couple so-called "experts" look at the permissions in both the terminal and Server Admin. Everyone seems stumped. Any ideas?

    Thanks for the input but I finally soved the problem. Here is what I found...
    Although I had given users/group the ALLOW/FULL CONTROL premission with a sharepoint, I discovered that in Server Admin if you double-click on the User or Group name under the ACL permissions that a drop down box appears. This box allows you to fine tune the ACL but it appears that by default all of the boxes are not checked even though I granted the user Full Control. After checking all of the boxes I was able to create and rename folders in my share as expected.
    This also had an similar effect if I denied Full Control. Some of the boxes remained unchecked and it left holes in my system where denied users could still access some files. Again by checking all boxes these holes were closed.
    Does anyone know how to change the default so that all boxes are checked when assigning the Full Control permission?

  • I can't rename folders in Launchpad anymore

    I'm running OS 10.7.3
    When I first installed, I could rename folders (I know how to do this).
    Now, I can no longer change the folder names.
    I searched these discussion topics and found some posts about quitting the Dock process and trashing Dock prefs. I've done all these but there's still no success.
    Any ideas...?

    PS:
    I searched some more and found a pref pane called Launchpad Control that was helpful:
    http://chaosspace.de/launchpad-control/
    I find it disturbing though that the functionality has disappeared in the Finder. Hopefully this bug can be fixed in 10.7.4

  • Can't rename folders in Launchpad

    Cant rename folders in Launchpad I i have tried double clicking and waiting for them to wobble. Nothing.

    From another discussion: https://discussions.apple.com/thread/3189625?start=15&tstart=0
    etresoft wrote:
    First try to create a new account and see if you have the same problem there. If not, it is likely just a preferences problem. First try quitting the Dock from Activity Monitor. It should start right back up again. If that doesn't fix it, go into ~/Library/Application Support/Dock and delete all the DB files. You should probably quit the Dock again or, even better, log out and back in.
    You will have to type ⌘ G in the Finder and type "~/Library/Application Support/Dock" to get to that folder. Bummer Apple, it sure didn't take long to have to unhide the Library foolder, eh?
    This has worked for others who had the same problem.

  • Droplet to Rename Folders and Files

    I am an AS newbie and I need some help. Our accounting software creates a folder structure on our server when a job is created with a 6 digit job number. Enclosed in this folder is a set of sub-folders which are generated with a generic name: 0000_Art, 0000_Final, 0000_Fonts etc. It also places a generic rtf file named 0000_Readme. When work begins on a job we currently have to replace the "0000" with the last four digits of the job number: "140662" = "0662_Art" etc.
    I found a script to do this with some manual intervention but wanted to take this one step further by creating a droplet and making it drag and drop. This droplet works, but the problem comes in that it still wants you to choose the target folder from a dialog and I would like to just auto process the dropped folder and it's contents. Also, is there a way to tell AS to use characters 3-6 of the dropped folder's name to replace any instances of "0000" in sub-folder or document names enclosed? Is there any uneccessary code which can be stripped out?
    Here is the script as it stands now:
    on open of finderObjects
    set the source_folder to (choose folder with prompt "Folder containing items to edit:") as Unicode text
    display dialog "Search and replace in:" buttons {"File Names", "Folder Names", "Both"} default button 3
    set the search_parameter to the button returned of the result
    repeat
    display dialog "Enter text to find in the item names:" default answer "0000" buttons {"Cancel", "OK"} default button 2
    set the search_string to the text returned of the result
    if the search_string is not "" then exit repeat
    end repeat
    repeat
    display dialog "Enter replacement text:" default answer "" buttons {"Cancel", "OK"} default button 2
    set the replacement_string to the text returned of the result
    if the replacement_string contains ":" then
    beep
    display dialog "A file or folder name cannot contain a colon (:)." buttons {"Cancel", "OK"} default button 2
    else if the replacement_string contains "/" then
    beep
    display dialog "A file or folder name cannot contain a forward slash (/)." buttons {"Cancel", "OK"} default button 2
    else
    exit repeat
    end if
    end repeat
    display dialog "Replace “" & the search_string & "” with “" & the replacement_string & "” in every item name?" buttons {"Cancel", "OK"} default button 2
    tell application "Finder"
    -- Get a Finder reference to the relvant items.
    if (search_parameter is "Folder Names") then
    set item_reference to a reference to (folders of entire contents of folder source_folder whose name contains search_string)
    else if (search_parameter is "File Names") then
    set item_reference to a reference to (files of entire contents of folder source_folder whose name contains search_string)
    else
    set item_reference to a reference to (items of entire contents of folder source_folder whose name contains search_string)
    end if
    -- Get a list of aliases to the items.
    -- (Individual Finder references might fail when renaming items within renamed folders.)
    try
    set item_list to item_reference as alias list
    on error
    set item_list to item_reference as alias as list
    end try
    if item_list is not {} then
    -- If there are any relevant items, get their names.
    set current_names to name of item_reference
    -- Doctor each name...
    repeat with i from 1 to (count current_names)
    set astid to AppleScript's text item delimiters
    set AppleScript's text item delimiters to search_string
    set text_items to text items of (item i of current_names)
    set AppleScript's text item delimiters to replacement_string
    set newitemname to text_items as Unicode text
    set AppleScript's text item delimiters to astid
    -- ... and rename the associated item.
    my setitemname(item i of item_list, newitemname)
    end repeat
    end if
    end tell
    end open
    beep 2
    on setitem_name(thisitem, newitemname)
    tell application "Finder"
    --activate
    set the parent_container to (the container of this_item)
    if not (exists item newitemname of the parent_container) then
    try
    set the name of this_item to newitemname
    on error the error_message number the error_number
    if the error_number is -59 then
    set the error_message to "This name contains improper characters, such as a colon (:)."
    else --the suggested name is too long
    --set the error_message to error_message -- "The name is more than 31 characters long."
    end if
    --beep
    set newitemname to my getnew_name(errormessage, newitemname)
    if (newitemname is 0) then return 0
    my setitem_name(thisitem, newitemname)
    end try
    else --the name already exists
    --beep
    set newitemname to my getnewname("This name is already taken, please rename.", newitemname)
    if (newitemname is 0) then return 0
    my setitem_name(thisitem, newitemname)
    end if
    end tell
    end setitemname
    on getnewname(msg, default_answer)
    tell application (path to frontmost application as Unicode text)
    set {text returned:newitemname, button returned:button_pressed} to (display dialog msg default answer default_answer buttons {"Cancel", "Skip", "OK"} default button 3)
    if (button_pressed is "OK") then
    return newitemname
    else if (button_pressed is "Skip") then
    return 0
    else
    error number -128 -- only necessary on non-English systems.
    end if
    end tell
    end getnewname
    Various Mixed Macs   Mac OS X (10.4.3)  
    Various Mixed Macs   Mac OS X (10.4.3)  

    Hi lunarlandr and welcome to Apple Discussions!
    Without going through the script in detail, there's a lot that can be stripped out, and a few goodies that can be added.
    Droplets work best when iterating through lists (even one-item lists) of Finder items. As a brief example:
    on open (these_objects)
    repeat with each_object in these_objects
    --do something with each object in turn
    end repeat
    end open
    You need to remove the line beginning "choose folder" and let each_object become your source folder.
    The code below is rough and may need some amendment, but it should answer most of your questions. Test it and see.
    --begin script
    on run
    display dialog "I'm a droplet! Drop things on me!" buttons {"OK"} default button 1 with icon note
    --although you could incorporate a choose folder here
    end run
    on open (these_objects) -- a list of aliases
    repeat with each_object in these_objects
    set item_info to info for each_item
    set folder_contents to (list folder item_info)
    if kind of item_info is "Folder" and folder_contents contains "0000_Readme" then -- only process job folders
    set job_number to text 3 thru 6 of name of item_info
    process (eachobject,jobnumber)
    else --not a job folder
    display dialog "I only work with proper job folders." buttons {"OK"} with icon note giving up after 3 -- move on to next item in list
    end if
    end open
    on process (topfolder,jobnumber)
    tell application "Finder"
    set folder_contents to every item of top_folder
    repeat with each_item in folder_contents
    set generic_name to name of each_item
    if generic_name begins with "0000_" then
    set name of each_item to job_number & text 5 thru -1 of generic_name --everything from the underscore to the end
    end if
    end repeat
    end tell
    end process
    --end script
    The droplet will process multiple folders with different job numbers, without any user interaction. The name of the internal files and folders is derived from the name of the dropped folder.
    Hope it helps,
    (Although I don't see why the accounting software shouldn't do all of this for you...)
    H

  • Ability to rename folders in Launchpad in Mountain Lion Seems to be broken. Is there a fix?

    Ability to rename folders in Launchpad in Mountain Lion Seems to be broken. Is there a fix?

    YouWinSomeYouLoseSome wrote:
    you still cannot rename folders.
    I can... you cannot. I'm not sure why. It will not work on an app icon.
    Are you sure you're doing this on a Folder?
    Perhaps it is a function of Finder. You can try deleting Finder prefs to default.
    Go to your Finder "Go" menu hold the option key and choose Library. Then go to Preferences folder and trash these files:
    com.apple.finder.plist
    com.apple.sidebarlists.plist
    Then, restart, or log out and in again.
    (You will have to reset a few finder prefs the way you like them.) 

  • I can no longer rename folders in Launchpad since Mavericks

    How do I rename folders in Launchpad?

    Click on the folder to open it, then click on the name (in the top left) to edit the name.
    It sometimes happens that there is no response to a click on the name of the folder, if that happens, open Activity Monitor and Quit the "Dock" process. It will restart automatically within a second.
    After that, try to rename the folder again, it should work.

  • Rename Folders in Launchpad in Lion

    HI - I've seen various comments on how to do this. I've tried to go into the folder, double click on the name (normally untitled) but it won't allow me to rename.
    Anyone know how you rename folders in launchpad ?

    First try to create a new account and see if you have the same problem there. If not, it is likely just a preferences problem. First try quitting the Dock from Activity Monitor. It should start right back up again. If that doesn't fix it, go into ~/Library/Application Support/Dock and delete all the DB files. You should probably quit the Dock again or, even better, log out and back in.
    You will have to type ⌘ G in the Finder and type "~/Library/Application Support/Dock" to get to that folder. Bummer Apple, it sure didn't take long to have to unhide the Library foolder, eh?

  • Can no longer rename folders in Launchpad

    When I first installed Lion, I could rename folders I made in Launchpad just fine.  Since updating to 10.7.1 I can no longer rename folders.  Is anyone else having this problem?

    Click on the folder to open it, then click on the name (in the top left) to edit the name.
    It sometimes happens that there is no response to a click on the name of the folder, if that happens, open Activity Monitor and Quit the "Dock" process. It will restart automatically within a second.
    After that, try to rename the folder again, it should work.

  • Can't delete or rename folders when I FTP

    Hi
    Hope someone can help me with this!!
    When I connect to a webserver using FTP with dreamweaver, it
    won't let me delete or rename any folders.
    It's nothing to do with the persmissions becasue the user has
    full permissions and can delete or rename when I FTP using a
    different client. Any ideas?? Is there a setting that I am
    missing??
    Thanks in advace for any help
    Cheer

    Do you run a mac?
    I had this problem at the last company that I worked for. I
    was on a Mac
    then; not sure if that had anything to do with the problem.
    I could sometimes connect with Dreamweaver but I could always
    connect with
    another ftp client. At one point, when the problems started,
    I used
    Dreamweaver to rename folders on the server. Instead of
    creating them on my
    own system, I created files and renamed folder directly on
    the server
    through DW. After that, I had problems. At one point, all the
    files got
    changed so that they were locked down.
    Occasionally, I thought I isolated the problem. At times,
    recreating the
    entire site worked. At other times, it helped for the server
    to be rebooted.
    At times I thought it was because of the firewall or content
    filter that was
    doing it. I think it was a Windows Server that I had the
    problems with. I
    don't remember if the other servers gave me problems.
    I never really resolved it. Now I'm at a different job and I
    have but a
    passing interest in what it might be.
    Sorry I don't have anything solid.

  • Batch rename folders in bridge?

    The batch rename feature is awesome for renaming images, but is there an option to do the same for renaming folders?

    but is there an option to do the same for renaming folders?
    No, not in Bridge itself.
    You could try the bridge Scripting Forum or an alternative relatively cheap application called A Better Finder Rename. Original designed for Mac but if you scroll down you will find they also have a version for Windows if you need so:
    http://www.publicspace.net/ABetterFinderRename/

  • Cannot rename folders in SMB share using Column view

    I connect to an Ubuntu SMB server and files and folder access worked perfectly under 10.5.8.
    I upgraded to Snow Leopard and a curious thing happends. I set CHMOD of the main folder to 777. I can create and rename folders in this first level but if I am in column view, I can create a folder (untitled folder) but can't rename it.
    If I move to icon or list view, I can create folders levels deep. It took me a day to work out what was wrong!

    Same issue here. Can't rename a folder on Samba-share with Finder. Doesn't matter which view.
    --Server details
    FreeBSD 7.1-RELEASE GENERIC
    Samba version 3.3.7
    --Debug-info
    I raised the Samba loglevel, and noticed an increase of the file 'nobody.log'. This is strange, because I am logged in and accessing a private file.
    My Mac is named 'mrcmini'. Samba logs to 'nobody.log':
    \[2009/10/06 22:15:40, 3\] smbd/sesssetup.c:replysesssetup_andX(1412)
    wct=13 flg2=0xc801
    \[2009/10/06 22:15:40, 3\] smbd/sesssetup.c:replysesssetup_andX(1611)
    Domain=\[\] NativeOS=\[Unix\] NativeLanMan=\[Samba\] PrimaryDomain=\[\]
    \[2009/10/06 22:15:40, 3\] smbd/sesssetup.c:replysesssetup_andX(1627)
    sesssetupX:name=\[\]\\[\]@\[mrcmini\]
    Finder sets up a session to start the 'Rename'-action, but does not send the username.

  • I am running Lion 10.7.2 and I have an external drive hooked to my time machine. I can't rename folders and when trying, I get an error code 8076. The checkbox "ignore permissions for this device" does not show on volume info. Help please???

    I am running Lion 10.7.2 and I have an external drive hooked to my time machine. I can't rename folders and when trying, I get an error code 8076. The checkbox "ignore permissions for this device" does not show on volume info. Help please???

    The TIme Machine volume does not have that checkbox.
    I think the issue is with your Finder...
    Go to Finder "Go" menu hold the option key and choose Library. Then go to Preferences trash these files:
    com.apple.finder.plist
    com.apple.sidebarlists.plist
    Then, restart, or log out and in again.
    (You will have to reset a few finder prefs the way you like them.)

  • Cannot delete mails or rename folders in icloud mail

    Hi evereyone,
    I lately realized a strange behaviour of my iCloud mail account.
    No matter where I try to rename or delete a folder (icloud.com, iPhone, iPod touch,2 iPads) I get an error message that it is not possible to do so.
    If I try to delete a mail (yes, I chose the server's Trash folder in every device's advanced settings) it remains in the inbox,
    but also shows up in th trash. So if I delete the same mail 5 times it's still there but there are also 5 copies in the trash.
    My mail client of choice is "eM Client" because it can handle icloud mail, contacts and calendar.
    Strange enough, I can delete mails in the client. So the IMAP inboxes of the client and my iDevices are not in sync.
    But I also cannot delete or rename folders in the client.
    No problems with my wife's own iCloud account.
    I am using Windows 7 and Firefox. Same problem on Safari.
    Does anyone have an idea how to solve this problem?
    Thanks in advance,
    Bodo

    Thanks mate! Who could have known this function was hidden in a tiny symbol on the other side of the screen... quite bad design by Apple and not self explanatory at all!

  • Can't add folders nor rename folders or files.

    I'm setting up an A1342 MacBook and now I'm unable to add any folders nor to rename folders or files. Where do I go to unlock these? Looked all around OS Preferences, & don't see what I need to do.

    What version of the Mac operating system is running on your MacBook? (Go to the Apple menu, select About this Mac and look for the version number.)
    If you select a folder and then Get Info for it (command-i on your keyboard or File menu > Get Info) are you able to change the name there? What does it say for Sharing & Permissions?
    Best of luck.

  • Can`t rename folders or files in nfs windows 2012R2

    I can not rename
    folders or files that are in a nfs
    unit. When I try to rename I get the
    error "Invalid device", this only
    happens in windows 2012r2 or
    2012 in windows 2008r2 works with
    the same nfs unit.
    In
    the event viewer no errors.
    you know it
    is happening?

    Hi,
    Based on my research, the issue is a bug in Windows Server 2012 and 2012 R2. It needs some time to figure out the proper fixes, so please wait for a future patch. If there is a solution or workaround, I will post it in this thread. 
    Thank you for your understanding and support.
    Best Regards,
    Mandy 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

Maybe you are looking for

  • Apps are assigned to wrong Apple ID

    Just bought my very first Apple purchase after resisting years of bombardment of propoganda from my friends and colleagues. They all told me how "easy" they are and how they "just work". Not so, I find this new 27" iMac so restrictive in what I can a

  • DNS Domain name ISE 1.2

    Question:  Can the DNS domain name in ISE 1.2 be differnt from the AD domain that ISE is joined to? Situation:  I have an internal AD domain 'mydomain.local'.  Currently ISE is setup with mydomain.local as it's dns domain it's FQDN is isebox.mydomain

  • How to read and writre file into remote machine in the network

    HI Experts,    i want to write the data and read data into file in remote machine(not in application server and presentation server).is it possible in abap. thanks in advance With Regads Naidu

  • T430s - general observations and USB 3.0 issue

    I got my T430s this week after a month. After unpacking I noticed some fingerprints on the lid and also on the display. So I assume the model was reworked, because from the regular manufacturing process I don't expect any fingerprints. However, it ru

  • XQuerry Mappings

    When i am trying to translate the request xml using request xsd to purchase order xml using purchase order xsd. I used XQuery mappings to Generate the output purchase order xml,but i am getting problems with name spaces,and it is not displaying all t