Tuesday, May 31, 2011

Storing properties in VB.NET?

I have an application that I'm developing in VB.NET. One function it has is to process input files from one directory and produce output files to another directory. I want the locations of these directories to be put into a flat file and read when the application begins. This will give administrators the ability to change the directory path without having to recompile the application. I have done this in Java using a .properties file. How is it done in VB.NET?Storing properties in VB.NET?
Here is a code sample from Microsoft

http://msdn.microsoft.com/en-us/library/



It basically scan's folders and files....all you'll need to do as add the part where you said to produce output files into a flat file....should be fairly straightforward.Storing properties in VB.NET?
Try this code. Use getDirs to open the file and get the input and output directories. The structure ';dirs'; is just a structure to store the input and output directories.



'Start code'



Const propFile = ';C:\PropFile.txt'; 'This is where the property file is stored



Structure dirs

Dim inputDir As String

Dim outputDir As String

End Structure



Function getDirs() As dirs

Dim content As String = My.Computer.FileSystem.ReadAllText(propF?br>


Dim data() As String



data = Split(content, ';,';)



Dim retVal As dirs



retVal.inputDir = data(0)

retVal.outputDir = data(1)



Return retVal

End Function





'End code'





In PropFile.txt, place the input and output directories on the same line, seperated by a comma. (input first, then output) like this:



C:\Input.txt,C:\Output.txt



So the admins only have to edit this file. Just remember to keep the comma.



To retrieve this info in the program, call the getDirs function, with the path to the properties file as its argument, and store the result in a variable of type ';dirs';. Then, use the inputDir and outputDir property of the variable to get the respective values. Like this:



Dim MyDirectories As dirs

MyDirectories = getDirs(';C:\PropFile.txt';)



Dim InputDirectory as String = MyDirectories.inputDir 'Holds inputDir

Dim OutputDirectory as string = MyDirectories.outputDir 'Holds outputDir





Hope this helps!

I need help with Oracle 10g for Windows. Anyone know how to open a terminal window?

Also, how do I change the working directory?I need help with Oracle 10g for Windows. Anyone know how to open a terminal window?
A ';terminal window'; is a command prompt. On Windows, you can access this by going Start -%26gt; Run and entering ';cmd';. On UNIX systems, you have to start a terminal through whatever GUI they have (on Red Hat Linux, for example, you can get a terminal through Applications -%26gt; System Tools -%26gt; Terminal).



You change the working directory of a given terminal by issuing the cd - ';change directory'; - command. For example, if you were on the C:\ drive and you wanted to go to C:\Oracle , you would type:

cd Oracle



If you wanted to go up a directory, you would type:

cd ..

because .. means ';the directory above this';



You can also use a full path, so if you wanted to go from C:\Oracle to C:\WINDOWS\system32, you could use either of these:

cd ..\WINDOWS\system32

cd C:\WINDOWS\system32



On Windows, you can get more help on the cd (and other commands) with ';help cd'; and ';help';. On UNIX, you would use ';man cd'; and ';man sh';, because 'man' stands for 'manual'.

Loading Mozilla on drive other than 'c' drive.?

I have made 4 partitions on my sata HD. 1st('c' drive) for windows, 2nd for most other soft wares and remaining two for exe files and data. I downloaded mozilla on my desktop. The set up wizard of Mozilla does not give me the option to install it on any other place than 'c' drive. How do I change the directory to say 'E' or 'F' drive?Loading Mozilla on drive other than 'c' drive.?
Select custom install instead of typical or what ever the default is and it will give you the option.Loading Mozilla on drive other than 'c' drive.?
If there is not a custom install, you can't.
keep it in c drive cas it will be best suiteed there as c drive manages all the softwares better any others.

When I try to make a yahoo 360 page it says that my email address is already being used, what do I do?

I have recently tried to create a yahoo 360 page but every time that I do it tells me that my email address is already being used and that I need to go to the member directory and change my email address? What do I do? How do I go about fixing this problem?When I try to make a yahoo 360 page it says that my email address is already being used, what do I do?
I had the same problem and I asked a question about it:-



http://uk.answers.yahoo.com/question/ind



Some people told me to set up another email address but I haven't tried that so I don't know if it would work. The Best Answer says 360 is closing down and Yahoo are not fixing the glitches so I don't think it's worth bothering with it.
  • squirrel stalking
  • tighten loose skin
  • I am looking at a webpage and it asks me to change something in the root directory?

    In order to view the page. Is it safe to do it and how do I do it? Thanks.I am looking at a webpage and it asks me to change something in the root directory?
    Sounds like you had your homepage hijacked! DON'T DO WHAT IT SAYS TO!! Run virus scan %26amp; clean any virus threats. May also be helpful to do a system restore to last week.I am looking at a webpage and it asks me to change something in the root directory?
    Don't do it!!

    I've never run across this, would never do it because a webpage asks you to, why would you?
    because i like hedgehogs i will tell you a golden rule, never change anything on your system because a site or web page wants you to, if a site wants you to access it then it will be set up ready for you to access it, you should not have to make changes to your system to accomodate the site. If it wants you to make changes then there must be some other motive for this. Why not post the name of this site on here for everyone to see, there will then be more chance to expose them for what i suspect them to be. I am so pleased that you had the foresight to post the question here before making changes. take care and good luck, by the way, we now have 2 families of hedgehogs in the garden, do you know how noisy they are when they fight LOL.

    How to get rid of duplicant content in...?

    How do you get rid duplicant content on a wordpress blog. For example i want to stop google %26amp; other search engines indexing the /tag/ directory since it douples up posts in google. Also i changed the permalinks structure from /2010/.../ to a imrpoved SEO structure and google still shows the /2010/ links since they redirect to the new structure. So what do i do? Do i write in the robot.txt file to disallow those directories .. /2010/ %26amp; /tags/ or would that make it worse for SEO? and should i have the categories indexed or not? please answer my 2 questions :] would be happy if you did.How to get rid of duplicant content in...?
    did u try wordpress duplicate remover plugin?? just search for it

    Can you perform more than one command in DOS?

    Can you perform more than one command at once in MS DOS? And if so, how do you do it?



    Im trying to make two directories, then change my current directory to one of the newly created ones at the same time, is that possible?



    Im trying:



    E:\md one two; cd oneCan you perform more than one command in DOS?
    You're talking about executing multiple commands on one line like in Unix? Try ';%26amp;%26amp;'; instead of ';;';Can you perform more than one command in DOS?
    Yes, simple command structures are '; Format C:\ U'; this means your formatting C drive with no conditons or replace U with S to copy system files when formatting. etc... If you use a start disk you'll see that a ram drive is created to hold the tools needed etc... you cant make the directory (MD) if E dosn't exist also E wont be a dos system partion anyway you need to make it so with Fdisk so with what I'd say is limited knowledge then stay clear. Suggest you download or read up on dos 6 or above 6.22 for instance, perhaps find an old pc to muck about with load the dos and use help funtion and text contained to learn more about dos.
    Yes, type ';help'; [Without quotation marks] and you will see a complete list of commands
    Can't be done
    put the commands in one text file and save the file with the extension as bat



    and double click it
    You can create an MSDOS batch (.bat) file with the commands you want to execute and then run that batch file from the command prompt or by double clicking in windows explorer.

    There's a good introduction here with examples

    http://www.computerhope.com/batch.htm

    How to solve intermittent ';Can't connect to MySQL server';?

    Hi there,



    Recently, I started getting small periods of intermittent connection errors (Error number 2002) about once every hour, lasting for about 1 to 5 minutes each time:

    Can't connect to local MySQL server through socket

    '/var/lib/mysql/mysql.sock'



    - Not using persistent connections

    - All PHP scripts close their connection to mysql

    - maximum connection limit is about twice that of the peak amount of users online at once.



    Also

    - server doesn't crash/restart, it keeps running

    - errors don't match the number of users online on the website



    Made 5 changes thusfar

    - changed the directory containing the mysql.sock to protect it

    - I changed the default socket file setting in both my.cnf and php.ini

    - disabled SELinux completely, rebooted the server and double-checked that it is indeed disabled.

    - Changed the maximum amount of open files allowed by the operating system from 1024 to 30000.

    - tried using tcp/ip



    still getting the errorsHow to solve intermittent ';Can't connect to MySQL server';?
    What version of MySQL are you running? You could try to check at the mysql web site if there is any patch available to correct this problem because it seems to be a problem of MySQL itself.

    Change name of local profile home directory?

    A friend want name of folder in C:Documents and Settings changed. Folder Is named JaneP and wants to change name to JaneG. Signs on to AD network currently as JaneG. How do I change name of this local system folder and still ensure sign-on and access ok? Thanks.Change name of local profile home directory?
    You can rename the profile in AD and she will only see the new name on the logon, but the old directory name will remain.

    If you really want to do this

    The easiest method (there are several)

    1. create new profile

    2. copy old profile over the top of new profile.

    3. set permissions for entire file structure (advanced permissions) for full access by new user.

    4. logon to pc and test.

    This may have errors on the logon - in which case you will have to go through the registry settings of the server to see what parts of the structure are updating or not.

    You can also try to convince her to keep her maiden name.
  • reliable web hosting
  • cute hair
  • Is there a way to change my site's description on MSN's directory? What about getting real help on Yahoo?

    I've changed the content on my website drastically over the past four years since I acquired it, but it still has the same description on MSN as before even though the description has been changed on Google and Yahoo. I thought MSN's listings used the same descriptions as Yahoo, like MSN was using Yahoo's content for their searches, but I'm not so sure about that now. And I can't find any links on the MSN home page on how to change site descriptions in their directory.





    And speaking of my listing on Yahoo, I've been trying for the past two months to get them to change a typo they made when posting the new description they drastically rewrote from what I e-mailed them, and their customer service people seem to be non-existent. I got one e-mail from a real person more than a month ago, but it wasn't much more than a form-letter reply, and now I can't get any response at all. And I'm not happy that they changed the description I wrote AND made a typo that is still there. Any suggestions?Is there a way to change my site's description on MSN's directory? What about getting real help on Yahoo?
    Have you changed your HTML description on your site? I am not sure about if you are using 'their' editor, but if you have created a site and are able to use an HTML editor, you need to change your description there.

    It would look like:

    %26lt;meta name=';keywords'; content=';widgets, gadgets, ....';%26gt;

    %26lt;meta name=';description'; content=';Welcome to...';%26gt;

    Then resubmit your site to Google, etc. and it should change it when there spider gets it again.

    It could take a week or more to have it read your new code, but then it should be there.



    Addition to answer:

    The problem might be that you have it still wrong in the HTML.

    You have it:

    %26lt;META content=';Thought-provoking articles on Christian living, links to dozens of online Christian radio stations, free Bible downloads, prayer request message boards, and one man's account of how his life was radically changed by another man, Jesus, ';Da Vinci Code';, da vinci code, ';DaVinci Code';, davinci code'; name=';description';%26gt;

    It should be:

    %26lt;META name= ';description'; content=';Thought-provoking articles on Christian living, links to dozens of online Christian radio stations, free Bible downloads, prayer request message boards, and one man's account of how his life was radically changed by another man, Jesus, ';Da Vinci Code';, da vinci code, ';DaVinci Code';, davinci code';%26gt;



    Another thing...are you paying for this inclusion? You may just have to resubmitted to them. Like start over to get it right. Or Call them directly...Yahoo! Inc.

    Customer Care - Privacy Policy Issues

    701 First Avenue

    Sunnyvale, CA 94089

    (408) 349-5070



    http://search.yahoo.com/info/submit.html



    http://help.yahoo.com/help/us/ysearch/slIs there a way to change my site's description on MSN's directory? What about getting real help on Yahoo?
    u please re-submit the site to yahoo and google again. it will definitely get changed to new description.

    FileTree.java very complex, can someone help me get started?

    Need helping getting started on method ';public void mkdir(String dir) throws TreeViolationException {';. Need a step by step psuedocode or explanation of how to do this algorithm. Thank you.

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

    Here is the link for the assignment:

    http://remus.rutgers.edu/cs112/2009/spri

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

    Here is my FileTree.java:



    package apps;



    import structures.*;



    import java.io.BufferedReader;

    import java.io.IOException;

    import java.util.StringTokenizer;

    import java.util.ArrayList;

    import java.util.NoSuchElementException;



    /**

    * This class implements some UNIX filesystem commands, using a general

    * tree to implement the filesystem.

    *

    * @author ru-nb-cs112

    *

    */

    public class FileTree {



    /**

    * The full pathname of the current directory, starting with ';/';,

    * not containing any '..'

    * Unless the pathname itself is just ';/';, it may not end with ';/';

    */

    String currentDirectory;



    /**

    * The actual general tree node of the current directory

    */

    GeneralTree currentDirNode;



    /**

    * Maintains the state of the filesystem by using methods and

    * structure of GeneralTree

    */

    GeneralTree fileSystem;



    /**

    * Builds an ';empty'; file system with root set to ';/'; and no

    * other files or directories under the root.

    * The current directory would be ';/';, the root of the new tree.

    */

    public FileTree() {

    fileSystem = new GeneralTree();

    fileSystem.makeRoot(';/';);

    currentDirectory = ';/';;

    currentDirNode = fileSystem;

    }





    /**

    *

    * Builds a filesystem by reading its structure from the

    * given BufferedReader. The structure is represented as

    * the preorder and postorder traversal pair. The preorder

    * traversal is listed first, followed by the postorder traversal,

    * one string per line for each node of the file tree.

    * The current directory would be ';/';, the root of the new tree.

    * NOTE: The root of the filesystem MUST be ';/';.

    *

    * @param br BufferedReader from which tree traversals are read

    * @throws IOException if there is an IO error while reading.

    * @throws TreeViolationException if the input does not represent a legal

    * FileTree with ';/'; at root.

    */

    public FileTree(BufferedReader br)

    throws IOException, TreeViolationException {

    fileSystem = new GeneralTree();

    currentDirectory = ';/';;

    currentDirNode = fileSystem;



    ArrayList%26lt;String%26gt; temp = new ArrayList%26lt;String%26gt;();

    String line;

    //Read from the file

    while((line=br.readLine()) !=null){

    temp.add(line);

    }//while



    int numNodes=temp.size();



    //checks to make sure there are nodes and there aren't an uneven amount

    if((numNodes%2!=0) || (numNodes==0)){

    throw new TreeViolationException();

    }//if



    String preOrder[] = new String[numNodes/2];

    String postOrder[] = new String[numNodes/2];

    int count=0;



    //put into preOrder[]

    for(int i=0;i%26lt;numNodes/2;i++){

    preOrder[i]=temp.get(count++);

    }//for



    //put into postOrder[]

    for(int j=0;j%26lt;numNodes/2;j++){

    postOrder[j]=temp.get(count++);

    }//for



    //build the tree

    fileSystem.buildTree(preOrder,postOr?br>
    }



    /**

    * Returns the full path name of the current directory.

    *

    * @return Full pathname of the current directory

    */

    public String pwd() {

    return currentDirectory;

    }//pwd



    /**

    * Given the FULL or RELATIVE pathname of a directory, changes

    * current directory to it.

    *

    * @param toDir Directory to which current directory is changed

    * @throws NoSuchElementException if the directory does not exist

    */

    public void cd(String toDir)

    throws NoSuchElementException {



    //fileSystem

    //currentDirectory

    //currentDirNode













    /*** COMPLETE THIS METHOD ***/

    /*** The currentDirNode and currentDirectory fields must be

    updated to the new current directory. ***/



    }//cd



    /**

    * Given the FULL or RELATIVE pathname of a directory, returns a

    * ArrayList that consists of the BASE NAMES of the directories

    * in the specified directory. If the RELATIVE pathname is null,

    * it means contents of the current directory itself.

    *

    * @param dir Directory whose contents are listed

    * @return Contents of the given directory, null if there is nothing

    * in the current directory

    * @throws NoSuchElementException if the directory does not exist

    */

    public ArrayList%26lt;String%26gt; ls(String dir)

    throws NoSuchElementException {



    /*** COMPLETE THIS METHOD ***/































    return null;



    }//ls



    /**

    * Given the FULL or RELATIVE pathname of a directory, create it

    * at the correct location.

    * NOTE: All directories in the path name except for the last (new)

    * one are assumed to already exist.

    * Examples: (0) mkdir ';/usr'; will create the directory ';usr'; under root

    * (1)FileTree.java very complex, can someone help me get started?
    I highly recommend that you create JUnit tests for each of these methods. http://www.junit.org/



    It will speed up your development time dramatically. (and your error checking).FileTree.java very complex, can someone help me get started?
    haha, that looks long and boring.

    For Windows IT people: How do I change the Windows Server (IIS) root directory?

    I have IIS setup but am currently working off a virtual directory directed at http://localhost/directory



    I want to have windows recognize this folder as the root. (http://localhost). How do I change this?



    thanks!For Windows IT people: How do I change the Windows Server (IIS) root directory?
    i need more info. i didnt get you exatctly

    if you mean the Defulte website in IIS so it is http://localhost

    you may want to change its directory, right click on the website ---%26gt;home directory tab and change it.

    you can change every websites directory with this method.

    i hope it helps!

    mail me if didnt get you answerFor Windows IT people: How do I change the Windows Server (IIS) root directory?
    I believe you want to make a new website not a new virtual directory. As far as i know virtual directories are typically subordinate to the website they are created under so it will require a header to access (thus not the root).

    M sick of....Folder Option View Settings?

    I have had issues getting Vista to remember folder display settings from Day

    1. I had hoped SP1 would fix them, but it didn't. I haven't seen anything

    from Microsoft even acknowledging that there is a problem, so I don't have

    high hopes that the issues will be fixed by SP2 either. The fixes I have

    found on-line work temporarily, but eventually Vista starts ignoring the

    customized settings. Over the past couple of days, folder display settings

    are being randomly changed by Vista with increasing frequency. As well,

    changing the settings in one folder will result in changes in another

    completely unrelated folder. This bug is no longer just a minor annoyance.

    I am very close to going back to XP because of it, even though I quite like

    Vista. On to the description of the problem:



    I have Windows Explorer set to open with My Computer expanded. The drives

    are supposed to be shown as tiles, and grouped by type. A couple of days

    ago Windows Explorer opened with the drives showing as an ungrouped list

    instead of as tiles. I customized the view to display as grouped tiles. I

    went into My Documents and found my self looking at Picture and Video

    thumbnails, even though there isn't a single picture or video in the

    directory. The directory is supposed to be set to Documents with details

    displayed, and every subfolder is supposed to have the same settings. I

    went into Customize Folder control panel, and found that it was still set as

    Documents with settings applied to subfolders. I changed it to All Items,

    clicked apply, and then reset it to Documents. However, even though I had

    specified that this same setting be used for subfolders, numerous subfolders

    still display as Pictures and Videos. If I reset them to Documents view,

    the settings in the parent directory revert to Pictures and Videos. If I

    reset the parent directory, a whole bunch of new subfolders that were fine

    before now display as Pictures and Videos. I spent about 20minutes trying

    to get the folders to display as I wanted them, but I eventually gave up

    because I wasn't able to predict how customizing the view of one folder was

    going to affect the view of another folder. I returned to My Computers and

    found the drives being displayed as a list. I reset the display to show

    tiles again. Returning to My Documents, I found myself staring at

    thumbnails with all the customizations I had just made gone. Grr...Arghh!!!



    On my D drive, I have a Temp folder in the root directory. I went into it

    and found it displaying Music Icons even though there were no music files of

    any kind in the directory. I reset it to display Documents with details

    listed. I went in to My Music directory, and found that instead of showing

    Music Icons, it was showing Documents with details listed. I set it back to

    Music Icons. I went back to the Temp directory, and found that it had been

    changed to Music Icons as well. Customizing the display type for either

    directory changed the settings for the other directory. They are completely

    unrelated directories, so I don't have a clue why the settings for one

    affects the others.



    Any insights as to what is going on, and how to fix it, would be

    appreciated.M sick of....Folder Option View Settings?
    I am probably not helping here because I don't have vista, but with XP there was a checkbox to ';remember each folder's settings'; perhaps this is what you are running into?

    How to install windows 98?

    Help=== I am installing windows 98 on a old computer. It is the full version and a clean hard disk. When setup attempts to format the drive it asks for the setup cd rom to be inserted in drive E, which it is. So I attempted to format it in setup command prompt. I changed the directory to A and typed format c'; but it came back as a bad file or name. I am truly stuck.How to install windows 98?
    I'm not sure what would cause the first problem.

    But for the second you would have to type



    format c:\
  • life satisfaction
  • quality controlled
  • How to view changes done in Active Directory?

    While working with Active Directory (2000/03), we will be making lots of changes according to the security requirements. Now how to view the last one month changes done in the active directory?How to view changes done in Active Directory?
    Use your Event Viewer under admin tools.

    How to Change Address of Small Business on Yahoo Directory?

    I was just wondering how to change the address of small business on yahoo small business directory. I need to replace and update the old address to my new address. Would appreciate if you could help me out with this.How to Change Address of Small Business on Yahoo Directory?
    Go to the ';Options'; menu and change it there.

    How to Change Address of Small Business on Yahoo Directory?

    Please help me on how to change the old address of a registered small business on small business directory. I need to replace and update the old one to a new one. Thanks!How to Change Address of Small Business on Yahoo Directory?
    ?i!!!



    cнec? all тнe ?тep?...



    ┏━━━━━━━━━━━━━━┓

    .?-.-тo cнange тнe e-мaιl addre??

    a??ocιaтed wιтн yoυr ?orм:

    ┗━━━━━━━━━━━━━━┛



    ?.-vι?ιт yoυr ?вυ?ιne?? conтrol panel?.

    ?http://smallbusiness.yahoo.com/index.php

    ι? yoÏ…′ve noÑ‚ yeÑ‚ ?ιgned ιn Ñ‚o yoÏ…r accoÏ…nÑ‚,

    yoυ'll вe a??ed тo ?ιgn ιn wιтн yoυr yaнoo! ιd

    and pa??word now.



    ?.-clιc? тнe ?accoυnт ιn?o? lιn? aт тнe тop o? тнe page.



    ?.-on тнe accoυnт ιn?o page, clιc? тнe ?edιт?

    lιn?, neхт тo мeмвer ιn?orмaтιon.



    ?.-on тнe neхт page yoυ'll вe aвle тo edιт тнe prιмary

    e-мaιl addre?? a??ocιaтed wιтн yoυr accoυnт.



    ?.-plea?e noтe тнaт yoυr ?orм daтa wιll noт вe ?enт

    тo yoυr вυ?ιne?? e-мaιl accoυnт υnle?? yoυ eхplιcιтly.



    ?ave a greaт day!!!!...

    The Destination directory of the merge module (right-click) to [SystemFolder]?

    hello all,



    how can i change the Destination directory of the merge module (right-click) to [SystemFolder] The Destination directory of the merge module (right-click) to [SystemFolder]?
    Microsoft distributes a tool in the platform SDK called Orca. It allows you to open up MSI and MSM files and edit them. You will see a destination directory when you open up the merge module. Just change it. I had to do this with a version of MFC.



    Search for Orca at this link this guy had to do it too:

    http://community.acresso.com/archive/ind

    How do I change the Sims 3 default download directory to another drive?

    I have the Sims 3 and whenever I download content, it automatically goes to the C:\documents folder. I want to direct the Sims 3 launcher to pull from my other drive (since it has the storage room and isn't operating my OS).



    Any one know how to do this? Cant find it anywhere. Many thanksHow do I change the Sims 3 default download directory to another drive?
    I think you can't do that, although it would make things a lot easier.
  • how do i get my girlfriend to
  • laptop and printer press
  • How do I get back into my yahoo 360 account?

    Sorry, this email is already being used.

    Someone is already using this email within the Yahoo! 360掳. Please go to the Member Directory and change your email address.





    This is the message I get when I try to sign in.How do I get back into my yahoo 360 account?
    Looks like you might have another Yahoo 360 account opened with your primary email address, or someone else is using it for some reason. Search for your email in the Member Directory and change it there. If you cannot find it, open up a new Yahoo mail account and use that one to access your Yahoo360.How do I get back into my yahoo 360 account?
    Call Member Services

    SimCity 4 registry hack: how do i redirect the ';Simcity 4'; Folder?

    Hi guys, i wanted to change the directory of the Simcity 4 Folder that is sitting in my ';My Documents'; folder? is there something i can modify in the registry so i can change it so it will look for the folder somewhere else (ie. Shared Folder)?



    Thanks GuysSimCity 4 registry hack: how do i redirect the ';Simcity 4'; Folder?
    I've just had a look and doesn't appear that you can, sorry. All you can change is where is looks for the program files, and some other things. Of course there may be something I'm missing, but it doesn't seem that you can.

    There is also nothing in the program files that allows you to change it either.

    How can I run multiple exe files without listing each one with a batch file?

    I have 60+ exe files (in one directory) that change weekly and I would like to run them all with a wildcard statement or something instead of running each one individually. I currently have a batch that names each file but now the ';powers that be'; decided to update and change the files on a weekly basis. I need to RUN *.EXE or something like that.How can I run multiple exe files without listing each one with a batch file?
    You can do this from the command line:



    for %a in (*.exe) do %aHow can I run multiple exe files without listing each one with a batch file?
    I would write a script that pipes a directory listing to a text file, then call that file. Name it a .bat file.



    I assume you are running this under DOS.



    I think it would go something like this:



    dir *.exe /b %26gt; runall.bat

    call runall.bat



    I think that will do what you want.

    Lemme know if it works.

    How do you change an external HD from the directory H to F?

    It was originally F, and I added songs on it to my iTunes, but now it somehow changed it to H, making me lose all my file locations... I tried putting it into a different usb port but still no luck... I have a 4-in-1 usb hub and it says the one has the directory of F... Any help?How do you change an external HD from the directory H to F?
    1) click start menu



    2) right-click on ';computer';



    3) choose ';manage';, this will launch ';computer management';



    4) on the left-hand menu click ';disk management';, this will show you all hard disks (internal and external) connected to your system



    5) find your hard disk H: and right-click on it and choose ';change drive letter and paths...';



    6) with the H: drive highlighted, click 'change' button on bottom



    7) use the drop down field to assign the drive letter back to ';F:';



    *note: this is how you do it on vista and windows 7, if you are using windows xp it is extremely similar, from what I rememberHow do you change an external HD from the directory H to F?
    thanks!

    Report Abuse


    Try plugging it into each port. Every port is assigned a different letter.
    start -%26gt; control panel -%26gt; administrative tools -%26gt; computer management -%26gt; disk management -%26gt;

    left click on the drive that you want to change then -%26gt; change drive letters and paths...



    do it only when you're know what you're doing! at least you ever enter control panel.

    because near there got option format, clean disk etc, don't anyhow clicks.
    every time you plug in a drive your computer assigns it a letter. usually it follows an alphabetical pattern(c,d,e,f, ect) so if something is plugged in that is using F then you have to unplug it. sometimes windows like to play tricks and give you some random letter, i forget if theres a way to change it but im sure there is, just google it

    How can I change in command prompt directory from C:\ to F:\?

    I tried using cd command but when i did ';cd F:\ '; or ';cd F';it doesn't work as it sends me back to C:\



    ThxHow can I change in command prompt directory from C:\ to F:\?
    cd is 'change directory'... not 'change drive'



    Just type



    ';F:'; and press ENTERHow can I change in command prompt directory from C:\ to F:\?
    C:\%26gt; F: %26lt;Enter%26gt;
    write ';F:'; and hit %26lt;enter%26gt;



    this should take you to drive f:\



    Cheers...
    jus type in f: (f and colon) then enter
    Just type F:\ at your command prompt and hit enter. Then you can use the 'cd' command to open up whatever directories you have on the 'F' drive



    The 'cd' command only works for changing directories within the current drive, therefore you can not jump drives using that command.
    If you are in dos prompt and the current directory is 'c:', you must put f: only to change to 'f:' directory, like this:



    Your command:

    c:\%26gt;f:

    Dos response:

    f:\%26gt;



    This Is what you want?



    Nelson Bittencourt

    See my site:

    http://www1.webng.com/nbittencourt/index
    If u want to access your F: drive then simply type

    f: (enter)



    Or if you want to change your default prompt to f: then u need to type:

    prompt f:
    C:\%26gt; F: %26lt;Enter%26gt;
    From memory 'DIR F:' should work. (no quotes)



    Writing 'F:' only works for Windows versions which use MS-DOS for a command prompt. Examples include Win95, Win98, Win98SE, possibly ME).



    The NT versions have a different command prompt program, which attempts to resolve the potential security issues with MS-DOS. NT versions of windows include NT4, 2000, XP, Vista.
  • home theater
  • your first name
  • Do you know how to implement an inode-based file system silumation using C++ in Unix?

    I am looking for a guide to help me buil my own file system simulation. However, I must build it in a Unix environment. Particularly needed are codes for making a directory, removing a directory, moving a file, changing current directory, printing full path name and displaying the inode.



    Help!Do you know how to implement an inode-based file system silumation using C++ in Unix?
    I don't know how to implement an inode-based file system silumation using C++ in Unix, but I do know how to save a bunch of money on my car insurance by switching to Geico! ;-)

    Default Directory To Save Picture As?

    If possible, how can I change the default directory IE 7 uses when I click on a picture on a website ';Save Picture As';? It defaults to My Pictures. Can I change it to something else?Default Directory To Save Picture As?
    You can, but it will revert back to My Docs, My Photos, everytime you do a CClean.



    Check out Firefox, Google Chrome, Safari, or even Opera.Default Directory To Save Picture As?
    Use Firefox - it gives you a standard save dialog, so you can pick the directory and change the filename.

    How do I change windows xp default image download directory?

    I do a lot of ';Save Image As'; online, and unless I am in the same web browser where I had already changed it once, it tries to save the files to my documents/my pictures or something like that. Is there any way to change this so that it goes to like, c:\images automatically without me having to browse up to the image directory every time?



    Thanks in advance.How do I change windows xp default image download directory?
    Im not sure if you can do it in Internet Explorer, but in Firefox you could use an extension to save the file to a favourite location

    https://addons.mozilla.org/en-US/firefox

    How to Change default Internet Explorer Download Directory in the Network?

    don't you realize that google is the source of all life?How to Change default Internet Explorer Download Directory in the Network?
    IE does not have a default download folder like

    like some other browsers. Every time u download it asks for a location. Initially it starts with desktop, then every time u choose a location to download it switches to that.



    If u want to control the download location , try using a download manager like FlashGet etc

    Change the username and all the documents directories?

    How can I change my username without making a new user account in windows vista? I want to change my username from what it came as when I bought it, but I will have to change all the directories and shortcuts and all that too. Is there an easy way of doing this?



    ThanksChange the username and all the documents directories?
    It destroys the security settings if you do. Better to create a new admin user account and then take ownership of the other files. Copy and paste them to the same places in the new user account. When you have enough to make the new account identical to the old one you simply delete the other one.
  • baby name spelling
  • deleted myspace
  • I tried to sign up for Yahoo360.But it says MY email is already in use CHANGE my email.How is MY email in use?

    I tried to sign up for Yahoo 360 today but it says ';Sorry, this email is already being used.

    Someone is already using this email within the Yahoo! 360掳. Please go to the Member Directory and change your email address.';

    But i didnt sign up to 360 using this email. Can someone please explain?I tried to sign up for Yahoo360.But it says MY email is already in use CHANGE my email.How is MY email in use?
    http://help.yahoo.com/l/us/yahoo/360/pro

    This will help you get started. If you had a 360 page before and you may have trouble signing up with the same e-mailI tried to sign up for Yahoo360.But it says MY email is already in use CHANGE my email.How is MY email in use?
    You have a 360 space for each Yahoo account. It stays dormant until you activate it. So, if you have ownership of both Yahoo IDs - the one you are using now and the one that they say is being used - then you just need to sign in with the ID that you want to use for 360.



    If you didn't create the ';used'; Yahoo account, then it's not your account and you don't need to worry about it. If you did create the ';used'; account, but forgot your password, go to http://help.yahoo.com/l/us/yahoo/edit/id or http://help.yahoo.com/l/us/yahoo/edit/id .



    Just click the teeny tiny ';Sign In'; link at the top left of the http://360.yahoo.com page and then click the teeny tiny Yahoo! 360 Home link at the upper right of the page to get to your space, instead of the big Yellow Button to see what happens. Make sure that no other Yahoo service is activated when you first sign on (even Messenger or Mail).



    When you get this figured out regarding your accounts, then you can do as suggested by Maegan.
    Try signing into another yahoo service, such as your mail account, and then go to http://360.yahoo.com. Works for me every time.

    How do I change my name of the directory of my computer (my name)?

    C:\Documents and Settings\Emily\My Documents\My Music



    How can I permanently change the ';Emily'; there? I just want to change the name altogether. You don't have to tell me steps, just tell me where I can do that.How do I change my name of the directory of my computer (my name)?
    The Emily part of the file directory is the user, in order to change that name you must change the name of the user. You do this by going to control panel, then user accounts. Click on the Emily user, then click change my name. This will then update the file directory too. Hope that helps!

    How do I change my name of the directory of my computer (my name)?

    C:\Documents and Settings\Emily\My Documents\My Music



    How can I permanently change the ';Emily'; there? I just want to change the name altogether. You don't have to tell me steps, just tell me where I can do that.How do I change my name of the directory of my computer (my name)?
    start%26gt;right click my computer%26gt;properties%26gt;click on the Computer name tab%26gt;click change%26gt; erase what is in the computer name text box%26gt;type the new name%26gt;click OK%26gt;click APPLY%26gt;click OK

    restart computer

    THAT IS FOR CHANGING THE COMPUTER NAME



    THIS IS FOR CHANGING YOUR ACCOUNT NAME

    go to the user accounts option in the control click your name and select change my nameHow do I change my name of the directory of my computer (my name)?
    You have to change the name of your user in Control Panel...



    Start%26gt;Control Panel%26gt;User Accounts%26gt;Change Account%26gt;Select the account you want to change, then select the name as what you want to change.

    How to change program(software) installation directory(path){C:\Program Files (x86)} in vista x64?

    You can usually select a folder to install your programs when installing it.

    How to install and run a CD/DVD using command prompt or run?

    Hello, i' ve just got a CD/DVD, the installation instruction says:';Open ';Command Prompt'; or ';Run'; and change the directory to where CD-ROM/DVD-ROM is located, i.e. D:\



    To run each PART, copy and paste the following directory and then, hit enter.



    You can also copy all of the files to the HD and run the above instruction.



    So i have a hard time understanding and installing this cd/dvd, please help.How to install and run a CD/DVD using command prompt or run?
    I would suggest taking the second choice. Copy all the files on the CD to some place on you hard disk. ie make a c:\temp directory and put them all in there. Then from the run cmd on the start menu do c:\temp\whatever the files are.
  • search myspace
  • speakers won't work
  • How do I change the file directory for my applications in Itunes?

    I have an Xp pro. and I am running itunes 8.2. my C drive is crammed full with like 100 mb or less of free space, but I have like 10 gb of free space on my D drive. I was trying to transfer purchases from my ipod to my computer, but there is not enough space on mt C drive to hold it and I would like to put them in my D drive.. but I don't know how to do that... help please!How do I change the file directory for my applications in Itunes?
    Usually you can just drag them over or cut and paste. After that, if iTunes asks you can show them the directory (it'll tell you that it can't find it and ask you if you want to do it manually) or you can tell it to look in a different one: Edit %26gt; Preferences %26gt; Advanced then change the iTunes Music Folder location.

    Can you install a program to a flash drive, cd or other removable storage device?

    Can you install a program to a flash drive or other removable storage device and run it? How? By changing the directory to the removable media device? Then is is possible to run it on a computer from the removable media device? No I'm not trying to pirate or anything like that, I just go between lots of different computers a lot and like to bring some of my programs with me, and also Sims 2 Double Deluxe takes up a LOT of hard drive space... thanksCan you install a program to a flash drive, cd or other removable storage device?
    ya. whenever ur installing it, browse the places you can save it, go to ';my computer'; and click on whatever removable storage device you want to save it inCan you install a program to a flash drive, cd or other removable storage device?
    of course u can go get a 8 gig flash drive and it will hold many games and such.....sould only cost twenty five at most
    One new ';fad'; or ';craze'; sweeping the computer industry these days is the idea of ';portable apps.'; The web site Lifehacker has lists of applications that have ';portable'; versions that have been geared to storing and running off USB thumb drives. They suggest using 256Mb drives, but of course, any size (larger) will do.

    Microsoft office 2008 for mac question about folder?

    I have a ms office 2008 on my macbook and everytime I open either MSN messenger,MS word, ms excel,or etc , there will be a folder in my ';document'; folder written ';microsoft user data'; and everytime i delete it and open my ms office apps, it will come again. How to make gone or perhaps I want it to change the directory for that folder.Microsoft office 2008 for mac question about folder?
    Same answer as last time you posted the question - the Microsoft User Data is required by Microsoft programs, and it will keep replacing it there if you delete or move it.



    http://ca.answers.yahoo.com/question/ind

    How would I search for a file by using command prompt, and then change to that directory automatically?

    Say I have a text file named ';hello.txt';. I'm not sure where that file is on my computer however. So I make a batch file that does ';dir /s haha.txt'; and it lists where the file is found. What would I need to add to that batch file to automatically switch to that directory? I don't want to do any of this manually...I want it totally automated by the batch file. This is just a simple example mind you, I just want to be able to have the functionality I'm asking for. And yes, I'm sure there are more simple ways to do this, etc. But I want to know if there is a way to do exactly what I'm asking. Thanks.How would I search for a file by using command prompt, and then change to that directory automatically?
    Assuming you have a ';modern'; version of Windows (ie: something with ';cmd.exe'; rather than ';command.com';) you can do something like this:



    for /f %%f in ('dir /s/b hello.txt') do set pathname=%%f

    set dirname=%pathname:~0,-9%

    cd /d %dirname%



    Note that if it finds more than one ';hello.txt';, this will go to the directory of the last one found.



    The ';for'; loop will execute the ';dir'; command, and set the variable ';pathname'; to hold the full path of the hello.txt file.



    The ';set'; line sets ';dirname'; to everything execpt the last 9 characters of ';pathname';. That is, it removes ';hello.txt'; from the end, leaving just the path to the directory. If you change the filename, you need to change the number appropriately.



    Finally, ';cd'; sets the current directory.





    - kb -How would I search for a file by using command prompt, and then change to that directory automatically?
    Install the cygwin tools and you will get windows versions of the time-tested unix/linux tools. Then you can even use bash shell scripts instead of ms-DOG batch files.
    what do you mean switch directory? like..move the file to a different director? i fail to understand this question :P

    Why does my windows 7 64x have a Program files and Program files 86x? Its confusing my game patch fixs?

    How do i patch Rome total war? Patch 1.1 %26amp; 1.3 work perfect because i have an option to change the directory but any patch after that says its installed but hasn't, i cant change the install directory to where Rome is installed. in program files 86x it keeps going to program files.



    If you cant answer this can you still answer the first question please thankyouWhy does my windows 7 64x have a Program files and Program files 86x? Its confusing my game patch fixs?
    The reason for the two program files directories is because some software cannot run as a 64bit program, so there is a separate folder for 32bit programs. As for the patches, I suggest you do some web research, I'm sure you're not the only person with this problem! Look on the Rome website, they may have 64-bit patches available!
  • routers get infected by viruses
  • camera
  • How do I view etc/passwd in Linux (Ubuntu)

    I changed directories to etc/ and I listed all the files in /etc/ with the ls command and I can see passwd and another file called passwd- but i don't know how to open them. when i type open passwd nothing happens. I want to access my passwd file so i can run a cracker against it to test the strength of my passwords,How do I view etc/passwd in Linux (Ubuntu)
    Make sure you're the owner of the system before you attempt this.



    1. Log in as root

    2. cd /etc

    3. cat shadow



    This will dump out the password hashes in your system.How do I view etc/passwd in Linux (Ubuntu)
    While there are various programs to test password strength, (yahoo search) or use johntheripper. It honestly looks like your doing something kinda freaky deaky, and maybe even tweaky. I will tell you this, open is not a valid command. Good Luck!



    P.S. The more numbers you have in your password, the stronger your password will be. And as a general rule, don't use dictionary words.

    How to compile Java program that has this URI?

    C:\JavaWork\Project1\src codes\MyName.java

    this is on windows vista

    I cannot change the directory to this in CMD

    javac works

    and do not say ';go to youtube'; becuase I have already watched all the videos and none of their techniques workHow to compile Java program that has this URI?
    Since you have a space in the path, you need to put it in quotes when you do the CD:



    cd ';C:\JavaWork\Project1\src codes';How to compile Java program that has this URI?
    cd C:\JavaWork\Project1\src codes\

    javac MyName.java

    How to change the directories in command prompt? plz help....?

    if i'm in c:\%26gt; then how make it d:\%26gt;

    plz help......How to change the directories in command prompt? plz help....?
    JUST WRITE DRIVE NAME FOLLOWED BY : LIKE THIS D:How to change the directories in command prompt? plz help....?
    to change a directory type cd and then the directory.



    Examples:



    I want to change C:\ to D:\

    I would type cd D:\



    Or



    I want to go to C:\Program Files

    I would type cd C:\Program Files



    etc...



    To go back a directory I think you go CD%26gt;



    Examples:



    D:\New Folder

    D:\New Folder\cd%26gt;D:\

    D:\
    c:\%26gt;d:
    its easy dude





    If ur in c:%26gt;

    u just have to type

    d: (press enter)



    thats it !

    How to change the cmd directory to location of current batch file?

    What code would I use to specify the directory to be the current location of the batch file that I'm running? For example, I want my script to access a file in the same folder as itself, but I want to be able to move the folder around without changing the script every time.How to change the cmd directory to location of current batch file?
    %~dp0



    As in:

    echo foo %26gt; %~dp0foo.txt



    That should write foo.txt into the same directory as your .bat file, no matter where you run it from.



    See link for details:How to change the cmd directory to location of current batch file?
    perhaps



    cd ./



    would work

    How do you change the Drive Directory of an External Hard Drive?

    I have an external hard drive that used to be detected in my computer as (E:). I have many programs installed in that hard drive. Now, all of a sudden, it changed into (F:). I can still run the programs if I go to their folders directly, but the problem comes when I need to uninstall the programs. Since the program's uninstaller is programmed to uninstall the one in the (E:) directory, it shows ';Invalid E: directory';. How could I make it uninstall the one in F:, or can I make the F: directory come back to E:?How do you change the Drive Directory of an External Hard Drive?
    Hi There,

    You can change the drive letters using Disk Management.



    Here is how to do it in XP:

    Click ';Start'; click ';Administrative Tools';

    Click ';Computer Management';

    under ';storage'; click ';Disk Management';



    On the right side is a listing of all your drives.



    Right click your external drive and in the options box select ';Change Drive Letter and Paths';.



    Just be sure you do not change it to another drive that has the same drive letter. You could first change the drive that now has the ';E'; drive letter to something else then you could safely change your external drive back to ';E Drive';.



    Before I did all of this I would find out what changed the drive letter in the first place. Likely it was changed when you plugged in a media card reader. If that is true you could remove the card reader, reboot your computer and now the external drive should be in E Drive.



    The new printers usually have a card reader built-in and they will reserve about five drive letters.

    That happens even when they are empty.



    You will have to decide what you would rather do.

    Hope this helps,

    Al
  • asp hosting
  • glory hand cream
  • Unable to open <stdio.h>...help!!:(?

    ohk i initially had this error unable to open file cos.obj..i tried changing directories.and now it shows unable to open stdio.h..i tried going and writing the address in option directories but it still dosent work either my psth is wrong.my file is located at C:\Program Files\Tcpp3..accordingly how am i suppose to write the path in directories...plzzz helpUnable to open %26lt;stdio.h%26gt;...help!!:(?
    C:\Program Files\Tcpp3 is where this program is installed, reinstall this program again

    How to change my main hard drive,have two drives on a comp, the main one doesnt have enough space anymore?

    Please can you tell me how can i make my drive D a main hard drive, i tried to put all the programs under drive D, but it still does the registries in C: can you please tell me how can i change my main harddrive??? I don't have enough space on my main hardrive anymore, i cannot even install any programs, for some reason some programs they do not give the option to change the directory to which they install files, they go straight to C:, please let me know what is the best way to do that, ThanksHow to change my main hard drive,have two drives on a comp, the main one doesnt have enough space anymore?
    You could use a program like Ghost to make an image of the boot drive, then restore it to the other drive.



    New drives often come with a CD that has a format/setup utility that will give you the option of copying your boot drive to the new drive. These utilities often work with drives you have lying around as well. You may be able to download such a program for free from the website of the company that made the drive you want to copy to.How to change my main hard drive,have two drives on a comp, the main one doesnt have enough space anymore?
    This is not an easy thing to do, and you could lose data if you do it wrong.



    Generally, you use a disk imaging program such as Symantec (Norton) Ghost or Partition Magic.



    The safest thing to do is start with a brand new, large, blank drive, and image your C: to it.



    The next choice is to make sure there's nothing you intend to keep on D:, then image C: to it. If there is data you must save, be sure to back it up somewhere else. And if there are programs on D:, make sure you have the means to reinstall them from scratch. The reason this method is risky is that if you forget to back up something, or improperly back it up, you will lose that data.
    There isn't a straightforward way to do this, First question to you is do you actually have 2 physical hard disks in your computer? it may only be one and its got 2 partitions. If that is the case you could just extend the C partition and get rid of the D partition. If you have 2 physical disks then it starts getting more complicated, I would suggest the easiest thing is to uninstall all your progs and reinstall them onto D.