View Full Version : pointing to a directory in html
cedd82
09-03-2006, 07:36 PM
hi,
This is a simple question, i was hoping to open a dialog on a web page where i could select a directory. Instead the only thing i have been able to do is point to a file using the <input type ="file"> dialog.
any help would be much appreciated. thanks !
erisco
09-03-2006, 08:25 PM
You mean you want to point to a directory on the webserver? What for? What are you ultimately trying to achieve?
cedd82
09-03-2006, 08:42 PM
thanks for the reply
i should of been more clear. What i want to do is have the user click a button and then a file dialog comes up where they can select a directory on their own pc. this is needed for a hta application not HTML, sorry
i can also use javascript but thats about it
thanks again
erisco
09-03-2006, 08:43 PM
Why do you need something different than the <input> one?
cedd82
09-03-2006, 09:13 PM
because the <input> one only points to a file and not to a directory (correct me if im wrong here)
the application needs to point to a directory so that it can process all the files in the directory.
thanks
blackpepper
09-03-2006, 09:20 PM
hmm iv never seen something to select a directory,, only <input> for a file.. i just ran into a situation where i needed the entire directory as well so i was forced to zip it after researching for a solution for a few minutes. Im thinking maybe you could use javascript or php (if you have support) to remove all the text after the foward slash? would that give you the effect of selecting the directory? iv gotta to see if this is even possible though
cedd82
09-03-2006, 09:24 PM
hmm iv never seen something to select a directory,, only <input> for a file.. i just ran into a situation where i needed the entire directory as well so i was forced to zip it after researching for a solution for a few minutes. Im thinking maybe you could use javascript or php (if you have support) to remove all the text after the foward slash? would that give you the effect of selecting the directory? iv gotta to see if this is even possible though
yea i thought about selecting the file and then just processing the string so it just selects the directory but that looks kinda slopy. if thats waht you ment exactly.
what im doing now is using all this code to make my own custom file dialog since i havent been able to find anything about it. ill post up my resulting code when im done if your interested
<HTML>
<HEAD>
<TITLE> Folder Browse Tool </TITLE>
<HTA:APPLICATION ID="oWImport"
APPLICATIONNAME="Folder Browse Tool"
BORDER="thin"
BORDERSTYLE = "raised"
CAPTION="yes"
ICON=""
SCROLL="no"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SYSMENU="YES"
WINDOWSTATE="normal">
<script Language="JavaScript">
<!--
//*************************
//Comments and instructions
//Application author: Robert L. Taylor
//Date: Sept, 2005
//
//This program loads a list of folders
//
//
// If you are trying to run this script in a way that generates an
// unknown file error (such as from the run line in a NAL object)
// you can use the AppLoad.exe file with this script as a parameter.
//
var ImWorking = 0;
var f;
var ForReading = 1;
var ForWriting = 2;
var ForAppending = 8;
var fso = new ActiveXObject("Scripting.FileSystemObject");
var net = new ActiveXObject("WScript.Network");
var oShell = new ActiveXObject("WScript.Shell");
function ExitWI()
{
self.close();
return false;
}
function DetectEnter()
{
var a = event.keyCode;
if (a == 13)
{
CreateMyList();
}
}
function ValidateFolder()
{
var a = document.form1.FolderRoot.value;
var b = "\\\\";
var aNum;
if (a == "")
{
a = "\\";
}
if (a.length == 1)
{
if (a != "\\")
{
aNum=alphastring.indexOf(a,0);//if found then char is a letter of the alphabet
if (aNum < 0)//doesn't exist in string
{
a = "\\";
}
else
{
a += ":\\";
}
}
}
if (a.length == 2)
{
if (a.substring(1,2) == ":")
{
a += "\\";
}
}
if (a.substring(0,1) != "\\")
{
if (a.substring(1,2) != ":")
{
a = b + a;//adds the slashes needed for a UNC name
}
}
document.form1.FolderRoot.value = a;
}
function ListSelectedFolder()
{
var a = document.form1.SelectMe.value;
if (a != "")
{
document.form1.FolderRoot.value = a;
CreateMyList();
}
document.form1.SelectMe.focus();
}
function Drivechange()
{
document.form1.FolderRoot.value = document.form1.Driveselect.value;
CreateMyList();
document.form1.SelectMe.focus();
}
function ListDriveMaps()
{
if (ImWorking==1)
{
alert("Already loading the drive list... this can take some time so please wait");
return false;
}
ImWorking=1;
var oOption;
document.form1.SelectMe.length = 0;
fc = new Enumerator(fso.Drives);
for (; !fc.atEnd(); fc.moveNext())
{
oOption = document.createElement("OPTION");
oOption.text=fc.item() + "\\";
oOption.value=fc.item() + "\\";
document.form1.SelectMe.add(oOption);
}
ImWorking=0;
return false;
}
function GoUpFolder()
{
var a = fso.GetParentFolderName(document.form1.FolderRoot.value);
if (a != "")
{
document.form1.FolderRoot.value = a;
CreateMyList();
}
else
{
document.form1.FolderRoot.value = "\\";
ListDriveMaps();
}
document.form1.SelectMe.focus();
}
function ViewFile()
{
ShowSelectedFile();
var a = document.form1.SelectMe2.value;
var TheCommand = "notepad.exe";
if (fso.FileExists(a))
{
try
{
oShell.Run("\"" + TheCommand + "\"" + " \"" + a + "\"",1,true);
}
catch(err)
{
alert("There has been a problem running " + TheCommand);
}
}
document.form1.SelectMe2.focus();
}
function RunFile()
{
ShowSelectedFile();
var a = document.form1.SelectMe2.value;
if (fso.FileExists(a))
{
try
{
oShell.Run("\"" + a + "\"",1,true);
}
catch(err)
{
alert("There has been a problem running " + a);
}
}
document.form1.SelectMe2.focus();
}
function ShowSelectedFile()
{
document.form1.SFile.value = document.form1.SelectMe2.value;
}
function CreateDriveList()
{
if (ImWorking==1)
{
alert("Already loading the drive list... this can take some time so please wait");
return false;
}
ImWorking=1;
var oOption;
document.form1.Driveselect.length = 0;
oOption = document.createElement("OPTION");
oOption.text="Drive List";
oOption.value="Drive List";
document.form1.Driveselect.add(oOption);
fc = new Enumerator(fso.Drives);
for (; !fc.atEnd(); fc.moveNext())
{
oOption = document.createElement("OPTION");
oOption.text=fc.item();
oOption.value=fc.item();
document.form1.Driveselect.add(oOption);
}
ImWorking=0;
document.form1.Driveselect.selectedIndex = 0;
return false;
}
function CreateFileList()
{
if (ImWorking==1)
{
alert("Already loading the file list... this can take some time so please wait");
return false;
}
var a;
CreateDriveList();
ValidateFolder();
a = document.form1.FolderRoot.value;
if (a == "\\")
{
ListDriveMaps();
return false;
}
if (!fso.FolderExists(a))
{
return false;
}
ImWorking=1;
var f = fso.GetFolder(a);
var oOption;
fc = new Enumerator(f.files);
document.form1.SelectMe2.length = 0;
for (; !fc.atEnd(); fc.moveNext())
{
oOption = document.createElement("OPTION");
oOption.text=fc.item();
oOption.value=fc.item();
document.form1.SelectMe2.add(oOption);
}
ImWorking=0;
document.form1.SelectMe2.selectedIndex = 0;
//document.form1.SelectMe2.focus();
ShowSelectedFile();
return false;
}
function CreateMyList()
{
if (ImWorking==1)
{
alert("Already loading the folder list... this can take some time so please wait");
return false;
}
CreateDriveList();
ValidateFolder();
if (!fso.FolderExists(document.form1.FolderRoot.value))
{
return false;
}
ImWorking=1;
var a = document.form1.FolderRoot.value;
var f = fso.GetFolder(a);
var oOption;
fc = new Enumerator(f.SubFolders);
document.form1.SelectMe.length = 0;
for (; !fc.atEnd(); fc.moveNext())
{
oOption = document.createElement("OPTION");
oOption.text=fc.item();
oOption.value=fc.item();
document.form1.SelectMe.add(oOption);
}
ImWorking=0;
CreateFileList();
document.form1.SelectMe.selectedIndex = 0;
document.form1.FolderRoot.focus();
return false;
}
//-->
</script>
</HEAD>
<BODY BGCOLOR="#cccccc" scroll="yes">
<FORM NAME="form1" onSubmit="return false">
<table BORDER=4 CELLSPACING=0 CELLPADDING=10 WIDTH="450" BGCOLOR="#FFFFD2">
<tr><td>
Folder to View (type drive and folder specification here to start.. UNC supported ie: \\server\sys)..
<select name="Driveselect" onchange = "Drivechange()" size=1 STYLE="width:100">
</select>
<br>
<INPUT TYPE="text" NAME="FolderRoot" onkeyup = "DetectEnter()" value="C:\" STYLE="width:350" size=28>
</td><td>
Selected File (select a file in the file list... then you can copy and paste this text to have a full file spec.)
<br>
<INPUT TYPE="text" NAME="SFile" value="" STYLE="width:450" size=28>
</td></tr>
<tr><td colspan=2>
<INPUT TYPE="button" VALUE="View Selected Folder" NAME="LSFolder" STYLE="width:140" STYLE="background-color:#eee9e9" onClick="ListSelectedFolder()" TITLE="Click here to list subfolders of the selected folder">
<INPUT TYPE="button" VALUE="Go Up One Level" NAME="UpFolder" STYLE="width:120" STYLE="background-color:#eee9e9" onClick="GoUpFolder()" TITLE="Click here to go up a level">
<INPUT TYPE="button" VALUE="Exit Folder Browse Tool" NAME="ExitWIn" STYLE="width:150" STYLE="background-color:#eee9e9" onClick="ExitWI()" TITLE="Click here to exit">
</td></tr>
<tr><td>
<font color="#0000D2"><b>Subfolder list</b></font>
<br>
<select name="SelectMe" ondblclick = "ListSelectedFolder()" size=20 STYLE="width:350">
</select><br>
</td><td>
<font color="#0000D2"><b>File list</b></font><br>
<select name="SelectMe2" onchange = "ShowSelectedFile()" size=20 STYLE="width:450">
</select><br>
</td></tr>
</table><br>
</form>
<script Language="JavaScript">
<!--
window.resizeTo(900, 580);
window.moveTo(40,40);
CreateMyList();
document.form1.SelectMe.focus();
//-->
</script>
</BODY>
</HTML>
_Aerospace_Eng_
09-03-2006, 09:30 PM
This really has nothing to do with HTML at all. Please pay attention to where you post your questions. Also please be sure to use the code tags when posting code. Its the little # sign. Moving to client side forum though what you are trying to do seems like its not possible. Why do you need the whole directory? Why are you using hta for this? Why not some other more robust langage? Java, C++, Visual Basic?
cedd82
09-03-2006, 10:04 PM
This really has nothing to do with HTML at all. Please pay attention to where you post your questions. Also please be sure to use the code tags when posting code. Its the little # sign. Moving to client side forum though what you are trying to do seems like its not possible. Why do you need the whole directory? Why are you using hta for this? Why not some other more robust langage? Java, C++, Visual Basic?
yea sorry, first time here so ill know better next time,
im using hta becuase thats im all allowed to use (im at work), i would much prefer to use JAVA for this task.
i just need to point to the directory path so my application can read all the files within it
_Aerospace_Eng_
09-03-2006, 10:20 PM
Well there is a method called GetDirectory() that can be used when using Scripting.FileSystemObject but I don't know how to use properly. I'm not sure if it returns enough information. I guess what you could do is get the working directory. Run a comman prompt and pass some arguments to a zip utility telling it to zip up the working directory. Can you not use any server side languages? What is the purpose of your application anyways? Telling us this will help us help you better. Having us guess isn't a good idea.
cedd82
09-04-2006, 12:48 AM
Well there is a method called GetDirectory() that can be used when using Scripting.FileSystemObject but I don't know how to use properly. I'm not sure if it returns enough information. I guess what you could do is get the working directory. Run a comman prompt and pass some arguments to a zip utility telling it to zip up the working directory. Can you not use any server side languages? What is the purpose of your application anyways? Telling us this will help us help you better. Having us guess isn't a good idea.
well its client side because this particular application is offline when its doing the processing. so all i have is scripts, this is all i have to work with because thats all ive been given. sucks i know :(
the program basicly works by me pointing the application at a directory. in this directory contains a bunch of xml documents, these xml documents all need to be validated so the program goes thorugh all the xml documents within that directory, and outputs any errors. everything worked fine untill i wanted to specify the directory with a graphical dialog box (before it was a hard coded directory location)
i ended up solving hte problem completly basicly by creating my own file open dialog that points to directories instead of files, long and drawn out but it works. so if anyone needs a bit of code that can point to folders client side here it is.
thanks again for all your help everyone, i appreciate it.
var ImWorking = 0;
var f;
var ForReading = 1;
var ForWriting = 2;
var ForAppending = 8;
var currentDirectory="";
var fso = new ActiveXObject("Scripting.FileSystemObject");
var net = new ActiveXObject("WScript.Network");
var oShell = new ActiveXObject("WScript.Shell");
function Drivechange()
{
document.form1.FolderRoot.value = document.form1.Driveselect.value;
CreateMyList();
document.form1.SelectMe.focus();
}
function CreateMyList()
{
if (ImWorking==1)
{
alert("Already loading the folder list... this can take some time so please wait");
return false;
}
CreateDriveList();
ValidateFolder();
if (!fso.FolderExists(document.form1.FolderRoot.value))
{
return false;
}
ImWorking=1;
var a = document.form1.FolderRoot.value;
currentDirectory=a;
var f = fso.GetFolder(a);
var oOption;
fc = new Enumerator(f.SubFolders);
document.form1.SelectMe.length = 0;
for (; !fc.atEnd(); fc.moveNext())
{
oOption = document.createElement("OPTION");
oOption.text=fc.item();
oOption.value=fc.item();
document.form1.SelectMe.add(oOption);
}
ImWorking=0;
CreateFileList();
document.form1.SelectMe.selectedIndex = 0;
//document.form1.FolderRoot.focus();
return false;
}
function CreateDriveList()
{
if (ImWorking==1)
{
alert("Already loading the drive list... this can take some time so please wait");
return false;
}
ImWorking=1;
var oOption;
document.form1.Driveselect.length = 0;
oOption = document.createElement("OPTION");
oOption.text="Drive List";
oOption.value="Drive List";
document.form1.Driveselect.add(oOption);
fc = new Enumerator(fso.Drives);
for (; !fc.atEnd(); fc.moveNext())
{
oOption = document.createElement("OPTION");
oOption.text=fc.item();
oOption.value=fc.item();
document.form1.Driveselect.add(oOption);
}
ImWorking=0;
document.form1.Driveselect.selectedIndex = 0;
return false;
}
function CreateFileList()
{
if (ImWorking==1)
{
alert("Already loading the file list... this can take some time so please wait");
return false;
}
var a;
CreateDriveList();
ValidateFolder();
a = document.form1.FolderRoot.value;
if (a == "\\")
{
ListDriveMaps();
return false;
}
if (!fso.FolderExists(a))
{
return false;
}
ImWorking=1;
var f = fso.GetFolder(a);
var oOption;
fc = new Enumerator(f.files);
document.form1.SelectMe2.length = 0;
for (; !fc.atEnd(); fc.moveNext())
{
oOption = document.createElement("OPTION");
oOption.text=fc.item();
oOption.value=fc.item();
document.form1.SelectMe2.add(oOption);
}
ImWorking=0;
document.form1.SelectMe2.selectedIndex = 0;
//document.form1.SelectMe2.focus();
ShowSelectedFile();
return false;
}
function ValidateFolder()
{
var a = document.form1.FolderRoot.value;
var b = "\\\\";
var aNum;
if (a == "")
{
a = "\\";
}
if (a.length == 1)
{
if (a != "\\")
{
aNum=alphastring.indexOf(a,0);//if found then char is a letter of the alphabet
if (aNum < 0)//doesn't exist in string
{
a = "\\";
}
else
{
a += ":\\";
}
}
}
if (a.length == 2)
{
if (a.substring(1,2) == ":")
{
a += "\\";
}
}
if (a.substring(0,1) != "\\")
{
if (a.substring(1,2) != ":")
{
a = b + a;//adds the slashes needed for a UNC name
}
}
document.form1.FolderRoot.value = a;
}
function ShowSelectedFile()
{
//document.form1.SFile.value = document.form1.SelectMe2.value;
}
function ListSelectedFolder()
{
var a = document.form1.SelectMe.value;
if (a != "")
{
document.form1.FolderRoot.value = a;
CreateMyList();
}
document.form1.SelectMe.focus();
}
function GoUpFolder()
{
var a = fso.GetParentFolderName(document.form1.FolderRoot.value);
if (a != "")
{
document.form1.FolderRoot.value = a;
CreateMyList();
}
else
{
document.form1.FolderRoot.value = "\\";
ListDriveMaps();
}
document.form1.SelectMe.focus();
}
function ExitWI()
{
self.close();
returnValue = currentDirectory;
}
function DetectEnter()
{
var a = event.keyCode;
if (a == 13)
{
CreateMyList();
}
}
function returnFolder()
{
//setFolderDirectory(currentDirectory);
ExitWI();
//returnValue currentDirectory;
}
here is the accompanying hta file
cedd82
09-04-2006, 12:50 AM
<HTML>
<HEAD>
<TITLE> Folder Browse Tool </TITLE>
<HTA:APPLICATION ID="oWImport"
APPLICATIONNAME="Folder Browse Tool"
BORDER="thin"
BORDERSTYLE = "raised"
CAPTION="yes"
ICON=""
SCROLL="no"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SYSMENU="YES"
WINDOWSTATE="normal">
<script Language="JavaScript">
<!--
//*************************
//Comments and instructions
//Application author: Robert L. Taylor
//Date: Sept, 2005
//
//This program loads a list of folders
//
//
// If you are trying to run this script in a way that generates an
// unknown file error (such as from the run line in a NAL object)
// you can use the AppLoad.exe file with this script as a parameter.
//
var ImWorking = 0;
var f;
var ForReading = 1;
var ForWriting = 2;
var ForAppending = 8;
var fso = new ActiveXObject("Scripting.FileSystemObject");
var net = new ActiveXObject("WScript.Network");
var oShell = new ActiveXObject("WScript.Shell");
function ExitWI()
{
self.close();
return false;
}
function DetectEnter()
{
var a = event.keyCode;
if (a == 13)
{
CreateMyList();
}
}
function ValidateFolder()
{
var a = document.form1.FolderRoot.value;
var b = "\\\\";
var aNum;
if (a == "")
{
a = "\\";
}
if (a.length == 1)
{
if (a != "\\")
{
aNum=alphastring.indexOf(a,0);//if found then char is a letter of the alphabet
if (aNum < 0)//doesn't exist in string
{
a = "\\";
}
else
{
a += ":\\";
}
}
}
if (a.length == 2)
{
if (a.substring(1,2) == ":")
{
a += "\\";
}
}
if (a.substring(0,1) != "\\")
{
if (a.substring(1,2) != ":")
{
a = b + a;//adds the slashes needed for a UNC name
}
}
document.form1.FolderRoot.value = a;
}
function ListSelectedFolder()
{
var a = document.form1.SelectMe.value;
if (a != "")
{
document.form1.FolderRoot.value = a;
CreateMyList();
}
document.form1.SelectMe.focus();
}
function Drivechange()
{
document.form1.FolderRoot.value = document.form1.Driveselect.value;
CreateMyList();
document.form1.SelectMe.focus();
}
function ListDriveMaps()
{
if (ImWorking==1)
{
alert("Already loading the drive list... this can take some time so please wait");
return false;
}
ImWorking=1;
var oOption;
document.form1.SelectMe.length = 0;
fc = new Enumerator(fso.Drives);
for (; !fc.atEnd(); fc.moveNext())
{
oOption = document.createElement("OPTION");
oOption.text=fc.item() + "\\";
oOption.value=fc.item() + "\\";
document.form1.SelectMe.add(oOption);
}
ImWorking=0;
return false;
}
function GoUpFolder()
{
var a = fso.GetParentFolderName(document.form1.FolderRoot.value);
if (a != "")
{
document.form1.FolderRoot.value = a;
CreateMyList();
}
else
{
document.form1.FolderRoot.value = "\\";
ListDriveMaps();
}
document.form1.SelectMe.focus();
}
function ViewFile()
{
ShowSelectedFile();
var a = document.form1.SelectMe2.value;
var TheCommand = "notepad.exe";
if (fso.FileExists(a))
{
try
{
oShell.Run("\"" + TheCommand + "\"" + " \"" + a + "\"",1,true);
}
catch(err)
{
alert("There has been a problem running " + TheCommand);
}
}
document.form1.SelectMe2.focus();
}
function RunFile()
{
ShowSelectedFile();
var a = document.form1.SelectMe2.value;
if (fso.FileExists(a))
{
try
{
oShell.Run("\"" + a + "\"",1,true);
}
catch(err)
{
alert("There has been a problem running " + a);
}
}
document.form1.SelectMe2.focus();
}
function ShowSelectedFile()
{
document.form1.SFile.value = document.form1.SelectMe2.value;
}
function CreateDriveList()
{
if (ImWorking==1)
{
alert("Already loading the drive list... this can take some time so please wait");
return false;
}
ImWorking=1;
var oOption;
document.form1.Driveselect.length = 0;
oOption = document.createElement("OPTION");
oOption.text="Drive List";
oOption.value="Drive List";
document.form1.Driveselect.add(oOption);
fc = new Enumerator(fso.Drives);
for (; !fc.atEnd(); fc.moveNext())
{
oOption = document.createElement("OPTION");
oOption.text=fc.item();
oOption.value=fc.item();
document.form1.Driveselect.add(oOption);
}
ImWorking=0;
document.form1.Driveselect.selectedIndex = 0;
return false;
}
function CreateFileList()
{
if (ImWorking==1)
{
alert("Already loading the file list... this can take some time so please wait");
return false;
}
var a;
CreateDriveList();
ValidateFolder();
a = document.form1.FolderRoot.value;
if (a == "\\")
{
ListDriveMaps();
return false;
}
if (!fso.FolderExists(a))
{
return false;
}
ImWorking=1;
var f = fso.GetFolder(a);
var oOption;
fc = new Enumerator(f.files);
document.form1.SelectMe2.length = 0;
for (; !fc.atEnd(); fc.moveNext())
{
oOption = document.createElement("OPTION");
oOption.text=fc.item();
oOption.value=fc.item();
document.form1.SelectMe2.add(oOption);
}
ImWorking=0;
document.form1.SelectMe2.selectedIndex = 0;
//document.form1.SelectMe2.focus();
ShowSelectedFile();
return false;
}
function CreateMyList()
{
if (ImWorking==1)
{
alert("Already loading the folder list... this can take some time so please wait");
return false;
}
CreateDriveList();
ValidateFolder();
if (!fso.FolderExists(document.form1.FolderRoot.value))
{
return false;
}
ImWorking=1;
var a = document.form1.FolderRoot.value;
var f = fso.GetFolder(a);
var oOption;
fc = new Enumerator(f.SubFolders);
document.form1.SelectMe.length = 0;
for (; !fc.atEnd(); fc.moveNext())
{
oOption = document.createElement("OPTION");
oOption.text=fc.item();
oOption.value=fc.item();
document.form1.SelectMe.add(oOption);
}
ImWorking=0;
CreateFileList();
document.form1.SelectMe.selectedIndex = 0;
document.form1.FolderRoot.focus();
return false;
}
//-->
</script>
</HEAD>
<BODY BGCOLOR="#cccccc" scroll="yes">
<FORM NAME="form1" onSubmit="return false">
<table BORDER=4 CELLSPACING=0 CELLPADDING=10 WIDTH="450" BGCOLOR="#FFFFD2">
<tr><td>
Folder to View (type drive and folder specification here to start.. UNC supported ie: \\server\sys)..
<select name="Driveselect" onchange = "Drivechange()" size=1 STYLE="width:100">
</select>
<br>
<INPUT TYPE="text" NAME="FolderRoot" onkeyup = "DetectEnter()" value="C:\" STYLE="width:350" size=28>
</td><td>
Selected File (select a file in the file list... then you can copy and paste this text to have a full file spec.)
<br>
<INPUT TYPE="text" NAME="SFile" value="" STYLE="width:450" size=28>
</td></tr>
<tr><td colspan=2>
<INPUT TYPE="button" VALUE="View Selected Folder" NAME="LSFolder" STYLE="width:140" STYLE="background-color:#eee9e9" onClick="ListSelectedFolder()" TITLE="Click here to list subfolders of the selected folder">
<INPUT TYPE="button" VALUE="Go Up One Level" NAME="UpFolder" STYLE="width:120" STYLE="background-color:#eee9e9" onClick="GoUpFolder()" TITLE="Click here to go up a level">
<INPUT TYPE="button" VALUE="Exit Folder Browse Tool" NAME="ExitWIn" STYLE="width:150" STYLE="background-color:#eee9e9" onClick="ExitWI()" TITLE="Click here to exit">
</td></tr>
<tr><td>
<font color="#0000D2"><b>Subfolder list</b></font>
<br>
<select name="SelectMe" ondblclick = "ListSelectedFolder()" size=20 STYLE="width:350">
</select><br>
</td><td>
<font color="#0000D2"><b>File list</b></font><br>
<select name="SelectMe2" onchange = "ShowSelectedFile()" size=20 STYLE="width:450">
</select><br>
</td></tr>
</table><br>
</form>
<script Language="JavaScript">
<!--
window.resizeTo(900, 580);
window.moveTo(40,40);
CreateMyList();
document.form1.SelectMe.focus();
//-->
</script>
</BODY>
</HTML>
_Aerospace_Eng_
09-04-2006, 03:23 AM
So its basically like an alternative to Windows Explorer. Good work.
e133th4x0r
07-22-2008, 06:25 PM
How can i basically do all that, but instead of zipping and doing all of these tasks, just get the TEXT of the path, and when i email it out using the server mail program, link it, so when the people receiving the email will get the path as a link, not necessarily the contents as an attachment..
this is all done on the same server.
i need that get directory button, though
Pegasus
07-22-2008, 06:36 PM
E133th4x0r, this thread is 2 years old. Please start a thread of your own to get a quicker answer.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.