Replace all references to files and folders with lowercase in web documents on a site

Hi I'm working on a test server that runs Ubuntu Unix (but my PC which has Dreamweaver CC is running Windows 8.1). I would like to search and replace in Dreamweaver to change all src and href attribute values inside files (webpages, css, etc.) on my site to lowercase, but with the folder and file names' spelling otherwise unchanged. I already changed the names of the actual files and folders, but wanted to make all references in my files point to them again. I started to use regular expressions in the specific tag search, but I was not sure how to specify letter case conversion on a backtracked value. Some flavors of RegEx allow you to replace a searched value in parentheses with its lowercase counterpart by specifying something like this: \L\1
Where \L converts the character captured in the reference \1 to lowercase. Thanks.

Hi Jon,
Thanks for your response. Yes, I tried. But I’m not sure you can use any RegEx special characters in the replacement text. I put in \L0 and it just replaced the match with the literal string, so href=”Support/Index.HTML” became href=”\L0”
What I want is href=”support/index.html”
The reason I didn’t use Dreamweaver to change the actual file and folder names is I have images widely dispersed in subfolders. I didn’t think Dreamweaver would automate that part—I think you can only select a file individually to rename it, and then DW will correct all references to it. But probably can’t rename everything with one command from the root. Well, this is turning out harder than I thought.
Let me know if you have any other ideas.
Thanks,
Dave.

