C# - Path To Files Inside Content Folder ?


Is the Content folder the root folder? I mean does http://localhost/ point to Content or is it something else? I have a file named dummyIcon.png inside Content/images/temp folder. How do I locate it from my domain layer (which is a Code Library project)? What is the best practice of displaying images in ASP.NET MVC? Should I store a path to the image in the database (which I personally prefer), or do I save a byte array and return it to the view?

View Answers
Very similar questions



AJAX :: Autocomplete Control With Textbox For Data To Be Retrieved From Database? forums.asp.net

Having a problem with autocomplete I put autocomplete control with textbox For data to be retrieved from database, I am putting .asmx file and .cs file for that Now I am giving .asmx file path in autocomplete. asmx file contains path for .cs file If this is the situation, autocomplete dont work and in .cs file , event is not fired. But if i put that event from .cs file directly into the codebehing file of that control, then it works ok How can i call an event in .cs file that is placed inside a app_code folder seperately from .aspx and .cs file of the autocomplete control

How To Delete Entire Folder Contents www.xtremevbtalk.com

i hava developed a content management (CMS) application..my problem is how to remove entire contents inside folder named "My Contents", where inside the folder "My Contents" contained 3 folders (named "DISK1", "DISK2" n "DISK3") and 3 files, n then inside those 3 folder also contained many files n folder more.The problem here is when i used RMDIR "My Folder" - error occured (the folder must be empty), so i remove all files inside "My Folder" used KILL *.*....the result is folder "My Folder" still not empty.im stuck..........Any solution please....please...please.....help me

Professional :: Setting Classpath For Papervision In Flash CS5? forums.adobe.com

I keep trying to get started with Papervision, but I must be entering the classpath incorrectly as I keep getting errors that the compiler cannot find the classes.Is there some kind of bug with setting the classpath on a mac?I checked out the papervision stuff so it sits in: � /Applications/Adobe Flash CS 5/Papervision/as3/trunk/src/ � Inside the src folder is a folder called "org", which contains "papervision3d" and the folders of classes.To set the classpath, I've gone to Preferences, chosen ActionScript, clicked on the ActionScript 3.0 button at the bottom, clicked the plus sign, and then clicked on the little folder button to add a path to the Library box (the middle box). I browsed and selected: � � /Applications/Adobe Flash CS 5/Papervision/as3/trunk/src/ � I thought at this point (after quitting and restarting Flash) that if I created a class file that had, for example, � import org.papervision3d.cameras.* � that it would work -- but it doesn't. It only works if I save the .fla and .as files themselves in /Applications/Adobe Flash CS 5/Papervision/as3/trunk/src/, in the same folder as the "org" folder. And I guess this means that the path in the Preferences setting is useless.�

C# - How To Set Webservice URL Properly stackoverflow.com

I have a ASP.NET application. Inside the asp.net application I have a folder called WebServices where I keep all the .asmx files. I am referring these asmx files inside asp.net .cs files. Instead of giving the full url to the webservice.url property how can i set the path like this. ds.Url = this.ResolveUrl("~/WebServices/xxx.asmx");

C# - How To Get The Current Project Directory Or The Bin Directory And Move A Few Level Up stackoverflow.com

I have an ASP.Net MVC app, and i have some xsl files inside of the Content directory.I've try a few methods to get directory dynamically buy keep on coming short.So how do i get the directory to point to the Content/xsl folder?the closest that i came to was with this:this.GetType().Assembly.CodeBase which only returns the project DLL, but i can't figure out how to move up a few levels from there or what .net library to use to navigate around the path.there's no ../.. :(Basically i want to navigate to the Content/xsl folder which is at the same level of the Bin directory.

C# - Get The Path Of A Cs File In Aspx? stackoverflow.com

