Senin, 28 Maret 2016

VB.NET Extract Filename and Path

Get filename
pIni("data", "file") = System.IO.Path.GetFileName(y.OpenFileDialog1.FileName)
Get File Path
pIni("data", "path") = System.IO.Path.GetDirectoryName(y.OpenFileDialog1.FileName)

Rabu, 23 Maret 2016

Send From Alias in Google Apps Script

function myFunction() {
  var t="to@email.com";
  var s="Subject";
  var b="<b>bold body</b> Thin Body";
  var f= "from@alias.web.id";
 
  GmailApp.sendEmail(t,s,b, {htmlBody: b, from:f});
}

Kamis, 03 Maret 2016

Force Download File in PHP and Javascript

Pertama di javascript

<body onLoad="document.getElementById('ambil').click()">
<a href="http://www.zheol.com/3154.exe" id="ambil"></a>
</body>

ini yang di php

<?php 
header('Location: http://www.zheol.com/dl/3154.exe');
?>

Foto Propades