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 SkipVought 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
  • 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

    Thanks Jason, just what I needed.
  3. EzehM

    Windows Service

    Thanks for the tip, I have explored the FileSystemWatcher object, but because of the involvedness in our design and the use of various configuration elements to determine what directories to monitor, remove, add etc. The idea of using it was discarded. I have something that works, but all I need...
  4. 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...
  5. EzehM

    Setting File Permissions

    Sorry...not to worry File.SetAttributes(file, FileAttributes.Normal); Thanks
  6. 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
  7. EzehM

    File Permissions

    Thanks Khalid
  8. 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...
  9. EzehM

    FTP Error 421

    WhokilledKenny - I have to reboot the server because no-one else can connect once these errors start. I am looking into the case of multiple connections from one IP but the FTP log isnt really helpful. monksnake - Thanks for the link. I just wonder whether setting a limited number of allowed...
  10. EzehM

    FTP Error 421

    WhoKilledKenny, thanks for your response. OS: Windows 2003 Server. I also set FTP Site Connections to Unlimited. At any given time the number of concurrent users is never more than 3. Any ideas?
  11. 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...
  12. 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.
  13. EzehM

    List Files

    Thanks... if(file.CreationTime.Date == DateTime.Today) I was trying if(file.CreationTime == DateTime.Today)- Date missing Thanks a lot
  14. 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
  15. EzehM

    Interfacing with IIS 6.0

    Thank you very much, I will try out this code.
  16. 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...
  17. 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
  18. EzehM

    Processing Text File

    Thanks...this did the trick for(int i = 0; i < dirs.Length; i++) Console.WriteLine((dirs[i]))
  19. 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...
  20. 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...

Part and Inventory Search

Back
Top