How can I get the path of a cs file in aspx? Here's the issue: I've created a property class in a property.cs file which is used in an EPiServer admin module. Server.MapPath() will hence return the path of the executing file, which is in a totally different place than my code. I need to get the path of the property.cs file (from inside the property.cs file) in order to dynamically set some relative paths to css and js files. How can this be done? I hence want to be able to include .js and .css files in this cs file, all files located in the same directory, but the cs file is accessed from the EPiServer UI.

How To Write The Code To Access The Customer_class.cs File forums.asp.net

i have a class file 'customer_class.cs' inside the app_code folder , it is fine that i can run and accessing the class file inside this folder.now i am wondering if i put the class file outside app_code in somewhere else , how to write the code to access the customer_class.cs file ?

MVC :: Finding Absolute Path For Content Folder? forums.asp.net

In ASP.NET MVC 2, how can I get the absolute path to the Content folder from within a model?I'm trying to check for the existence of a file by calling IO.File.Exists. So, I need to convert the "~ContentisFile.png" relative path to an absolute path.I tried getting the application's directory path by calling My.Application.Info.DirectoryPath but that returned some temporary folder that doesn't contain the Content folder.

Use Windows Api To Return Path To Folder - Version: 2003 (11.0) www.utteraccess.com

I want to build a browse button to let users specify the path to a folder where certain files are kept. I have code to use the windows common file open dialog (which would let the user return the path to a file in the folder after they click on the file) but how do I simply let them specify the folder (without having to go inside the folder and click on a file there, then "work backwards" from there to get the path to the folder)

Getting Files Inside A Folder www.vbforums.com

How can u determine what files are inside a folder. I have a program that opens a folder and i want it to determine if there are files inside it and then put the file names and paths inside a listbox. Also, is there a way to determine if there is a folder inside a folder. I'm not using the commondialog control. Any help is appreciated.


Code To Select A File Instead Of Folder www.excelforum.com

I have a code that gives me path of all files inside a folder. I want to modify it. I want to select files (individually or in group) inside a folder and then get the path. All files are .xlsx in folder. [Code] .....

Copy File Name And Contents Of That File In A Specified Path? www.excelforum.com

I just found a code to copy file path and file contents. However it is copying folder path and folder contents.here is my requirement.I will specify a path, macro has to copy that file name in a particular cell, then it has to copy all its contents. ex: file name 1 has 3 sub files in it, file name 2 has 2 sub files in it-- column AColumn B file name1file contents file name1file contents file name1file contents file name2file contents file name2file contents And also i have extend this macro to write a index function. i will tell u about this. but first i need above thing I researched but I didn't find. I need file name in a column then i need file contents in b column. if a file has 10 file contents in a file then that file name should come 10 times in a column, and in b column all its contents.

Loading File From The Same Directory Doesn't Work Unless Specify The Full Path? stackoverflow.com

So I have this line of code inside a WordPress plugin. The code file is in the same folder as the XML file I'm trying to load. When I remove the full path and leave just the filename I get an I/O error. $dom->load("/home/tapadmin/public_html/demo10/wp-content/plugins/". "agentmanager/fielddefs.xml"); What's the correct way to load the XML file so I don't have to specify the full path?

Loading The Content Of A Folder After Clicking On It? stackoverflow.com

