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"...
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,
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...
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...
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...
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...
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...
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...
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.
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...
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.
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...
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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.