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: M626
  • Content: Threads
  • Order by date
  1. M626

    File Growing

    Does anyone know of a simple, say two lines of code i can use to test if a file is growing, and if it's not move it to a unc path?
  2. M626

    Sort by Date

    I am using the following to output a file listing the contents of a directory. Is there anyway i can modify this to output by date created or date modifed? #!perl print "Content-type: text/plain\n\n"; # Configuration: $internal_path = "r:/"; $list_directories = "true"; $list_files = "true"...
  3. M626

    perl Syntax

    I found this code to delete every that is *.tst but how can i can it to delete anything that's ._*.* unlink qq($dir\\$file) if $file=~/\.tst$/i;
  4. M626

    Mirror directory

    Hi, I need to mirror a directory using perl but the destination directory files needs to be 0 bytes in size. So i will end up with a directory of files names simular to a log but with actual files. Thanks,
  5. M626

    HTML flash

    Hi all... i am using the following HTML to load a flash video on a iweb page. Is there a way i create links on my page to different flash files on my web server and have it play that video? I would think i have to set the 'embed src' and 'value' to a variable that's changed every time a new...
  6. M626

    Rename files in folder to Folder name

    how can i rename all the files in a folder to the folder name and append _1 _2 _3 and so on for each additional file in the folder?
  7. M626

    Delete Files From Directory

    What is the most efficent and simplest way to delete files from a directory. Control whats deleted by a text file that list files that can be deleted.
  8. M626

    Keep connection alive

    I am having a problem with this script. I connect to a mapped drive and test against a text file(listDir.txt) if those files listed in the text file are in the directory. if there is a file that is in the directory but not on the list, it get deleted. My problem is the drive become...
  9. M626

    FIle Handling

    Hi, I am looking to do the following in perl. I know how to do it in vb but need it in perl. I need a script to open a text file with test that contain file names, one per line. Once it opens the file, i need to remove the carage return and separate the file names by a space. Also, i need...
  10. M626

    Check Sum Module Usage

    I found this module to create checksums of files. Does anyone have any idea how to use it? Option Explicit Option Base 0 Private Const MD5_BLK_LEN As Long = 64 ' Constants for MD5Transform routine Private Const S11 As Long = 7 Private Const S12 As Long = 12 Private Const S13 As Long = 17...
  11. M626

    Time Calculation

    I am trying to read in a document and calcuate time. What it should do is check if the time is > than #.53 and < than #.07 in time format and if it is, round what ever # is to #.00 but if not check the difference between the time ie: 7:05am and 3:10pm would be 8:15 minutes. Here is some code I...
  12. M626

    Help converting VB to VbScript

    Can anyone help with converting this to vbscrit? Sub DeleteNotInList() Dim fso As FileSystemObject Dim dict As Dictionary Dim InStream As TextStream Dim InputData As String Dim fso_folder As Folder Dim fso_file As File Dim Dfile As String Set fso = New FileSystemObject Set dict = New...
  13. M626

    Read File list and Delete

    I am new to perl and need to create a script that can do the following. I have a text file(C:\temp\filelist_out.txt) that has a listing of file names. I need to compare the filelist_out to C:\temp and any file that isn't on the filelist_out that's in the dir, delete it from c:\temp.
  14. M626

    Deleted file if not in list

    Hi, I have a file(C:\temp\filelist_out.txt) that has a list of files. I need to compare the filelist_out to C:\temp and any file that isn't on the filelist_out that's in the dir, delete it from c:\temp. Also, I need to take another file(C:\temp\filelist_in.txt) and do a compare to the same...
  15. M626

    Log request to IP address

    Does anyone know how to write a simple log script that will log the time of when a request is made to a specific ipaddress. The sripts would run on the server of the IP address i want to monitor. I am new to perl so any samples would be of great assistance.
  16. M626

    Display contents of Server side file.

    Let me start off by saying i am new to PHP. I am basically learning as i go. I am trying to setup a form that will list all the contents of a server side file line by line and will append to that list as things are added when the page is reloaded. The file name will be today’s date so...
  17. M626

    List Files in Sub Directory

    IS there a way I can go through all the sub directories of a dive, (E:\) and output a file named the directory it scanned and all of the files within it and do the same for each sub directory it scans.
  18. M626

    Scheduled Task for every .30 seconds

    Is there a ways to schedule a Task Using the Windows Scheduled Task to run every 30 seconds?
  19. M626

    remove line breaks every two lines

    I have a file that look something like: 1 2 3 4 5 6 I would like to open the file and resort it so it ever two line are on the same line like 1 2 3 4 5 6
  20. M626

    Read All files in Directory

    How can i open each file in a directory line by line and if the line = "TEST!" then wirte that line to a new file?

Part and Inventory Search

Back
Top