A file browser (a very ligth file manager if prefer) based on PHP and Javascript.building a treeview with folders. Code:<ul id="treeview"> <li><a href="#">Folder 1</a></li> <li><a href="#">Folder 2</a> [code]... Each link represent a folder.Want to do from here is loading the content of a folder after clicking on it. Code:public function getContent($path) { //fetch the content of $path directory } [code]...

Instantiating A Class That Is Outside Of Appcode Folder? forums.asp.net

In that i have a seperate class file(.cs). I want to instantiate that class inside the aspx.cs file. I'm able to do that if i put the class file in appcode folder but not able to do if i place the class file outside the appcode folder. kindly let me that whether is it possible to instantiate a class that resides outside the appcode folder?

External Reference To A Javascript File Cannot Be Placed Inside A Subfolder? forums.asp.net

External reference to a Javascript file cannot be placed inside a subfolder other than the main application flooder see the code below, it is working <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SearchBook.aspx.cs" Inherits="SearchBook" Title="Search Books" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <script src="javaScriptCM.js" language="javascript" type="text/javascript"/> BUT THE FOLLOWING NOTE WORKING <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SearchBook.aspx.cs" Inherits="SearchBook" Title="Search Books" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <script src="~/SUBFOLDER/javaScriptCM.js" language="javascript" type="text/javascript"/>

C# - Globally Unique IDs For Files In Windows? stackoverflow.com

how to get globally unique IDs for files and folders in Windows (XP, Vista and 7), and also be able to get the full path of the file or folder just by having the ID, something like getFileByGUID. I'm trying to do this in C++, C# and PHP. The globally unique IDs should stay the same even if the file is moved, so using the full path of the file or folder wouldn't work.

Listing Directory Content In Visual Basic 6 www.xtremevbtalk.com

I have a folder called c:myFolder. Inside the folder has 3 files, which is a.gif, b.gif,c.gif, and a folder called subFolder.Now given the path C:myFolder, how do get all the file name or folder name inside? And how to distinguish a folder from a file?(I only need first level of file name, ie no need to recurse the subfolder)

Listing Directory Content In Visual Basic 6 www.vbforums.com

I have a folder called c:myFolder. Inside the folder has 3 files, which is a.gif, b.gif,c.gif, and a folder called subFolder.Now given the path C:myFolder, how do get all the file name or folder name inside? And how to distinguish a folder from a file?(I only need first level of file name, ie no need to recurse the subfolder)

Treeview - Display The Selected Contents Of Treeview Into The Listbox? www.vbforums.com

i have a treeviev and listbox.i want to display the selected contents of treeview into the listbox.my code is working for file but not for folder. means i want, if the all contents of folder ABC(i.e all files) are selected then in listbox i want to show the only path of folder not the seperate path of each file.

VS 2008 Displays Contents Of A Certain Folder In Local Drive? www.vbforums.com

A form that will display the contents of a folder? I have my forms set up, I want the user to then click on a button that will load up a nw form which will contain a window that is a folder in one of my drives. There may be folders inside this main folder which the user can go into, but they can't go back frrom the original main folder and look at the other contents. First up, Is an explorer form the one I am looking for? Making one of those, it seems to be the right path but where to from there? Another thing I need to be able to do is have the user double click on the files inside of the folder. When double clicked the folder still maintains its current state, as the files that will be clicked will do the work in the background. I have all the forms set up and linked together, I just need to know how to get this folder into a form..

Android :: Get Pictures Folder Path groups.google.com

Does anyone know how to get the real filesystem path where the images are stored? I know that Using Media.EXTERNAL_CONTENT_URI thru a content provider you can get the pictures inside the folder and from there get the path. but if the pictures folder is empty, how I can get the full path?

Probably Really Simple www.xtremevbtalk.com

i have been using a fiellistbox to look at a folder and display all the files in a listbox ok thats sorted but now i need to look at a folder and put all the sub folders inside it into a listbox ( no files) i.e put the name of the sub folder ( sub folder is that what you call it anyways) as the list1.text i have tried using a dirlistbox but when i set the path to the main folder where i want to look at the subfolders how do i add all the names of the folders inside this folder to a listbox?

Web Forms :: Folders Name That Default.cs Located In? forums.asp.net

I have created a Folder and inside this folder, I have put a default.aspx and a default.cs file. I wonder how it is possible to find out what is the folders name as the default.cs is located in. This meens that I am looking for a code to determine what folder that is above in the hierarchy of folders?I cant use this code as this goes all the way back to the root: [Code]....

WordPress Clear $GLOBALS And Include The Script File Can't Access? stackoverflow.com

What I want to do is to include one of my PHP scripts in a Word Press theme.The problem is that after I include the script file I can't access, inside functions in the theme file, variables declared in the script file. I have created a new file in the theme folder and added the same code as in header.php and if I open that file it works just fine.So as far as I can tell it's something Word Press related. /other/path/wordpress/wp-content/themes/theme-name/header.php // this is broken /other/path/wordpress/wp-content/themes/theme-name/test.php // this works /var/www/vhosts/domain/wordpress/ ->(symlink)-> /other/path/wordpress/ /other/path/wordpress/wp-content [code]...

C# - What Is Wrong With This File Path stackoverflow.com

I have two folders called CSVLoad and Forms... I have an aspx page inside forms folder which has a fileupload control. I save my uploaded file to my CSVLoad folder i gave the following path FileUpload1.SaveAs(Server.MapPath("CSVLoad//" + FileUpload1.FileName)); I am receiving file not found exception. Could not find a part of the path 'F:WebSitesPayrollFormsCSVLoadEmployeesdata.csv' CSVLoad folder is outside Forms folder (ie) both are root level folders of my application Answer : FileUpload1.SaveAs(Server.MapPath("~/CSVLoad//" + FileUpload1.FileName));[URL]

Defining The Path Directory Of Voting System? bytes.com

One of the steps it requires to defining a path to the directory of this voting system.The Folder that contains this system is called Pulse.Inside this folder is a file named pulse.config.php.Inside pulse.config.php is where need to define a path.In the line:define('PULSE_DIR', '//DEFINE HERE'); // absolute path of the dir where Pulse is; WITHOUT trailing slash without SLASH.

Rename The Folder Name Contains Empty Space Folder www.vbforums.com

I have problem here. I use Drivelistbox and filelistbox. If I click the file inside the folder that contains empty space in its folder name, How I can rename the folder?Like this, If I select the file inside this folder, How I can rename TKSSBlock C to this TKSSBLOCKC ?Code:C:DatabaseBOUNDARIESTKSSBlock CONECode: If InStr(1, Dir1.Path, " ") > 0 Then MsgBox "Pastikan tidak terdapat ruang kosong pada folder, sila buat penamaan semula.", vbExclamation, "Penamaan folder" Exit Sub

Files Inside Folders www.vbforums.com

Hi guys,We use VB Code:bi.ulFlags = BIF_RETURNONLYFSDIRS  pidl = SHBrowseForFolder(bi)  'the dialog has closed, so parse & display the 'user's returned folder selection contained in pidl  path = Space$(MAX_PATH)      If SHGetPathFromIDList(ByVal pidl, ByVal path) Then     pos = InStr(path, Chr$(0))     Label1.Caption = Left(path, pos - 1)  End If to open up a window that shows all network drives and folders on the hard drive etc. I was just wondering if there is a way to show files inside those folders ???? I hope you are getting what i am trying to say !!

Add Folder To Protected Directory social.msdn.microsoft.com

I am trying to download a file into a directory. Basically when the user presses a button the code will make a folder and download a file into that folder. I want to make that folder inside an Atari Program Files. It Reads "C:Program FilesAtariRollerCoaster Tyccon 3 PlatinumCars..Inside the cars directory i want to make a folder but when i try it fails. but when i change the whole path to my desktop it doesn't fail.

Dynamic - Included Files Writing Their Own Content From Importer Values? stackoverflow.com

I have a index.php file that will include several external files: "content/templates/id1/template.php" "content/templates/id2/template.php" "content/templates/id3/template.php" etc. All these files are loaded dynamically into index.php (it reads all folders inside "templates" directory and then includes every "template.php" file).I want to make "template.php" to have the same code in all the "id1,id2,id3" folders, BUT to load values from index.php depending in which folder it stays.

Creating An Xml File Of A Folder.. www.vbforums.com

hello, everyone...i'd like to ask.. how can i create an xml file containing information about a folder?i mean..let's say there's a folder cfolder in drive c.. so the path would bec:/cfolderhow do i go about getting all the files inside cfolder and place them inside an xml file?if there are subfolders in cfolder, then i'd like to be able to get those subfolders and the files inside them...can anyone give me help on this matter? thanks...

Where Can I Find Windows Folder Names For Different Languages? www.vbforums.com

Hi,I am trying to internationalize a program - I found that a main feature doesn't work if languages other than English are the main Windows language because I search for the names of folders, e.g. Code:C:Documents and SettingsAdministratorLocal SettingsTemporary Internet Files in Spanish looks like Code:C:Documents and SettingsAdministradorConfiguracion localArchivos temporales de Internet (without the accents and stuff).My program only searches for strings inside folder names to locate Temp (searching for "Temp") and Temporary Internet Files folders (searching for "Content.IE5") and then figures out where these folders sit, and if they are part of a user account folder system, then they are marked as "safe to be emptied".I need either a link with a list of all the international names that system folders can have or another way of dealing with this. I could maybe read out the path of the Temporary Internet Files folder (CSIDL_INTERNET_CACHE is supposed to do that), then take apart the paths ("") and get to my folders this way.What would you suggest?I'd definitely like a link to international folder names if there is one to help testing - I couldn't find one.Thanks!

OLEDragDrop Get The Full Path Of Every File www.xtremevbtalk.com

Hi alllook, I have a list box with the drag&drop property set to automaticwhat i want is that when the user picks a file, inserts the full path into the listbox and when you insert a folder inserts all the files inside that folderthe code works fine, but i cannot get the subfolders that are inside a folder, an example: if I insert this folder:+ MyFolder---- File 1---- File 2---+ SubFolder 1------ File 3-----+ Subfolder 2-------- File 4i only get the file1 and file2, and what I want to get is this:MyFolderFile1MyFolderFile2MyFolderSubFolder 1File 3MyFolderSubFolder 1Subfolder 2File 4the code i'm using is this: Code:Private Sub List1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single) Dim bucle As Integer Dim bucle2 As Integer Dim MyFolder As New FileSystemObject Dim Rootfolder As Object Dim Subfolders As Object ' First bucle, all the files you have dropped into the listbox For bucle = 1 To Data.Files.Count If IsDirectory(Data.Files.Item(bucle) & ".") = True Then Set Rootfolder = myfolder.GetFolder(Data.Files.Item(bucle) & "").Files For Each Subfolders In Rootfolder List1.AddItem "Dentro de " & Data.Files.Item(bucle) & "" & SubCarpetas.Name Next Else List1.AddItem Data.Files.Item(bucle) End If Next bucleis there a way to get all the files that are inside a folder and get the full path of each one?thanks

VS 2008 - Add An Option To Windows Explorer Right Click Menu? www.vbforums.com

I did some research and i found that i will need to edit the registry.So if i make a folder called "Get Path" in the ContextMenuHandlers folder.When i click on the file in windows explorer or desktop etc i will have the option called "Get Path".Now for the value key what do i put inside?What i want is when the user right - clicks on the file my program starts up and displays the path of that file on a msgbox or listbox. I was thinking of letting the Windows Installer (.msi) doing this for me.

Move Files From One Directory To Another? www.phpfreaks.com

I'm looking to move any files from one directory (parsers) to another (complete).� Now i've tried two ways <? /*�Set�the�path�details��*/ $path�=�'/home/*******/parsers/test/parse/';�//Directory�which�I�read�from� $complete�=�'/home/*******/parsers/test/complete/';�//Directory�which�I�wish�to�place�into� $dir�=�opendir($path);� while�(false�!==�($file�=�readdir($dir)))�{� rename("$path/$file",�"$complete/$file");� [Code].... Moves file to 'complete' but then completely deletes the 'parse' folder, when I want the 'parse' folder to remain in place, but just have it's contents moved to 'complete'?

Wininet Dll .. Why Wont This Work. Code Is 100% Correct. www.xtremevbtalk.com

Code:Private Sub download()Dim fd As WIN32_FIND_DATA 'storing file infoDim ifind As Long 'finding first file handleDim tempstr As StringFF = FreeFile()Dim whatdir As StringDim what As BooleanIf (FtpSetCurrentDirectory(hconn, "public_html/")) Then Open App.Path & "/list.txt" For Input As FFDo While Not EOF(FF) Input #FF, tempstr MsgBox tempstr 'if the folder from the text file is there If (FtpSetCurrentDirectory(hconn, tempstr)) Then ifind = FtpFindFirstFile(hconn, "", fd, 0, 0) 'make the folder on the comp. 'the Delltree function will delete anything DelTree (App.Path & "" & tempstr) MkDir App.Path & "" & tempstr MsgBox "folder in" MsgBox ifind Do 'found = FtpGetFile(hconn, fd.cFileName, App.Path & "" & tempstr & "" & fd.cFileName, False, 0, 0, 0) 'SleepEx 500, False 'pause for 2 seconds MsgBox fd.cFileName Loop While InternetFindNextFile_FTP(ifind, fd) goback = FtpSetCurrentDirectory(hconn, "..") MsgBox goback MsgBox "folder done" End If LoopUnload MeEnd IfAs you can see I am trying to open a folder, download its content, go back, open another folder, and download its content.It works FINE for the first folder but then ifind becomes = 0 and it dosnt run. whats wrong with it?

Problem With Deleting Folder www.vbforums.com

Hi!I have a problem with deleting my folder, I get the runtime error 75.I know the reason of the problem I just can't fix it, here's what happens:If there are files in my folder then the program should delete it, in my code i have written that it should remove the folder also after the deletion of the files. But I don' think VB waits until it has deleted all the files, it deletes the files and while doing that, it tries to delete the folder so thats where the error comes, Path/File access error, because the program is trying to delete the files inside the folder it can't the delete the folder.I hope you understand what i wrote :P its kinda messy,So how can I fix this? Maybe putting my program to "sleep" like 5 seconds so it can delete all files, maybe putting the file-deletion into a loop, though I don't know how to code any of this in VB6 (yes, I'm a bit newbie to VB6) so can you please help me?Here's my code:Code:Private Sub Timer4_Timer()'"Globals" didn't work in VB6 so i put it here insteadDim delFiles As String 'Define the folder to look for files to delete as stringdelFiles = "C:FolderDeleteTestC*.*" 'This is the path to the folder which any file '-should get deletedDim delFolder As String 'This is the same as delFiles but the folderdelFolder = "C:FolderDeleteTestC" 'Path to folder'THE NEW TIMER FOR TIMER1, TIMER1 MESSED UP SO THIS IS THE NEW ONE.btnCancel.Enabled = False 'Before starting to delete anything, disable buttons so that the userbtnStart.Enabled = False 'Can't Cancel or restart the deletion and mess the computer upIf Dir$(delFolder, vbDirectory) <> "" Then 'If the 'delFolder' folder exist then'Continue with this...'Tell the user that the program found the folderlbProgress.AddItem ("Found the folder...")txtProgress.Text = txtProgress.Text & " Found the folder... "If Dir$(delFiles) <> "" Then 'If there exist files in the 'delFiles' folder then'Tell the user that the program found files inside the folderlbProgress.AddItem ("Found files inside tibia folder...")txtProgress.Text = txtProgress.Text & " Found files inside folder " Kill delFiles 'Do this, delete the files RmDir (delFolder) 'Do this, delete the folder'Tell the user that the files and the folder was deletedlbProgress.AddItem ("Deleted the files and the folder...")txtProgress.Text = txtProgress.Text & " Deleted the files and the folder... "Else 'Else'Tell the use no files were found inside the folder so just deleting the folder nowlbProgress.AddItem ("No files inside the folder, deleting the folder...")txtProgress.Text = txtProgress.Text & " No files inside the folder, deleting the folder... " RmDir (delFolder) 'Do this, if there exist no files in 'delFiles' then just delete '-the folder.lbProgress.AddItem ("Deleted the folder...")txtProgress.Text = txtProgress.Text & " Deleted the folder... "End If 'End if of files partElse '(FOLDER) Else 'Do this, if the folder does not exist then thislbProgress.AddItem ("Folder does not exist, deletion aborted...")'Write the progress to the textbox which will log everything txtProgress.Text = txtProgress.Text & " Folder does not exist, deletion aborted... "End If 'End If of folder parttLogs.Enabled = True 'Enable the log-timer to make the logs and output info in the listboxTimer4.Enabled = False 'Disable this deletion-timer so that it dont restart and delete againEnd SubPS: I have lots of comments, I did this for my self to not forget what each and everything does, since I'm just starting to learn VB6.//Yours Truly, Zeelia*EDIT* THE ERROR COMES WHEN RMDIR COMES!!!!!!!! :P forgot to tell that!

