mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-11-06 02:37:46 -06:00
new branch windows
This commit is contained in:
26
open-folder-in-explorer.php
Normal file
26
open-folder-in-explorer.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
$explorer = $_ENV["SYSTEMROOT"] . '\\explorer.exe';
|
||||
$folder_to_open = "C:\\Windows";
|
||||
// Using "system" function would cause a false/positive
|
||||
// by Bkav antivirus on virustotal.com. Using shell_exec
|
||||
// instead solves the issue.
|
||||
shell_exec("$explorer /n,/e,$folder_to_open");
|
||||
|
||||
?>
|
||||
|
||||
<style type="text/css">@import url("style.css");</style>
|
||||
<a href="index.php">Go back to index</a>
|
||||
| <a href="<?php echo $_SERVER["REQUEST_URI"];?>">Refresh</a>
|
||||
|
||||
<title>Open folder in Explorer</title>
|
||||
<h1>Open folder in Explorer</h1>
|
||||
|
||||
<pre>
|
||||
$explorer = $_ENV["SYSTEMROOT"] . '\\explorer.exe';
|
||||
$folder_to_open = "C:\\Windows";
|
||||
// Using "system" function would cause a false/positive
|
||||
// by Bkav antivirus on virustotal.com. Using shell_exec
|
||||
// instead solves the issue.
|
||||
shell_exec("$explorer /n,/e,$folder_to_open");
|
||||
</pre>
|
||||
Reference in New Issue
Block a user