Computer doesn't have the necessary USB software support

il computer non dispone del supporto software usb necessario

Computer doesn't have the necessary USB software support


Open the latest HP installation folder which begins with 7z (e.g. 7zs1234)
Open the Setup folder.
Locate the usbready.exe file and rename it into usbready.old.exe
Browse back to the main extraction folder (the folders who starts with 7z) and launch the Setup.exe file.

windows 10 anniversary update: esplora file nel menu start/avvio

In windows 10 anniversary update non è più presente "esplora files"

Per ripristinarlo cliccare su IMPOSTAZIONI - PERSONALIZZA - START  attivate lo switch ESPLORA FILES

prestashop rss product module cause 500 Internal Server Error

prestashop rss  product module cause 500 Internal Server Error

Play with permissions of the file (rss.php) and of the directories (modules, feeder)

from https://www.prestashop.com/forums/topic/319033-rss-feed-not-working/

debian dont active ethX interface after image recover







debian

after reinstall from image

mv /etc/udev/rules.d/XX-persistent-net.rules /etc/udev/rules.d/XX-persistent-net.rules.old

reboot

batch command for delete older files

forfiles /p "z:" /d -3 /c "cmd /c del @path "

where z: is folder where files are stored

3 is number of  day

disable windows 10 update request on windows 7

create a .reg file with this instructions

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\gwx]
"DisableGwx"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"DisableOSUpgrade"=dword:00000001

MS ACCESS: selezionare file



Private Sub Command1_Click()
    Me!Text1 = LaunchCD(Me)
End Sub
 
 
 
in un modulo inserire
 
 
Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _
"GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long

Private Type OPENFILENAME
    lStructSize As Long
    hwndOwner As Long
    hInstance As Long
    lpstrFilter As String
    lpstrCustomFilter As String
    nMaxCustFilter As Long
    nFilterIndex As Long
    lpstrFile As String
    nMaxFile As Long
    lpstrFileTitle As String
    nMaxFileTitle As Long
    lpstrInitialDir As String
    lpstrTitle As String
    flags As Long
    nFileOffset As Integer
    nFileExtension As Integer
    lpstrDefExt As String
    lCustData As Long
    lpfnHook As Long
    lpTemplateName As String
End Type

Function LaunchCD(strform As Form) As String
    Dim OpenFile As OPENFILENAME
    Dim lReturn As Long
    Dim sFilter As String
    OpenFile.lStructSize = Len(OpenFile)
    OpenFile.hwndOwner = strform.hwnd
    sFilter = "All Files (*.*)" & Chr(0) & "*.*" & Chr(0) & _
      "JPEG Files (*.JPG)" & Chr(0) & "*.JPG" & Chr(0)
    OpenFile.lpstrFilter = sFilter
    OpenFile.nFilterIndex = 1
    OpenFile.lpstrFile = String(257, 0)
    OpenFile.nMaxFile = Len(OpenFile.lpstrFile) - 1
    OpenFile.lpstrFileTitle = OpenFile.lpstrFile
    OpenFile.nMaxFileTitle = OpenFile.nMaxFile
    OpenFile.lpstrInitialDir = "C:\"
    OpenFile.lpstrTitle = "Select a file using the Common Dialog DLL"
    OpenFile.flags = 0
    lReturn = GetOpenFileName(OpenFile)
        If lReturn = 0 Then
            MsgBox "A file was not selected!", vbInformation, _ 
              "Select a file using the Common Dialog DLL"
         Else
            LaunchCD = Trim(Left(OpenFile.lpstrFile, InStr(1, OpenFile.lpstrFile, vbNullChar) - 1)) 
         End If
End Function

usb pen not bootable