Content Controls Are Allowed Directly In A Content Page? forums.asp.net

I am getting this error "Only Content controls are allowed directly in a content page that contains Content controls". I am using a single aspx page and not a separate cs file. Now, to write code inside aspx page, I am using <script> tag. Now, my problem is inside one of the method I have to use <script> tag. Now, when i use that this error comes. Eg [Code]....

File To Write Content In The Folder? www.sitepoint.com

open the file to write content in the folder, below is the code: $fo = fopen("/zeeproject/phpforms/vehiclecollection.txt", "w+") or die("can't open file"); it is giving erro can't open file, The path which i have given is inside joomla on linux.

Ubuntu :: Use Rsync To Copy ONLY Home Directory And No Files? ubuntuforums.org

How can I use rsync to copy ONLY the my home folder (and nothing inside of it, just the folder name) to another machine. I've tried things like Code: rsync -av /path/to/src /path/to/dest/ or Code: rsync -av -f"+ */" -f"- *" /path/to/src /path/to/dest/ This last option recursively (through the -a switch) copies only folders, including all subfolders. If I try Code: rsync -v -f"+ */" -f"- *" /path/to/src /path/to/dest/ nothing is copied (not even my home folder.

Zipping The Contents Of Directory www.webhostingtalk.com

Zip the contents of a directory (/path/to/dir/*) and then include a file in that zip that is located here: /a/whole/different/path/file.jpg. Is there a ZIP parameter that allows me to include that JPG file in the ZIP file that I am creating? Can someone give me the command? Also, instead of zipping the contents inside of the "dir" directory, can I zip the "dir" directory itself but exclude the full path when creating the zip (/path/to/ part). I can do this with the -j parameter but when I do it also excludes the "dir" directory and only ZIPs the content inside of it.

Pear - MAMP Path - Files From The Folder In Bin And Moving Them Into Htdocs stackoverflow.com

I downloaded some PEAR files and they're in the bin folder of my MAMP directory. Inside the bin folder, they're in a bunch of subfolders (php 5.3/lib/php/pear etc) as you can see below However, the files that are requiring PEAR are in htdocs, so they're not connecting at all. I'm cautious about taking all of those files from the php folder in bin and moving them into htdocs, yet it would also be a complicated file path to include them in every file from htdocs. # Setting PATH for MacPython 2.6 # The orginal version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/2.6/bin:${PATH}" export PATH # Setting PATH for MacPython 2.5 # The orginal version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}" export PATH [Code].....

ActionScript 3 :: Referring To External Source In Flex Compiler stackoverflow.com

Is there a external-source-path option available in Flex compiler similar to external-library-path? My requirement is that, I am building a "SWC" file but I don't want to include certain folders inside my 'src' folder as these are anyway available in my other application during run time. (Trying to be resource constraint). So, I want to use these folders during compilation but do not want to include them in the generated "SWC" file.