NetStumbler.org Forums

Go Back   NetStumbler.org Forums > NetStumbler Community > Scripts
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 07-23-2004   #1 (permalink)
Pioupioumax
Registered Member
 
Join Date: Jun 2004
Posts: 4
is it possible to write in a file using vbscript with ppc 2003???

Someone is able to write in a file under ppc 2003 using vbscript??????
when I type :

"Dim oFS,oTS
Set oFS = CreateObject("Scripting.FileSystemObject")
Set oTS = oFS.OpenTextFile("\test.txt", 2, True)"

I got an activeX error : "Activex component can't create object"
Any Idea to solve that????
thanks
Pioupioumax is offline   Reply With Quote
Old 07-23-2004   #2 (permalink)
Thorn
Did you do the math?
 
Thorn's Avatar
 
Join Date: Apr 2002
Location: Villa Straylight
Posts: 10,002
It would appear from that error message that the Active X DLLs aren't loaded. I've not done any scripting on a PPC, so take this with a grain of salt. My suggestion is to search the MS Knowledge Base.

By the way, crossposting is against the Rules. The other post with this same question has been removed.
__________________
Thorn
Sex and Violence. You can't enjoy one, if you don't survive the other. (And that works both ways...)

Last edited by Thorn : 07-23-2004 at 06:35 AM.
Thorn is offline   Reply With Quote
Old 08-11-2004   #3 (permalink)
kapser
Registered Member
 
Join Date: Aug 2004
Posts: 1
I've the same ActiveX problem with CreateObject.

PiouPiouMax, did you solved your problem ?
kapser is offline   Reply With Quote
Old 08-25-2004   #4 (permalink)
Pioupioumax
Registered Member
 
Join Date: Jun 2004
Posts: 4
Ok after long search I can do that using another thing:
you simply need to do that .
The source is a little special because I want to access the file alone, locking the other programs to do that.
Only the WriteSetting or ReadSetting function is usefull.
I learn that in a foreign site (anybody now the country?) that you can find at:
http://www.eitcenter.com/pocketpc/de...amewrite18.htm

Sorry for the comments but I m French, If you need more informations just ask.

Const fsModeInput = 1
Const fsModeOutput = 2
Const fsModeRandom = 4
Const fsModeAppend = 8
Const fsModeBinary = 32
Const fsAccessRead = 1
Const fsAccessWrite = 2
Const fsAccessReadWrite = 3
Const fsLockReadWrite = 0
Const fsLockWrite = 1
Const fsLockRead = 2
Const fsLockShared = 3
Const monFichier = "\vbsTest.txt"

Dim cpt,tmp,tmp2
cpt = 1
tmp = 0
tmp2 = 0

Do While cpt < 10000000000000000000000
tmp = Second(FormatDateTime(now,3))
WriteSetting "Ap1", -53,100, fsModeOutput 'créer un nouveau fichier vide
WriteSetting "Ap2",42,100,fsModeAppend
WriteSetting "Ap3", 45, 100,fsModeAppend
do while tmp = tmp2
tmp = Second(FormatDateTime(now,3))
loop
tmp2 = tmp
'JoueSon
loop
'msgbox ReadSetting("ap2")

Public Sub WriteSetting(ByVal ssid, ByVal signal,ByVal noise, iMode)
Dim filWrite,numerr,abouterr
On Error Resume Next
'on regarde si le fichier peut etre lu
Set filWrite=CreateObject("FileCtl.File")
numerr = 1
Do While numerr <> 0
Err.number = 0
filWrite.open monFichier, iMode, fsAccessWrite, fsLockReadWrite
numerr = Err.number
abouterr = Err.source
loop
filWrite.LinePrint FormatDateTime(now,3) & "$" & ssid & "$" & signal & "$" & cpt
cpt = cpt + 13
filWrite.close
Set filWrite=Nothing
'JoueSon
End Sub

Public Function ReadSetting(ByVal ssid)
Dim filRead
Set filRead=CreateObject("FileCtl.File")
filRead.open monFichier, fsModeInput
do while not filRead.EOF
sLine=filRead.LineInputString
Myarray = split(sLine,"$",-1,1)
if LCase(myarray(1))=LCase(ssid) then
ReadSetting=myarray(2)
end if
loop
filRead.close
Set filRead=Nothing
End Function

Public Sub JoueSon
PlaySound "\windows\alarm3"
End Sub


Sub OnScanResult(SSID, BSSID, CapFlags, Signal, Noise, LastSeen)
' MsgBox "OnScanResult " & SSID & " " & BSSID & " " & CapFlags & " " & Signal & " " & Noise & " " & LastSeen
if cpt = 3 then
WriteSetting SSID,Signal,Noise,fsModeOutput
else
WriteSetting SSID,Signal,Noise,fsModeAppend
End if
end sub
Pioupioumax is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Google
 
Web NetStumbler.org

All times are GMT -7. The time now is 10:51 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 ©2007, Crawlability, Inc.


All messages express the views of the author and are for entertainment purposes only. Netstumbler.org cannot be held responsible for the authenticity of the content or the actions of its members. By using this site and its services, you warrant that you will not post any messages that are discriminating, obscene, hateful, threatening, or otherwise violates any laws and you release Netstumbler.org from any future claims of any kind whatsoever including, but not limited to, addiction and loss of productivity. All forum messages, private messages and any other content are properties of Netstumbler.org. Even if publicly available, personal or copyrighted information are not to be posted without the consent of the owner. Distribution of licensed and copyrighted materials in any way not endorsed by the copyright owner is strictly prohibited. You may not use this site and its resources to spam other sites or individuals or perform any action that violates any law. Items sold or bought in the For Sale forum are sold as is and no warranty or insurance of any kind is provided. Netstumbler.org cannot be held responsible for the outcome of any transactions and no warranty of any kind is provided, either express or implied. Vulgar words are not allowed in the subject lines ; they may be used in the message body in any forum. The Administrator, Super Moderators and Moderators of Netstumbler.org have the right to remove, edit, move or close any thread for any reason and to reveal your identity and other known information in the event of a complaint or legal action arising from any message posted by you.