if  you cant create a bootable pendrive try this before change (from MACRIUM reflect guide"

1. Run a command prompt session as an elevated user (see this article for more help) and enter the folloing commands.

2. diskpart

3. list disk


4. Identify the disk number of your USB pen drive. Caution should be taken with this step as incorrectly identifying a drive may attract unwanted consequences further in this solution.

5. select disk , where is the number of the disk previously identified as being the USB pen drive.  In the screenshot above, it can easily be seen that disk number 6 is the one we are after. Confirm that the current disk selection is correct by typing in detail disk, this will show information relating to the currently selected disk.

Please be certain you have the disk selection correct before proceeding to the next step.

6. clean.  This will erase all data on the USB pen drive.

7. create par primary.  This will create a primary partition on the USB pen drive using the maximum size available.

8. active to make the primary partition active.

9. format FS=fat32 LABEL="Macrium WinPE" QUICK.  This will format the newly created partition on the USB pen drive.

10. exit to exit diskpart.

11. exit to close the command prompt session.

windows trim function for ssd

fsutil behavior query disabledeletenotify

DisableDeleteNotify = 1 = TRIM support disabled

DisableDeleteNotify = 0 = TRIM support enabled


-----

fsutil behavior set disabledeletenotify 0

enable trim


-----

fsutil behavior set disabledeletenotify 1
 

disable trim 

MS ACCESS: send mail with CDO (send mail directly with smtp, without outlook or other program/client)

 from http://www.paulsadowski.com/wsh/cdo.htm

Windows 2000 and Windows XP use CDO messaging as a replacement for CDONTS.

Sending email with CDO is a simple task. First we create a reference to the CDO component




Set objMessage = CreateObject("CDO.Message")
then fill-in Sender, Subject and Recipient (To) fields of the headers and the body text which can be either plain text or HTML. You can also add a file attachment. You then use the Send method to send the email.

Below I'll show all three types of emails, and how to send an email using a remote SMTP server in the event you are not running your own. I've added and example to illustrate how to request a return receipt and delivery status notifications.

Please note, when using the AddAttachment method in your scripts you must use a fully qualified pathname as the argument to the method.  Using just a file name or a relative path will produce the error The specified protocol is unknown.

If you receive an error message related to objMessage.From then you should try replacing it with objMessage.Sender

I've added sample code to illustrate how to load the body of the email from a text file on your disk.

I've added a sample of how to load recipient data from a database.

I've added a sample illustrating how to use data from Excel in an email.

If you are looking for an ASP based email form processor then please look here.

If you are interested in a mass mailer using CDO and VBScript, look here.

  

This sample sends a simple text email that can be viewed in any email client.


Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = "me@my.com"
objMessage.To = "test@paulsadowski.com"
objMessage.TextBody = "This is some sample message text."
objMessage.Send

Sending an HTML email.

Note the use of the Cc & Bcc properties to send using Blind Carbon Copy (Bcc) and Carbon Copy (Cc).
These properties can be used with either text or HTML email.

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = "me@my.com"
objMessage.To = "test@paulsadowski.com" 'The line below shows how to send using HTML included directly in your script
objMessage.HTMLBody = "
This is some sample message html.

"

'The line below shows how to send a webpage from a remote site
'objMessage.CreateMHTMLBody "http://www.paulsadowski.com/wsh/"'The line below shows how to send a webpage from a file on your machine
'objMessage.CreateMHTMLBody "file://c|/temp/test.htm"

objMessage.Bcc = "you@your.com"
objMessage.Cc = "you2@your.com"
objMessage.Send

Sending a text email with an attached file. By repeating the .AddAttachment method you can attach more than one file.
When attaching files keep in mind that your recipient may be limited in their
ability to receive files above a certain size. Many ISPs limit emails to 8 or 10MB each.
You should not send large files to anyone before obtaining their permission.


Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = "me@my.com"
objMessage.To = "test@paulsadowski.com"
objMessage.TextBody = "This is some sample message text."
objMessage.AddAttachment "c:\temp\readme.txt"
objMessage.Send

Sending a text email using a remote server. Sometimes you need to send email using another server. It may be required by your
company, or your ISP may be blocking the SMTP port, or your dynamic IP may be
blacklisted for being in a dynamic pool.

This code shows you how to use a remotes server rather than the SMTP server
on your own machine.


Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = "me@my.com"
objMessage.To = "test@paulsadowski.com"
objMessage.TextBody = "This is some sample message text."

'==This section provides the configuration information for the remote SMTP server.
'==Normally you will only change the server name or IP. objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.myserver.com"

'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

objMessage.Configuration.Fields.Update

'==End remote SMTP server configuration section==

objMessage.Send

Sending a text email using authentication against a remote SMTP server. More and more administrators are restricting access to their servers to control spam or limit
which users may utilize the server. This example shows you how to use basic authentication,
the most commonly used authentication method, when the SMTP server you are using requires it.

This code is slightly more complex but not very difficult to understand or work with.


Const cdoSendUsingPickup = 1 'Send message using the local SMTP service pickup directory.
Const cdoSendUsingPort = 2 'Send the message using the network (SMTP over the network).

Const cdoAnonymous = 0 'Do not authenticate
Const cdoBasic = 1 'basic (clear-text) authentication
Const cdoNTLM = 2 'NTLM

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = """Me"" "
objMessage.To = "test@paulsadowski.com"
objMessage.TextBody = "This is some sample message text.." & vbCRLF & "It was sent using SMTP authentication."

'==This section provides the configuration information for the remote SMTP server.

objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.your.com"

'Type of authentication, NONE, Basic (Base64 encoded), NTLM
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic

'Your UserID on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = "youruserid"

'Your password on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "yourpassword"

'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

'Use SSL for the connection (False or True)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False

'Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60

objMessage.Configuration.Fields.Update

'==End remote SMTP server configuration section==

objMessage.Send

Send using authentication against a remote server with a file attachment and return receipt and
delivery disposition notification requests. In order to use the Delivery Status Notifications (Return
Receipt and Delivery Disposition requests) we need to create a reference to the CDO Configuration
object in addition to the CDO Message object and set a small number of properties. You must
use cdoSendUsingPort (network connection) and not the SMTP server's pickup directory
(cdoSendUsingPickup).


Const cdoSendUsingPickup = 1
Const cdoSendUsingPort = 2 'Must use this to use Delivery Notification
Const cdoAnonymous = 0
Const cdoBasic = 1 ' clear text
Const cdoNTLM = 2 'NTLM
'Delivery Status Notifications
Const cdoDSNDefault = 0 'None
Const cdoDSNNever = 1 'None
Const cdoDSNFailure = 2 'Failure
Const cdoDSNSuccess = 4 'Success
Const cdoDSNDelay = 8 'Delay
Const cdoDSNSuccessFailOrDelay = 14 'Success, failure or delay

set objMsg = CreateObject("CDO.Message")
set objConf = CreateObject("CDO.Configuration")

Set objFlds = objConf.Fields
With objFlds
  .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort
  .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.yourhost.com"
  .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
  .Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "your-username"
  .Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "your-password"
  .Update
End With

strBody = "This is a sample message." & vbCRLF
strBody = strBody & "It was sent using CDO." & vbCRLF

With objMsg
  Set .Configuration = objConf
  .To = "test@paulsadowski.com"
  .From = "me@my.com"
  .Subject = "This is a CDO test message"
  .TextBody = strBody
   'use .HTMLBody to send HTML email.
  .Addattachment "c:\temp\Scripty.zip"
  .Fields("urn:schemas:mailheader:disposition-notification-to") = "me@my.com"
  .Fields("urn:schemas:mailheader:return-receipt-to") = "me@my.com"
  .DSNOptions = cdoDSNSuccessFailOrDelay
  .Fields.update
  .Send
End With

In real world usage you'll most likely want to load the text of the email from a file on your
computer. The sample code below shows you how to do this. The text can be either
plain text or HTML as needed.Our example assumes your text is in the file
C:\Temp\MyEmail.txt. This code loads the entire content of that file into a variable,
here named BodyText which you can then reference in your CDO code. We
assume BodyText is in the scope of your CDO code.


'These constants are defined to make the code more readable
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
'Open the file for reading
Set f = fso.OpenTextFile("c:\temp\MyEmail.txt", ForReading)
'The ReadAll method reads the entire file into the variable BodyText
BodyText = f.ReadAll
'Close the file
f.Close
Set f = Nothing
Set fso = Nothing

Once the text is loaded you can use it in your CDO code something like this...

objMessage.TextBody = BodyText
or
objMessage.HTMLBody = BodyText

Load Recipients from a Database As is the case with most thing in Windows there are many ways to accomplish a task. This is one method of many.

Our database is an Access format database that resides on the local disk. The table in our database that we are     interested in is called Customers and each record consists of 4 fields named "ID", "Name", "Email", and "Customer", where ID is an autogenerated index, Name is the full name of our customer, Email is the customer's email address and Customer is their customer identification number.

We are only interested here in two fields, Name and Email.

ID
  

Name
  

Email
  

Customer

1
  

Bob Jones
  

bjones@test.com
  

12345

2
  

Jane Smith
  

jsmith@test.net
  

12346

Set OBJdbConnection = CreateObject("ADODB.Connection")
OBJdbConnection.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=c:\Acme Inc\Databases\Customers.mdb"
SQLQuery = "SELECT Name, Email FROM Customers"
Set Result = OBJdbConnection.Execute(SQLQuery)
if Not Result.EOF then
  Do While Not Result.EOF
    SendMail Result("Name"), Result("Email")
    Result.MoveNext
  Loop
end if
OBJdbConnection.Close

As you can see the code is simple. We create a database connection object then open the database and query it for the Name and Email fields of each customer. Those values are passed for each customer to a subroutine that sends the customer an email.

Sub SendMail(TheName, TheAddress)
Dim objMessage, Rcpt

Rcpt = Chr(34) & TheName & Chr(34) & "<" & TheAddress & ">"
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "This Month's Sales" objMessage.From = """Acme Sales"" "
objMessage.To = Rcpt
objMessage.HTMLBody = TextBody
objMessage.Send

End Sub


If you are not accustomed to working with databases then this may have seemed a daunting task but as you can see from the code above, it's really quite simple.

We've already covered sending email so I'll just mention that this subroutine assumes the HTML body text is a variable called TextBody (see Loading email body text from a file)

Also we format the recipient's address in the standard format of "Name" for a more professional look to the recipient..
Remarks

As previously stated there are many ways to do this. I've presented one simple method here. Your own use may be with an ODBC connection; it may use mySQL or SQL Server; it may include personalization of the email body text and more. My intent here was to provide you with the basics to get you started.

Load data from an Excel Worksheet


There may be times when you want to generate an email using data from an application such as Excel. This is one simple illustration of how that could be done. In our example we will be using a Workbook with three columns starting at column A row 1. Each row represents one product in our inventory and the three columns contains the following data about each item: Part Number, Name of Part, Number of Items in Inventory. Graphically our Workbook looks like this:

Part
  

Name
  

Stock

4583586
  

Fliggalhopper
  

452

5898547
  

Looplonger
  

293

This particular script works by walking down each cell of column 1 till it finds an empty cell which it assumes is the end of the list of entries. If your file may contain empty cells then you can use the Worksheet's UsedRange.Rows.Count property to find the last row in which an entry is made. Your code would then use a for loop something like this:


rowLast = objSheet.UsedRange.Rows.Count
for x = rowStart to rowLast
' do stuff
next

Function GetData()
Dim x, strTemp, objExcel, objWB

Set objExcel = Wscript.CreateObject("Excel.Application")
Set objWB = objExcel.Workbooks.Open("c:\Acme Inc\Workbooks\Test.xls")
Set objSheet = objExcel.ActiveWorkbook.Worksheets(1)

' Make Excel visible while debugging
objExcel.Visible = True

' This is the row of our first cell.
x = 1

do while objExcel.Cells(x, 1).Value <> ""
  strTemp = strTemp & objExcel.Cells(x, 1).Value & _
    Space(10 - Len(objExcel.Cells(x, 1).Value))
  strTemp = strTemp & objExcel.Cells(x, 2).Value & _
    Space(50 - Len(objExcel.Cells(x, 2).Value))
  strTemp = strTemp & objExcel.Cells(x, 3).Value & vbCRLF
  x = x + 1
loop

' This will prevent Excel from prompting us to save the workbook.
objExcel.ActiveWorkbook.Saved = True

' Close the workbook and exit the application.
objWB.Close
objExcel.Quit

set objWB = Nothing
set objExcel = Nothing

GetData = strTemp
End Function

' This is our main function.
Dim strBody

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Inventory report for " & Date
objMessage.From = "me@my.com"
objMessage.To = "bossman@my.com"
strBody = "Part" & Space(6) & "Item" & Space(46) & "Stock" & vbCRLF

' Here we call the function GetData to populate the body text.
strBody = strBody & GetData

objMessage.TextBody = strBody
objMessage.Send
The code above will produce an email that looks something like this:

To: bossman@my.com
From: me@my.com
Subject: Inventory report for 3/19/2005

Part      Item                                              Stock
4583586   Fliggalhopper                                     452
5898547   Looplonger                                        293

This sample sends a simple text email via GMail servers.

It's like any other mail but requires that you set the SMTP Port to 465 and tell CDO to use SSL


Const cdoSendUsingPickup = 1 'Send message using the local SMTP service pickup directory.
Const cdoSendUsingPort = 2 'Send the message using the network (SMTP over the network).

Const cdoAnonymous = 0 'Do not authenticate
Const cdoBasic = 1 'basic (clear-text) authentication
Const cdoNTLM = 2 'NTLM

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = """Me"" "
objMessage.To = "me@my.com"
objMessage.TextBody = "This is some sample message text.." & vbCRLF & "It was sent using SMTP authentication and SSL."

'==This section provides the configuration information for the remote SMTP server.

objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.com"

'Type of authentication, NONE, Basic (Base64 encoded), NTLM
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic

'Your UserID on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = "You@gmail.com"

'Your password on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "YourPassword"

'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465

'Use SSL for the connection (False or True)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True

'Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60

objMessage.Configuration.Fields.Update

'==End remote SMTP server configuration section==

objMessage.Send


ANOTHER CODE from http://www.tek-tips.com/faqs.cfm?fid=6504

'REQUIRES MICROSOFT CDO LIBRARY INCLUSION
Public Function SendOneEMailViaCDO(strBody As String, _
                                        strTo As String, _
                                        strFrom, _
                                        strBCC, _
                                        strSubject As String, _
                                        bolHighImportance As Boolean) As Boolean
 
    Const ROUTINE_NAME = "SendOneEMailViaCDO"
  
    Dim bolResults As Boolean
    Dim strServerName As String
  
    strServerName = "PUT YOUR SERVER NAME HERE"
  
    bolResults = True
  
 
    Dim objCDOMsg As CDO.Message
    Dim objCDOConfiguration As CDO.Configuration
 
  
  
    Set objCDOMsg = CreateObject("CDO.Message")
    Set objCDOConfiguration = CreateObject("CDO.Configuration")
  
    With objCDOConfiguration
      
        .Fields.Item("urn:schemas:mailheader:X-Mailer") = "Microsoft CDO for Windows 2000"

        .Fields(cdoSendUsingMethod) = 2    'cdoSendUsingPort
        .Fields(cdoSMTPServer) = strServerName
        .Fields(cdoSMTPAuthenticate) = 0 'cdoAnonymous
        .Fields(cdoSMTPServerPort) = 25
        .Fields(cdoSMTPConnectionTimeout) = 10
      
        'message headers
        '.Fields.Item("urn:schemas:mailheader:date") = "Tue, 6 Oct 2005 11:15:08 -0700"
        '.Fields("Date") = "Tue, 6 Oct 2005 11:15:08 -0700"
        '.Fields.Update
        '.Fields.Resync
      
      
        If bolHighImportance = True Then
          .Fields(cdoImportance) = cdoHigh 'cdoHigh   'High importance
          .Fields("urn:schemas:mailheader:X-MSMail-Priority") = "High" 'cdoHigh
          .Fields("urn:schemas:mailheader:X-Priority") = 2
        Else
          .Fields(cdoImportance) = cdoNormal  'High importance
          .Fields("urn:schemas:mailheader:X-MSMail-Priority") = cdoNormal
          .Fields("urn:schemas:mailheader:X-Priority") = 5
        End If
        .Fields.Update
    End With
  
    Set objCDOMsg.Configuration = objCDOConfiguration

   With objCDOMsg
         .MimeFormatted = False
         .AutoGenerateTextBody = False
         .To = strTo
                   
         .From = strFrom
         .Subject = strSubject
         .HTMLBody = strBody
          
         If bolHighImportance = True Then
             '.Fields(cdoImportance) = cdoHigh
         Else
             '.Fields(cdoImportance) = cdoNormal
         End If
         .Fields.Update
       
         .Send
   End With
 
    Set objCDOMsg = Nothing
    Set objCDOConfiguration = Nothing
 
ExitRoutine:

 
End Function

  

  

  

  

  

  

          

MS ACCESS: save report to pdf in subfolder with db relative path


Dim filename As String
filename  = CurrentProject.Path & "\subfoldarename\" &  "filename.pdf"
DoCmd.OutputTo acOutputReport, "reportname", acFormatPDF, filename

access trusted location folder

dal blog:  Access da zia Cin(zia) 

Private Sub Form_Load()
Dim shl
Dim strPath As String

Set shl = CreateObject("WScript.Shell")
If CurrentProject.Path <> shl.ExpandEnvironmentStrings("%USERPROFILE%Desktop") Then
      On Error Resume Next
      strPath = shl.RegRead(g_strKey)

       If strPath <> CurrentProject.Path Then
                        shl.RegWrite g_strKey, CurrentProject.Path
        End If
 End If
 Set shl = nothing
end sub
 

viveversa pro fail dir command

viveversa pro fail dir command


from viceversa pro forum

on windows command line:

sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi
sc.exe config mrxsmb20 start= disabled

MAC: hot key boot

from apple.com:

Startup key combinations for Intel-based Macs

Learn about the startup key combinations you can use with Intel-based Macs.

You can use the following startup key combinations with Intel-based Macs.
Press C during startup Start up from a bootable CD, DVD, or USB thumb drive (such as OS X install media).
Press D during startup Start up in Apple Hardware Test (AHT).
Press Option-Command-P-R until you hear startup sound a second time. Reset NVRAM
Press Option during startup Start up in Startup Manager, where you can select an OS X volume or network volume to start from.  
Press Eject, F12, or hold the mouse or trackpad button Ejects any removable media, such as an optical disc.
Press N during startup Attempt to start up from a compatible network server (NetBoot).
Press T during startup Start up in Target Disk Mode.
Press Shift during startup Start up in Safe Boot mode and temporarily disable login items.
Press Command-V during startup Start up in Verbose mode.
Press Command-S during startup Start up in Single-User mode.
Press Option-N during startup Start from a NetBoot server using the default boot image.
Press Command-R during startup Start from the OS X Recovery System1

MS Access: environ

Private Sub readenviron()
'read only processor
Dim txt
txt = Environ("COMPUTERNAME") & " - " & Environ("PROCESSOR_IDENTIFIER") & " - " & Environ("PROCESSOR_REVISION") & " - " & Environ("PROCESSOR_LEVEL") & " - " & Environ("USERPROFILE") & " - " & Environ("NUMBER_OF_PROCESSORS")
MsgBox txt
'read all
Dim x
txt = ""
For x = 1 To 200
txt = txt & " - " & Environ(x)
Next x
MsgBox txt
End Sub

“Impossibile accedere a XXXXX. Autorizzazioni insufficienti per accedere a \\XXXX\XXX. Contattare l’amministrazione della rete per richiedere l’accesso.”

da http://simoneperego.wordpress.com/2011/04/08/windows-7-il-server-non-ha-potuto-allocare-memoria-non-di-paging/


Tentando di accedere da un pc con Windows XP Professional a una cartella condivisa di un PC con Windows 7 Professional è possibile che si presenti un messaggio di errore simile a questo:
“Impossibile accedere a XXXXX. Autorizzazioni insufficienti per accedere a \\XXXX\XXX. Contattare l’amministrazione della rete per richiedere l’accesso.”
Nello stesso momento sul computer con Windows 7 viene creato nel registro eventi un messaggio con ID 2017 simile a questo:
“Il server non ha potuto allocare memoria non di paging. È stato raggiunto il limite configurato per allocazioni di memoria non di paging.”
Per risolvere il problema è sufficiente modificare il valore di questa chiave di registro sul computer con Win 7
HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\size
che di default è impostato a 1 e portarlo a 3.
Dopo aver riavviato il PC il messaggio di errore non apparirà più.

from access table to google maps

from ialweb
http://forum.ialweb.it/forum_posts.asp?TID=14993573&PN=8&title=access-interfaccia-mappe-cartografiche-google-maps-earth-e-navigatori


Public Function RichiamaGoogleMaps(Citta, Cap, Indirizzo, NumeroCivico, SiglaLingua)
Dim Link As String
Dim ret As Integer
    Indirizzo = Replace(Nz(Indirizzo & " " & NumeroCivico, ""), ",", " ")
    Citta = Replace(Nz(Citta, ""), ",", " ")
    Cap = Nz(Cap, "")
    Link = "http://maps.google.it/?q="
    Link = Link & Indirizzo & " , " & Cap & " " & Citta & "&hl=" & SiglaLingua
    ret = Shell("rundll32.exe url.dll,FileProtocolHandler " & (Link))
End Function

Public Function RichiamaGoogleMapsLatitudineLogitudine(Latitudine, Logitudine, SiglaLingua)
Dim Link As String
Dim ret As Integer
    Latitudine = Nz(Latitudine, "")
    Logitudine = Nz(Logitudine, "")
    Link = "http://maps.google.it/?q="
    Link = Link & Latitudine & " , " & Logitudine & "&hl=" & SiglaLingua
    ret = Shell("rundll32.exe url.dll,FileProtocolHandler " & (Link))
End Function

from ms access table to KML (google earth)

from
http://www.access-programmers.co.uk/forums/showthread.php?t=195044



Dim MyDB As Database
Dim MyRS As Recordset
Dim fld As Field
Dim strText As String
Dim MyTableName As String
Dim QryOrTblDef As String
Dim iFile As Integer
    QryOrTblDef = "DanielsKMLtest" 'this is a query
    Set MyDB = CurrentDb
    Set MyRS = MyDB.OpenRecordset(QryOrTblDef)
    iFile = FreeFile
   
    'creates the blank file with the follwing name
    Open "c:\KMLTest.kml" For Output Shared As #iFile
   
    'writes to the file using input from the query
    Print #iFile, ""
    Print #iFile, ""
    Print #iFile, ""
    Print #iFile, " KMLTest.kml"
    'creates a folder in google earth architechure
    Print #iFile, " "
    Print #iFile, " Spotters"
    Print #iFile, " 1"
    'creates another folder (sub to the above folder
    Print #iFile, " "
    Print #iFile, " Daniels County"
    Print #iFile, " 1"
    Print #iFile, " <![CDATA[]]>"
    With MyRS
        Do Until .EOF
            Print #iFile, " "
            strText = " <![CDATA[Name: " & MyRS.Fields(0) & "
City: " & MyRS.Fields(1) & "
Phone: " & MyRS.Fields(3) & "]]>
"
            Print #iFile, strText
           
            strText = " " & MyRS.Fields(0) & ""
            Print #iFile, strText
           
       
           
        'Print #iFile, ""
        'imports the lat and long from the 5th field (first field is a 0) in the query
        strText = "
" & MyRS.Fields(4) & "
"
        Print #iFile, strText
        'Print #iFile, "
"            Print #iFile, "
"            .MoveNext
        Loop
    End With
    Print #iFile, "
"    Print #iFile, "
"    Print #iFile, "
"    Print #iFile, "
"    Close #iFile
    MyRS.Close
    'resest the recordset and database to blank
    Set MyRS = Nothing
    Set MyDB = Nothing
    'launches google earth
    Call Shell("explorer.exe " & "c:\KMLTest.kml", vbNormalFocus)
End Sub

iphone locked dfu mode

http://forum.telefonino.net/archive/index.php?t-729092.html

http://www.ispazio.net/download-firmwares-iphone-4s

redmon and pcl

D:\Desktop\ghostpcl-9.10-win32\pcl6-1.exe

-dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="c:\pluto.pdf" -

MS access confronto tabelle con ADO

rielaborazione procedura creata da alberto plano per sitocomune ma con procedura ADO in sostituzione di DAO

Public Sub Tabelle_a_confronto(Tab1 As String, Tab2 As String)
'Autore: Alberto Plano (albertoplano@iteco.it)
'Input: Nome delle due tabelle/query da confrontare.
'Tab1 e Tab2 devono avere la stessa struttura affinchè
' i risultati ottenuti siano sensati.
'Tab1 e Tab2 non devono contenere campi di tipo OLE.
Dim dbase As ADODB.Connection
Dim T1 As ADODB.Recordset, T2 As ADODB.Recordset
Dim campo As ADODB.Field
Dim aiuto1(), aiuto2() As String
Dim indice1, indice2 As Long

'Set dbase = CurrentDb
Set T1 = New ADODB.Recordset
    T1.Source = "comuni"
    T1.ActiveConnection = Application.CodeProject.Connection
    T1.CursorType = adOpenStatic
    T1.LockType = adLockOptimistic
    T1.Open
Set T2 = New ADODB.Recordset
    T2.Source = "comuni1"
    T2.ActiveConnection = Application.CodeProject.Connection
    T2.CursorType = adOpenStatic
    T2.LockType = adLockOptimistic
    T2.Open

Rem Creo le matrici aiuto1 e aiuto2
T1.MoveLast
T2.MoveLast
ReDim aiuto1(1 To T1.RecordCount)
ReDim aiuto2(1 To T2.RecordCount)

T1.MoveFirst
For indice1 = 1 To T1.RecordCount
aiuto1(indice1) = ""
For indice2 = 0 To T1.Fields.Count - 1
aiuto1(indice1) = aiuto1(indice1) + CStr(T1(indice2).Name) + " " + CStr(Null_to_zero(T1(indice2))) & Chr$(10)
Next indice2
T1.MoveNext
Next indice1
T2.MoveFirst
For indice1 = 1 To T2.RecordCount
aiuto2(indice1) = ""
For indice2 = 0 To T2.Fields.Count - 1
aiuto2(indice1) = aiuto2(indice1) + CStr(T1(indice2).Name) + " " + CStr(Null_to_zero(T2(indice2))) & Chr$(10)
Next indice2
T2.MoveNext
Next indice1

Rem Elimino le stringhe uguali che sono contenute in Aiuto1 e Aiuto2
For indice1 = 1 To T1.RecordCount
For indice2 = 1 To T2.RecordCount
If aiuto1(indice1) = aiuto2(indice2) Then
aiuto1(indice1) = ""
aiuto2(indice2) = ""
Exit For
End If
Next indice2
Next indice1

Rem Visualizzo i record di Tab1 che non sono contenuti in Tab2
Dim messaggio As String
Dim uguale As Integer
uguale = True
For indice1 = 1 To T1.RecordCount
If aiuto1(indice1) <> "" Then
messaggio = "Record presente in " & Tab1 & " e mancante in " & Tab2 & Chr$(10) & Chr$(10) & aiuto1(indice1)
MsgBox messaggio
uguale = False
End If
Next indice1
For indice2 = 1 To T2.RecordCount
If aiuto2(indice2) <> "" Then
messaggio = "Record presente in " & Tab2 & " e mancante in " & Tab1 & Chr$(10) & Chr$(10) & aiuto2(indice2)
MsgBox messaggio
uguale = False
End If
Next indice2
If uguale Then
MsgBox Tab1 & " e " & Tab2 & " sono identiche."
End If
    T1.Close
    Set T1 = Nothing
        T2.Close
    Set T2 = Nothing
End Sub

ms access ado records utilization

http://www.functionx.com/vbaccess/Lesson26.htm


windows 7: profilo danneggiato

http://support.microsoft.com/kb/947215/it

access and asp

http://stackoverflow.com/questions/10284128/accessing-a-hyperlink-in-a-gridview-column

http://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/using-classic-asp-with-microsoft-access-databases-on-iis