Similar Messages

  • How to delete all files and folders (with files) in IsolatedStorage.

    Hi awesome programmer:-) The code I have to clean up the local folder doesn't work properly so I won't even bother posting it here. I basically want to have a "master reset" option to remove all new created files and folder in the local folder.
    Can you give me simple code to remove all files/folder so the app goes back to the state it was when the user installed it for the first time? Thanks in advance. ps I were able to delete a directory(-ies) with this method:
    private async void DeleteDirectory(string directoryName)
    try
    var folder = await Windows.Storage.ApplicationData.Current.LocalFolder.GetFolderAsync(directoryName);
    if (folder != null)
    await folder.DeleteAsync();
    this.Dispatcher.BeginInvoke(delegate()
    txtUpdateFeed.Text = "Folder < " + directoryName + " > deleted.";
    catch (Exception ex)
    this.Dispatcher.BeginInvoke(delegate()
    txtUpdateFeed.Text = "Delete Directory << " + directoryName + " >> Error: " + ex.GetBaseException().Message.ToString();
    It seems to work, I have not tested with all conditions though. Anyway let me put up the code so you can see I have been trying: This is to delete everything but not all files are deleted:
    private void WipeAllData(bool bln)
    try
    txtUpdateFeed.Text = "Removing files...";
    if (bln)
    txtUpdateFeed.Text = "Removing folders...";
    //Delete videos directory
    DeleteDirectory("videos");
    //Delete pictures directory
    DeleteDirectory("pictures");
    txtUpdateFeed.Text = "Folders removed.";
    //Delete the rest of the files
    var iso = IsolatedStorageFile.GetUserStoreForApplication();
    foreach (string name in iso.GetFileNames())
    iso.DeleteFile(name);
    BtnWipeAllData.Content = "Wipe All Data";
    VideoCameraPowerValue = "on";
    BtnVideoCameraPower.Content = "Video Camera: ON";
    PhotoCameraPowerValue = "on";
    BtnPhotoCameraPower.Content = "Photo Camera: ON";
    txtUpdateFeed.Text = "Files removed successfully.";
    catch (Exception ex)
    MessageBox.Show("Wipe All Data Error:\n" + ex.Message.ToString());
    Why isn't all files being deleted?

    Hi Clint William Theron,
    Based on your descriptions, I know that when you run the above code, it does not delete all the files, then have you checked that which kinds of files or in which folder the files can not been deleted?
    Besides, if you want to let the app go back to the state it was when the user installed it for the first time, then an easy way is to uninstall and reinstall it.
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Managing files and folders with Pegasus R6

    Sorry if this seems like a really newbie question, but it has me stumped.  Oh, and hello everyone! This is my first post on here.
    I just purchased a new 27" iMac and the new Pegasus R6 (12TB) drive.  So now I am getting prepared to offload my old iMac with all the pictures and videos that have caused it to nearly grind to a Windows speed.
    My software is Aperture 2, Adobe CS4 and Final Cut Studio express.
    On to my question... Once I had all the software installed, and the Pegasus drive was done setting up (overnight), I dragged the Aperture 2 library over to the Pegasus drive.  It surprised me to see that the orginal library stayed on my iMac and a duplicate was now on the Pegasus drive.  I thought that maybe it was just a nuance in the way Aperture is.  So, I took a couple of photos that were just sitting in the iMac under a newly created folder and dragged and dropped those into the Pegasus drive.  Viola', those copied as well.  Now I have a copy on the iMac and the Pegasus.  I cannot figure out why the items are not moving, but duplicating.
    Any thoughts?

    Sorry if this seems like a really newbie question, but it has me stumped.  Oh, and hello everyone! This is my first post on here.
    I just purchased a new 27" iMac and the new Pegasus R6 (12TB) drive.  So now I am getting prepared to offload my old iMac with all the pictures and videos that have caused it to nearly grind to a Windows speed.
    My software is Aperture 2, Adobe CS4 and Final Cut Studio express.
    On to my question... Once I had all the software installed, and the Pegasus drive was done setting up (overnight), I dragged the Aperture 2 library over to the Pegasus drive.  It surprised me to see that the orginal library stayed on my iMac and a duplicate was now on the Pegasus drive.  I thought that maybe it was just a nuance in the way Aperture is.  So, I took a couple of photos that were just sitting in the iMac under a newly created folder and dragged and dropped those into the Pegasus drive.  Viola', those copied as well.  Now I have a copy on the iMac and the Pegasus.  I cannot figure out why the items are not moving, but duplicating.
    Any thoughts?

  • After updating Mavericks all my desktop files and folders were deleted

    I just updated to Mavericks and after going through the registration and settings process I have a desktop wiped clean. No personal files, no personal folders, Thunderbird email reset and deleted, etc. All previous settings were reset. All files were deleted that weren't part of Apple's default files or the Mavericks OS. They don't appear in finder, or spotlight, or when I open an app to try and view 'recent documents'.
    How does this happen?

    Did it have you create a new user during your first startup after installing Mavericks?  If so, check your "user" folder to see if you old account is still there.  You can follow these steps the to restore that user account:
    1. If your computer is starting up as if it is a new / clean install, create a dummy user (i.e. User name: test).
    2. Get to the desktop logged in as this dummy user and navigate to the "Users" folder. In addition to the dummy user you created and the "Shared" folder you should see a folder for your old user account. Take note of the exact spelling including cases of that user account.
    3. Go to System Preferences -> Users &amp; Groups
    4. Confirm that the user you are trying to access is not in the greyed out list of users.
    5. Create a new user with the user name (short name) identical the name of the user's folder you are trying to restore.
    6. It will say "a folder with that user already exists, do you want to use the existing folder?" Confirm "Use Existing Folder"
    7. Let it run for a minute and you will see the dummy user's name appear in the menu bar, on the right hand side.
    8. Go to System Preferences -> Sharing and change the computer name to something other than 'dummy user account's' Computer
    9. Congrats, everything should be back to normal. Log out of the dummy account and into your old account, everything should be waiting for you as you left it.

  • Pleas help with my music files and folders on an external drive

    A while back, I thought I had a virus on my C drive and was advised to by an external hard drive to move all my important files and folders to. As an inexperienced computer guy, this eventually led to a problem. I have many folders that shouldn't have been moved, main folders that were broken up, duplicates of songs, some song files that are empty, etc. This doesn't just apply to iTunes folders, it includes all the computer's music folders.
    Can you please help me reorganize and delete duplicates (C and external drives)? Is there a quick way to search for song files that will not work? Is there a way to wipe out all iTunes files and start over without losing the songs bought via itunes?

    Welcome to the Apple Discussions. I think you're in the wrong forum. This is the iDVD forum. If I read your question correctly you probably want the iTunes for Windows forum.
    OT

  • Files and folders moved to NAS become read only.

    I just got an Iomega NAS. When I move files and folders to it from my Macbook, they become read only when they get there. Files from my girlfriend's PC stay read/write when they are moved to the NAS.
    I first noticed this with iTunes. I changed the location of my iTunes folder to be on the NAS and I let iTunes copy the music itself. Now, I can add music by new artists, but if I try to add an artist that I already have a folder for, it won't let me because the folder is read only. Also, I can't change any of the info for any files in iTunes.
    I'm not sure if this has anything to do with it, but it looks like all of the files and folders on my Mac are set up so that only I can see them. When I click "get info" on any file on the computer, it shows:
    me : read/write
    staff: read only
    everyone: read only

    When I open a finder window, I see two icons for the NAS in the "shared" section. The first one is:
    hmnhd-ti2mkg
    When I click "get info" it shows "Kind: PC Server" and there is no mention of permissions in the "get info" box.
    The second one is:
    hmnhd-TI2MKG.local
    When I click "get info" it shows "Kind: Server" and there is no mention of permissions in the "get info" box.
    Clicking on either one of these icons lets me browse through the exact same shares and folders. There is no difference between going in to one or the other. They both have the same permissions on all folders, as well.
    "Jacob's iTunes Music" is a share on the NAS. All of my read only files (that I want to change to read/write) are already in this share.
    Clicking "get info" on any of the shares shows them as "Kind: Sharepoint" with no mention of permissions.
    I think I'm going to try to have iTunes copy all the files to my computer, change the permissions, then have it copy them back to the NAS. Is there a way to change permissions of folders, subfolders, and files without having to click "get info" on each and every one?

  • Show hidden files and folders

    Is there a way to show all the hidden files and folders in Finder? Thanks in advance.

    Hi, Jon.
    The freeware application TinkerTool will permit you to enable or disable the display of hidden or invisible files.
    Be careful when working with hidden and invisible files: they are hidden and invisible for a reason!
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Can i delete the files and folders in Libraries Cashe

    Hi,
    I was wondering if someone could tell me if it is safe to delete all the files and folders from the
    Libraries >> Cashe
    I have moved all of the files and folders into a new folder and my iMac still seems to run fine, but I dont want to restart it until I know that it really is safe to delete all these files and folders

    Yes I did mean the Caches sorry I wasn't paying attention to what I was typing and made a pretty major typo. Yes i was trying to dingoes a problem with my videos that I embed in iWeb showing fine in iWeb but now been able to load in Safari. I thought I had this problem fixed but it turned out that I didn't have.
    I thought that if i deleted the Caches then the computer would just rebuild them and that might solve the problem, its pretty much a last resort though as I have already looked at the settings and everything and been on the phone to apple tech support and all the settings are correct they are just not showing. The theory was that maybe a half loaded video had some how managed to prevent a the videos from displaying properly and so I thought that rebuilding the caches would solve this problem.

  • Files and Directories with *'s

    I have a problem where I moved files and folders from a 10.4.8 G4 server on to a new 10.4.8 G5 Server with XSAN 1.4. Some of these files and folders are part numbers and have *'s in the names. Any directory or file with a * in the name appears normally on the local file system. Over AFP and SMB these files and directory names get clobbered and end up looking like 6 characters ~ and one character, or something like ADQEOI~F. Has anyone ever seen this behavior before? I'd love to just rename all of the files and folders but I'm sure my users will not approve. Any suggestions would be appreciated.

    You probably should rename the files.
    A * is specifically not allowed in a file name. What's happening is that the file is stored with the unicode representation of the character. Unicode-aware apps like the Finder can deal with this but most other apps (including the file sharing daemons) cannot and that's why you see the unusual file names.
    You're going to run into all kinds of other problems, too. Renaming your files i the best bet.

  • Default Files and Folders in my Canvio Slim II

    When I first connected my Canvio Slim II to my PC, I noticed a batch of files and folders which are default inside the device. I feel messed while I used to see WD used a separate Drive for setup and other files.
    Q: If I move all those default files and folders into one folder any problem may raise? If I plan to use NTi Backup and restore, no problem if I move them?

    When I first connected my Canvio Slim II to my PC, I noticed a batch of files and folders which are default inside the device. I feel messed while I used to see WD used a separate Drive for setup and other files.
    Q: If I move all those default files and folders into one folder any problem may raise? If I plan to use NTi Backup and restore, no problem if I move them?

  • With my taking any action, my folders and files no longer appear under documents (under Places). Now a folder titled Documents has appeared on my desktop with all my files and folders. What happened?What happened?

    With my taking any action, my folders and files no longer appear under documents (under Places). Now a folder titled Documents has appeared on my desktop with all my files and folders. What happened?What happened?

    The way I moved from 10.3.9 to 10.5.8 was to use "ditto -rsrc" and copy the user homes and the data share to an external firewire drive. Then did the same in reverse.
    I found the key to data and share permissions to make sure that the users had the same UID in Leopard that they had in Panther.
    You can then use "sudo rm -rf" to remove any folder from the relocated homes that you want. Remember if you do choose to remove "~/Library" from each users relocated home, you will be removing any iCal calendars, login.keychains, browser bookmarks, custom screensavers and wallpapers, etc.
    Users don't really care if they can login and do any work. But there will be much wailing, gnashing of the teeth, and anxiety, if they lose their bookmarks and wallpaper.

  • Saved Digital ID to desktop, all desktop files and folders immediately vanished from computer

    I was signing a document in Abobe Reader, and instructed to create a new digital ID in order to do so.
    when I did this, I chose to save the digital ID to the desktop, replacing whatever its original destination to be saved to was.
    when I hit finish, every single file and folder on my desktop vanished from my laptop (Macbook air running OSX Yosemite) completely. I have searched everyone and gone through a live chat with an Apple specialist who has had access to my screen and cannot find anything. All files and folders, music and photos that were not on my desktop are still here. I have tried re-starting.
    Does anyone have any idea what has happened and how to fix it? I am a graduate student and part of my dissertation was on my desktop. I am an idiot for not having backed it up properly, and will be buying an external hard drive and using Time Machine immediately.

    Hello Elizabeth,
    Thank you for contacting Adobe via this forum and other correspondence.
    I see that Adobe Support has contacted you directly and is working with you on this issue.
    Regards,
    Charlene

  • The specified file or folder name is too long,the url path for all files and folders

    The specified file or folder name is too long,the url path for all files and folders must be 260 character or less
    can we increase this limit?
    MCTS,ITIL

    Hi,
    As I understand, you want to increase the length of URL path in SharePoint 2010.
    Per my knowledge, this limit cannot be increased. SharePoint limits URL length because all relative URL links are stored in the clear forms on the SharePoint content DB and often this links are used as primary keys to link one table with another. Fields
    which are used to store these links (for instance tp_DirName from the AllUserData table) allow storing only 256 characters.
    There are several ways that you can resolve or mitigate URL length problems in the SharePoint Server 2010 environment. The following list provides suggestions:
    1. Upgrade all the end-user browsers to Internet Explorer 8, which has a longer URL length limit.
    2. Use shorter names for sites, folders, and documents and control the depth of the site and folder structures to reduce the lengths of URLs.
    3. If possible or allowed, use ASCII names for sites, folders, and documents. This will avoid situations where the URL will be lengthened by being encoded.
    4. To reduce the risk that the SharePoint Server 2010 end-users will encounter problems because of URL length limitations, we recommend that you apply the following effective limits in the deployment:
    256 Unicode (UTF-16) Code units - the effective file path length limitation, including a domain/server name
    128 Unicode (UTF-16) Code units - the path component length limitation
    More reference:
    http://technet.microsoft.com/en-us/library/ff919564(v=office.14).aspx
    http://sharepointknowledgebase.blogspot.in/2013/04/url-path-length-restrictions-in.html#.VKJN53BJA
    Best regards,
    Sara Fan

  • I just restored my 13" MBP i5 at the apple store to the newest version of Lion after issues with a previous Time Machine backup from Snow Leopard- this time I created a new account and just ported files and folders, and now MS Office doesn't work. Help?

    I just restored my 13" MBP i5 at the apple store to the newest version of Lion after issues with a previous Time Machine backup from Snow Leopard- this time I created a new account and just ported files and folders, and now MS Office doesn't work.
    ^^ that's the main problem. Here's the full history.
    I bought a new 13" i5 MBP, early 2011 edition. I had an old white Macbook 2.14 ghz core2duo on Snow Leopard. I attempted to port over my time machine backup, but encountered problems in that my User was inaccessible from the new computer after the import finished, and I had to go in and change the root password, etc, and for some reason or another, I couldn't install any programs at all from that administrator's account. By "couldn't" I mean I could install them, but upon installation they would never boot. So, I took it to the apple store and did a clean install from the most up to date Lion OSX. Then, I created a brand new admin account, instead of trying to import the old one, and things seemed great. Then, I just imported my old files from the TM backup, but not any system settings, permissions, or user data. Just my Docs, pics, vids, apps, and itunes stuff.
    Here's where things get weird again. I imported this stuff under the name "old", but all of these folders have a red negative sign on them, marking them as restricted. So, from my main admin account, I cannot even peruse these folders. Since I didn't import user data, I can't sign in to the "old" account to change permissions. I already tried to change the permissions from system preferences, but that didn't change anything. And now, for whatever reason, of all the apps that were imported then, MS Office is the only set of apps that does not work. When I click on it, it just says there was a problem and asks if I'd like to send a report to apple. I tried reinstalling it to no avail. I'm an English student, so i really need access to Word. Can anyone help? The Apple store is a major detour for me and would like to fix this issue myself.

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • "Documents" folder is empty, all files and folders disappeared.

    Hello there.
    I was trying to install a software, and since it couldn't work, I was advised to remove different files.
    Since then, seems all my files and folders from "Documents" have all disappeared. They're not in the trash, they're not anywhere.
    I'm actually using MacKeeper to try finding them among deleted stuff. But so far, nothing has showed up.
    Before anyone asks, I did not change my folder user name. Can't be this.
    Thanks for your help. I'm in real ****.
    Friendly,
    Cyrille.

    No I don't have any backups.
    The software I am talking about is Parallels Desktop.
    I had to remove those files :
    rm -rfd /Users/~Cyberpen~/Library/Preferences/com.parallels*"
    rm -rfd /Users/~You~/Library/Preferences/Parallels/*"
    rm -rfd /Users/~You~/Library/Preferences/Parallels"
    sudo m -rfd /private/var/db/Parallels/Stats/*
    sudo m -rfd /private/var/db/Parallels/Stats
    sudo m -rfd /private/var/db/Parallels
    sudo m -rfd /Library/Logs/parallels.log
    sudo m -rfd /Library/Preferences/Parallels/*
    sudo m -rfd /Library/Preferences/Parallels
    sudo m -rfd /private/var/db/Parallels
    sudo m -rfd /private/var/.Parallels_swap
    sudo m -rfd /private/var/db/receipts/'com.parallels*'
    sudo m -rfd /private/tmp/qtsingleapp-*-lockfile
    sudo m -rfd /private/tmp/com.apple.installer*/*
    sudo m -rfd /private/tmp/com.apple.installer*
    sudo m -rfd /private/var/root/Library/Preferences/com.parallels.desktop.plist
    I did this manually (didn't work with Terminal) so I had to go deep into the macbook and sometimes change permissions to access those specific files (I was probably not supposed to touch).

Maybe you are looking for

  • Hardware for Flash Presentations/Kiosks?

    Hi folks, Just wondering if anyone has an overview of what Flash uses regarding system resources. Does it rely more on system memory than graphics card memory? Does having dedicated graphics memory even help? Is it more CPU or GPU intensive? I sure i

  • How to make a Track matte on a text layer??

    Hi, I have two text layers stacked one above the other. The top layer scales up and blows up to reveal the text layer down. I have tried to use the Text Layer above to the down below but it disappears and does not show any effect. The same effect sho

  • How Smart Groups in Contacts transfer to the iCloud

    I have Smart Groups in Contacts on my Mac. When I try to send emails from my iPad, it will recognize that certain people belong to a group, but it won't recognize the group name as a valid email address. How do I fix this?

  • How to install OS9 with OS X?

    Okay, here goes. I got a Titanium Powerbook 400mhz from my sister, she gave it to me because NOTHING worked. So, I bought a used DVD-Rom drive, a used battery, and using Firewire Target mode, I wiped the hard drive and did a clean install of OS 10.3.

  • Unable to redeem prepaid cards

    I'm trying to redeem two prepaid cards--one for Photostop and one for Illustrator.  I keep getting the message "The code you entered is invalid. Please try again."  Just now it has changed to "We're sorry, something seems to be wrong on our end. Plea