Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: EzehM
  • Content: Threads
  • Order by date
  1. EzehM

    Write string to File

    Please I will like to write the following lines to a file (exactly the way it is below) if "%1" == "" goto usage c:\Software\a.exe "FT-CDS-MDI-SCR PP" -i -l %1\%2 %3 -d Messenger -r I have been messing around with slashes, speech marks etc with no luck (Using StreamWriter). I dont seem to...
  2. EzehM

    Windows Service

    I am writing a piece of code that monitors files in a directory and copies them onto another directory, by calling other methods etc. I have a setting in the registry that determines the polling intervals. This part of the code is in an endless loop. I have written this as a clean .exe, but now...
  3. EzehM

    Setting File Permissions

    Help Please I have a file that has read-only permissions. How can I change these permissions (via code) to read-write (on a windows platform). I am targeting a 1.1 Runtime. Thanks
  4. EzehM

    File Permissions

    Is there a way one could force all files created in a sub-folder to have a particular set of permissions irrespective of who or what permissions the user grants the file when its created. i.e. I will like all files created in /send to have 777 permissions irrespective of who created the file...
  5. EzehM

    FTP Error 421

    Our FTP server (running IIS 6.0) seems to be returning FTP error 421 to connected users on a weekly basis. We have about 60 clients that connect to this server at random times during the day. The error temporarily disappears when we reboot the FTP server. Does anyone know what the cause of this...
  6. EzehM

    List Files in a directory by creation date

    I have a directory with files created over a period of time. How can I list files created over a period of the last 7 days (i.e. Files created today, yesterday, the day before yesterday and so on). I have looked at the DateTime Object, but haven’t had so much luck. Thanks in advance.
  7. EzehM

    List Files

    Please how can I list (Console.WriteLine) files in a directory that were created today. foreach (FileInfo file in directory.GetFiles()) { // List files that were created today Console.WriteLine(?); } Thanks in advance
  8. EzehM

    Interfacing with IIS 6.0

    Is there anyway I could programmatically interface with IIS 6.0 (using C#)? I will like to know at any given time, the number of connected users logged on to my FTP server. At the moment, I manually have to open up IIS, get properties on the FTP Site, and see the number of users via the...
  9. EzehM

    Directory.GetFiles Method

    Please is there a way one can use this method to exclude files with certain extensions (i.e. getting all files in a folder apart from .tmp, .exe etc) or alternatively can you use this method to return files with extensions like .txt, .doc, .xls but exclude .tmp and .exe) Thanks in Advance
  10. EzehM

    Processing Text File

    Something wrong with my logic and code! Please help!! I have the following text file, and I want to extract the first field (directory paths) of each line, and maybe write it to another file or an arraylist. This is the file...
  11. EzehM

    Limit to number of Windows Services

    Is there a limit to the number of active Windows Services that can run on Windows 2003 server? I have a number of user created services and I am unable to start them all. I know there was a limit on Windows NT, but I wouldn't have expected the same on 2003. If there is a limit, is it something...
  12. EzehM

    Unable to list files

    I have a problem with FTP. Whenever I try to retrieve files from a directory that contains more than 30 files, I get a timeout detected error, but if the directory has less than 30 files I am able to get a listing. It doesn’t matter what FTP client I use, I still get the same error. Could this...
  13. EzehM

    Basic Database Design Question

    I am a complete novice when it comes to database designs. I will like to design a database that contains in each row – the name of a country, The address of the country’s foreign ministry and the addresses of their embassies abroad Will it make sense to have all this information in one table...
  14. EzehM

    Compiling for .NET 1.1

    C# 2005 Express Edition compiles for the .NET framework 2.0, however I am targeting platforms that have the .NET framework 1.1 Is there any way to compile the programs (using C# express) for .NET 1.1? Thanks
  15. EzehM

    Name resolution

    I have a problem that seems a bit odd. From a windows 2003 server, I am able to create a folder on an AIX directory using the IP address of the AIX server (i.e. \\111.111.111.111\ap01\test), but I can’t do the same if I use the machine name (i.e. \\ap01\ap01\test). However I can create a text...
  16. EzehM

    Text Files

    I have got a text file that contains the following information (delimited by “|”) RBF|1.txt|04/01/2007 04:22:11 RBF|7.txt|04/01/2007 04:32:11 RBF|1.txt|02/01/2007 04:22:11 RBF|2.txt|03/01/2007 06:12:41 RAF|3.txt|07/01/2007 11:22:17 ROF|4.txt|05/01/2007 04:42:21 RBU|5.txt|04/01/2007 02:29:14...
  17. EzehM

    Listing Files in Sub-Directory

    Please help. I will like to list all the files in various subdirectories that match a certain criteria. As an example. I have the following directory structure a) C:\abb\one-two-abb-source\sent b) C:\abc\three-four-abc-source\sent c) C:\abd\one-two-abd-source\sent d)...
  18. EzehM

    Convert String to file object

    I am trying to get file attributes or to be more specific the creation date of files stored in a string array. This is my code string[] dirs = Directory.GetFiles(dirToSearch, "*ack"); Console.WriteLine("The number of files starting with ack is {0}.", dirs.Length)...
  19. EzehM

    Help with files & directories

    Please I am a c# newbie, I need help with writing an application that will search for files on my d: drive with a .ctl extension, read each line of such files for a text called "pull", extract that line and write it to another file. Thanks in advance
  20. EzehM

    home directory inaccessible

    I get the following error when I try to log on to an FTP server (with users isolated via AD) User xxx cannot log in, home directory inaccessible. I really dont know where to start....or how to crack this problem. Any tips will be most welcomed. Thanks Milton

Part and Inventory Search

Back
Top