If you have a dynamic IP Address that isn't in your /etc/hosts, try that :
myIP=`/sbin/ifconfig eth1 | grep addr: | awk '{print $2}' | awk -F : '{print $2}'`
It could certainly be ameliorated, but it works fine
Hope this help
AlexRezid
I want a module that take a file, copy and zip it, look for the size, ask for one or more 3.5" disc and copy the file on the disc(s)
Could someone help ?
Thanks
AlexRezid
Maybe could you use the "watch -n NumberOfSeconds tail -f YOURFILE" command for doing what you want...
That's it if I've understand your meaning.
Alex
Thanks
It works, but not with an open file... And the file I want to copy is my file .mdb with is launching this script...
How can I do ?
Any Idea ?
Alex
Hi all
I've a problem with FileCopy
Private Sub SaveMeAll()
Dim Source As String, Dest As String
Source = "C:\Mes documents\Fichier Client\Client_db.mdb"
Dest = "C:\Mes documents\Fichier Client\Sauvegarde-" & Day(Now) & "-" & Month(Now) &...
Thanks for all SonOF...
I finally did it differently
Here is my code to count the number of lines
Dim Occ As Integer
Public Function ScanLine(s)
Dim LengthofLine
Dim checking
Dim theLine
Dim Tmp
Occ = 1
Tmp = 0
theLine = s
LengthofLine = Len(theLine)...
Thanks SonOf...
Now, I've another problem...
I want to compare each char of my string to the return (\n) char, but I don't know how to write this char in VB...
Because if I write '\n' it tells me an error and if I write "\n" it compares with the string that is write by this two...
Thanks for all Orion
I've already a problem with your script in case of blank fields...
It tells me : rsKeysize.Fields("Len1") : Method or data Member not found
How can I avoid it ?
And for your help : a star :p
Alex
Hi all !
This script is included in a HTML web page.
<SCRIPT language=vbs>
<!--
Sub TestGo(Value As Integer)
Dim i As Integer
Dim strsql As String
set cnn = CreateObject("ADODB.Connection")
set Record2 = CreateObject("ADODB.Recordset")...
I try this code for going to record X in a AccessDB using a web page...
But I don't know why, it works if I put it on an Access form, but it doesn't work any more in a web page
Could someone help ?
<SCRIPT language=vbs>
<!--
Sub TestGo(Value As Integer)
Dim Record2 As New...
So, Access is really dummy...
If you enlarge a fields, it doesnt put the next one go away...
So, I tried to make a Sub for going to the next record, It works in access form, but not in web pages.
It wrote this :
<SCRIPT language=vbs>
Sub TestGo(Value As Integer)
Dim Record2 As New...
Sorry, It works
But it's not exactly what I wanted...
I want the form to be resized dynamically for each record, and not to be as big as the biggest record...
Is it possible ?
If yes, how have I to modify that ?
Thanks
Alex
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.