FranckGr
Active Members-
Posts
34 -
Joined
-
Last visited
About FranckGr
- Birthday 06/14/1958
Profile Information
-
Location
78 France
-
WWW
http://franck.grieder.free.fr
FranckGr's Achievements
Seeker (1/7)
1
Reputation
-
JuanFelipe reacted to a post in a topic:
Help with variable
-
Why not FileDelete(@ScriptFullPath) at the end of your script ...
-
IniReadSectionNames error ???
FranckGr replied to FranckGr's topic in AutoIt General Help and Support
For those still using INI files. my _IniRead function (Creating default value if it does not exists) Func _IniRead($IniFile, $Section, $Key, $DefaultValue) Local $v = IniRead($IniFile, $Section, $Key, "=====") If $v = "=====" Then If IniWrite($IniFile, $Section, $Key, $DefaultValue) Then $v = IniRead($IniFile, $Section, $Key, "=====") If $v = "=====" Then Return SetError(2,0,$DefaultValue) ; @Error = 2, @Extended = 0 => Should no append (Could create the key, could not read created key) Else Return SetError(0,1,$v) ; @Error = 0, @Extended = 1 => Key was created successfuly in INI file Endif Else Return SetError(1,0,$DefaultValue) ; @Error = 1, @Extended = 0 => Could not create the key, return Default value EndIf Else Return SetError(0,0,$v) ; @Error = 0, @Extended = 0 => Key was existing in INI file EndIf EndFunc -
IniReadSectionNames error ???
FranckGr replied to FranckGr's topic in AutoIt General Help and Support
Thank you all, you were right, the file was UTF8. I solved it by initializing the file with a @CRLF before the first section. Array is now Row|Col 0 [0]|10 [1]|Site Information [2]|Computer [3]|Physical Disk Details [4]|Logical Disk Details [5]|NIC Details [6]|Graphic Card Details [7]|Memory Card Details [8]|Missing Components [9]|Non-standard Components [10]|Installed Hotfixes -
Hi Seams IniReadSectionNames does not show all Sections names (First one is missing ... [Site Information]) My code Local $aSections=IniReadSectionNames($ThisIni) $ThisIni : [Site Information] Equipment ID:=539456593 Customer Name:=CH Address: =- City State:=Town Country:=France Phone:= Zip Code:=24000 Product Type:=Master [Computer] Computer Name=CHPRODFR Hardware Manufacturer=HP Hardware Model=ProLiant ML350 Gen9 Processor=Intel(R) Xeon(R) CPU E5-2643 v3 @ 3.40GHz Number of memory modules=4 Total Memory size=32 GB BIOS version=P92 [Physical Disk Details] 1=2.00 TB [Logical Disk Details] C:\=63.6 GB D:\=2062.1 GB F:\=872.8 GB [NIC Details] Embedded LOM 1 Port 1=00:10:6F:C5:FD:8E Hospital-LAN=70:10:6F:C5:FD:8E [Graphic Card Details] DriverDate=20150826 DriverVersion=4.1.2.2 Name=Matrox G200eh (HP) WDDM 1.2 Status=OK VideoProcessor=Matrox G200eH [Memory Card Details] 8192=752368-081 8192=752368-081 8192=752368-081 8192=752368-081 [Missing Components] [Non-standard Components] [Installed Hotfixes] $aSections Row|Col 0 [0]|9 [1]|Computer [2]|Physical Disk Details [3]|Logical Disk Details [4]|NIC Details [5]|Graphic Card Details [6]|Memory Card Details [7]|Missing Components [8]|Non-standard Components [9]|Installed Hotfixes
-
Nice script llewxam. Note : NBTSTAT is a localised command, try every NIC connected, and is also slow when finding a linux host (here a French XP OS querying my router) ... C:\Documents and Settings\Franck Grieder>nbtstat -A 192.168.146.254 OnBoard: Adresse IP du noeud : [192.168.146.50] ID d'étendue : [] Hôte introuvable. VirtualBox Host-Only Network: Adresse IP du noeud : [192.168.56.1] ID d'étendue : [] Hôte introuvable.
-
http://tftpd32.jounin.net/tftpd32_download.html http://typsoft-ftp-server.softonic.fr/ http://filezilla-project.org/download.php?type=server
-
These are functions I am using for that Global $Title, Global $key="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\" NoAutoLogon() ; ; ; $Title = "Step 3: Build Active Directory" ; Do what you want ; SetAutoLogon() RestartThisScriptAfterReeboot() Reboot() Exit Func SetAutoLogon() ;Setting up Autologon @LogonDomain RegWrite( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ,"DefaultDomainName" ,"REG_SZ", @LogonDomain) RegWrite( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ,"DefaultUserName" ,"REG_SZ", "administrator") RegWrite( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ,"DefaultPassword" ,"REG_SZ", "password") RegWrite( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ,"AutoAdminLogon" ,"REG_SZ", "1") EndFunc Func NoAutoLogon() ;Remove Autologon RegDelete( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ,"DefaultDomainName") RegDelete( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ,"DefaultUserName") RegDelete( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ,"DefaultPassword") RegDelete( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ,"AutoAdminLogon" ) EndFunc Func RestartThisScriptAfterReeboot() RegWrite($KEY,"Title","REG_SZ",$Title) RegWrite($KEY&"15","","REG_SZ",@ScriptName) RegWrite($KEY&"15","1","REG_SZ",@ScriptFullPath) EndFunc Func Reboot() $Res=1 $res=MsgBox(17,$Title,"Reboot in 10 sec ...",10) If $Res=2 then Exit Else Shutdown ( 6 ) Sleep(20000) EndIf EndFunc
-
>> Tested your pattern and as you said - 01, 010 ... are returned as valid; unfortunately that doesn't look like a correct IP. I agree - it might work but for me at least it "doesn't look" like a "normal" IP. Try http://087.106.244.038/forum//index.php ...
-
For those who want to know a bit more on IPV4 First bits....Addresses..............................Class ================================================================================================================= 0.............0.0.0.0-126.255.255.255................CLASS A (MASK 255.0.0.0) ................0.0.0.0..................................Any Local NIC ................0.0.0.0-0.255.255.255....................Local host addresses (0/8) ................0.0.0.0-10.255.255.255...................Local network only (10/8) ..............127.0.0.0-127.255.255.255..............Local host addresses (127/8) 0111 1111.......127.0.0.1................................Localhost (MASK 255.0.0.1) 10............128.0.0.0-191.255.255.255..............CLASS B (MASK 255.255.0.0) ................169.254.0.0-169.254.255.255..............Automatic NIC configuration (Local network)(169.254/16) ................172.16.0.0-172.31.255.255................Local network only (172.16/12) 110...........192.0.0.0-223.255.255.255..............CLASS C (MASK 255.255.255.0) ................192.168.0.0-192.168.255.255..............Local network only (192.168/16) 1110..........224.0.0.0-247.255.255.255..............CLASS D (Multicast Addresses - Destination Addresses only) 1111..........240.0.0.0-247.255.255.255..............CLASS E (Research - Should be Ignored) ..............255.255.255.255........................Broadcast address So it should be something like that for a (Source) host 1-223 . 1-254 . 1-254 . 1-254 But not 127.x.x.x 169.254.X.X
-
Setting a folder permission
FranckGr replied to dobbelina's topic in AutoIt General Help and Support
If you need Admin rights, why don't use SubinACL ? -
-
I think I miss the language files ...
-
Xenophobic : "one unduly fearful of what is foreign and especially of people of foreign origin" Sorry, just dont like the taste of this kind of jokes.
-
I did'nt know this kind of post could be left on this Forum ! 85 years old ? Didn't you forgot Xenophobic , in your profile ? This post is just here to see if any moderator is there ... Fighting again a 16 y.o. big mouth called "I'mDead" ... with this kind of arguments !!! I hope to be wiser in your age And for you "I'mDead", Trancexx didn't cross any line except in your head... You did it many times as I just did 3 lines upper and JRowe in his post.
-
Changes the GUI with the following Buttons [Trust] [Allow] [block] [Deny] [More] Trust => Goes to the White list and Execute Allow => Execute Block => Dont Execute Deny => Go to the Black List + Dont execute Trust is greyed if not Admin / Can be activated if the Password if good Before showing the GUI Check against White List (Yes = Execute) Check if Production Mode (Yes = Exit) Check against Black List (Yes = Exit) Show the GUI