Help 
Author Message
 Help

filesystemobject

--
<g> Mark L. Ferguson       Please reply in Newsgroup
marfers notes for OE 5.0  >   http://www.*-*-*.com/

Quote:

> HelpHow to copy files source/destination?



Sun, 22 Sep 2002 03:00:00 GMT  
 Help
Can anyone tell me why this hyperlink won't work???

<a
href=file:///C:/windows/CACP.vbs%22%20tlr.rpc%20Keep%20x.vbs%22>Test</a></p>

I am trying to call a file on my local pc with augments.  If I type the
refrence into the address line it works fine.

Thanks for saving my hair.

BB



Fri, 27 Sep 2002 03:00:00 GMT  
 Help
Try it with single quotes :

<a  href="file:///C:/windows/CACP.vbs 'tlr.rpc Keep x.vbs' ">Test</a>

--
Mark L. Ferguson       Please reply in Newsgroup
marfers notes for OE 5.0  >  http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:

> Can anyone tell me why this hyperlink won't work???

> <a
> href=file:///C:/windows/CACP.vbs%22%20tlr.rpc%20Keep%20x.vbs%22>Test</a></p>

> I am trying to call a file on my local pc with augments.  If I type the
> refrence into the address line it works fine.

> Thanks for saving my hair.

> BB



Fri, 27 Sep 2002 03:00:00 GMT  
 Help
I get the same message.  Page can not be displayed.

Any other Ideas?  I'm desperate.  Thanks   BB



Try it with single quotes :

<a  href="file:///C:/windows/CACP.vbs 'tlr.rpc Keep x.vbs' ">Test</a>

--
Mark L. Ferguson       Please reply in Newsgroup
marfers notes for OE 5.0  >
http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:
> Can anyone tell me why this hyperlink won't work???

> <a

href=file:///C:/windows/CACP.vbs%22%20tlr.rpc%20Keep%20x.vbs%22>Test</a></p>
Quote:

> I am trying to call a file on my local pc with augments.  If I type the
> refrence into the address line it works fine.

> Thanks for saving my hair.

> BB



Fri, 27 Sep 2002 03:00:00 GMT  
 Help
I failed to realize you are trying to run an executable file from the address bar. Create an HTA and create a shell to run the script
<a href="file:///c:\my.hta">test</a>
--my.hta--
<html>
<script>
var shell=new ActiveXObject("WScript.Shell");
shell.Run("C:\\windows\\cscript.exe C:\\windows\\CACP.vbs tlr.rpc Keep x.vbs", 1, false);
</script>
</html>
--end--
--
Mark L. Ferguson       Please reply in Newsgroup
marfers notes for OE 5.0  >  http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm
Quote:

> I get the same message.  Page can not be displayed.

> Any other Ideas?  I'm desperate.  Thanks   BB



> Try it with single quotes :

> <a  href="file:///C:/windows/CACP.vbs 'tlr.rpc Keep x.vbs' ">Test</a>

> --
> Mark L. Ferguson       Please reply in Newsgroup
> marfers notes for OE 5.0  >
> http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > Can anyone tell me why this hyperlink won't work???

> > <a

> href=file:///C:/windows/CACP.vbs%22%20tlr.rpc%20Keep%20x.vbs%22>Test</a></p>

> > I am trying to call a file on my local pc with augments.  If I type the
> > refrence into the address line it works fine.

> > Thanks for saving my hair.

> > BB



Fri, 27 Sep 2002 03:00:00 GMT  
 Help
Now I get the message that "ActiveX component can't create object
"WScript.Shell"

I am using Windows 95 and IE 5.01.  I can run the script from a windows run
prompt but not from the webpage.

Thanks for the help you have given me so far.

BB



I failed to realize you are trying to run an executable file from the
address bar. Create an HTA and create a shell to run the script
<a href="file:///c:\my.hta">test</a>
--my.hta--
<html>
<script>
var shell=new ActiveXObject("WScript.Shell");
shell.Run("C:\\windows\\cscript.exe C:\\windows\\CACP.vbs tlr.rpc Keep
x.vbs", 1, false);
</script>
</html>
--end--
--
Mark L. Ferguson       Please reply in Newsgroup
marfers notes for OE 5.0  >
http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:
> I get the same message.  Page can not be displayed.

> Any other Ideas?  I'm desperate.  Thanks   BB



> Try it with single quotes :

> <a  href="file:///C:/windows/CACP.vbs 'tlr.rpc Keep x.vbs' ">Test</a>

> --
> Mark L. Ferguson       Please reply in Newsgroup
> marfers notes for OE 5.0  >
> http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > Can anyone tell me why this hyperlink won't work???

> > <a

href=file:///C:/windows/CACP.vbs%22%20tlr.rpc%20Keep%20x.vbs%22>Test</a></p>

- Show quoted text -

Quote:

> > I am trying to call a file on my local pc with augments.  If I type the
> > refrence into the address line it works fine.

> > Thanks for saving my hair.

> > BB



Fri, 27 Sep 2002 03:00:00 GMT  
 Help
My path to cscript was wrong, for one thing, It's c:\\windows\\command\\cscript.exe.

I'm not sure what that error message is saying. Something in the wscript install may be wrong

--
Mark L. Ferguson       Please reply in Newsgroup
marfers notes for OE 5.0  >  http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:

> Now I get the message that "ActiveX component can't create object
> "WScript.Shell"

> I am using Windows 95 and IE 5.01.  I can run the script from a windows run
> prompt but not from the webpage.

> Thanks for the help you have given me so far.

> BB



> I failed to realize you are trying to run an executable file from the
> address bar. Create an HTA and create a shell to run the script
> <a href="file:///c:\my.hta">test</a>
> --my.hta--
> <html>
> <script>
> var shell=new ActiveXObject("WScript.Shell");
> shell.Run("C:\\windows\\cscript.exe C:\\windows\\CACP.vbs tlr.rpc Keep
> x.vbs", 1, false);
> </script>
> </html>
> --end--
> --
> Mark L. Ferguson       Please reply in Newsgroup
> marfers notes for OE 5.0  >
> http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > I get the same message.  Page can not be displayed.

> > Any other Ideas?  I'm desperate.  Thanks   BB



> > Try it with single quotes :

> > <a  href="file:///C:/windows/CACP.vbs 'tlr.rpc Keep x.vbs' ">Test</a>

> > --
> > Mark L. Ferguson       Please reply in Newsgroup
> > marfers notes for OE 5.0  >
> > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > > Can anyone tell me why this hyperlink won't work???

> > > <a

> href=file:///C:/windows/CACP.vbs%22%20tlr.rpc%20Keep%20x.vbs%22>Test</a></p>

> > > I am trying to call a file on my local pc with augments.  If I type the
> > > refrence into the address line it works fine.

> > > Thanks for saving my hair.

> > > BB



Fri, 27 Sep 2002 03:00:00 GMT  
 Help
You're security is probably set too high. You'll need to lower the security
level for the page, or do it through an HTA, or something like that. The
shell object is not "Safe for Scripting", and IE won't let you create it
until you convince it you know what you're doing is potentially dangerous.

Mike Whalen
Windows Script Dev


Quote:
> Now I get the message that "ActiveX component can't create object
> "WScript.Shell"

> I am using Windows 95 and IE 5.01.  I can run the script from a windows
run
> prompt but not from the webpage.

> Thanks for the help you have given me so far.

> BB



> I failed to realize you are trying to run an executable file from the
> address bar. Create an HTA and create a shell to run the script
> <a href="file:///c:\my.hta">test</a>
> --my.hta--
> <html>
> <script>
> var shell=new ActiveXObject("WScript.Shell");
> shell.Run("C:\\windows\\cscript.exe C:\\windows\\CACP.vbs tlr.rpc Keep
> x.vbs", 1, false);
> </script>
> </html>
> --end--
> --
> Mark L. Ferguson       Please reply in Newsgroup
> marfers notes for OE 5.0  >
> http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > I get the same message.  Page can not be displayed.

> > Any other Ideas?  I'm desperate.  Thanks   BB



> > Try it with single quotes :

> > <a  href="file:///C:/windows/CACP.vbs 'tlr.rpc Keep x.vbs' ">Test</a>

> > --
> > Mark L. Ferguson       Please reply in Newsgroup
> > marfers notes for OE 5.0  >
> > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > > Can anyone tell me why this hyperlink won't work???

> > > <a

href=file:///C:/windows/CACP.vbs%22%20tlr.rpc%20Keep%20x.vbs%22>Test</a></p>

- Show quoted text -

Quote:

> > > I am trying to call a file on my local pc with augments.  If I type
the
> > > refrence into the address line it works fine.

> > > Thanks for saving my hair.

> > > BB



Fri, 27 Sep 2002 03:00:00 GMT  
 Help
It works like a charm under Windows 98, Just not 95.  I changed the security
level to nothing and still have the problem.
Does anyone know what the difference would be between 95 & 98?  I am running
IE5.0, (Same Version) on both and like I said earlier, it will run from a
windows run command line.

What is a HTA??  Maybe I can do something with that.

BB



Quote:
> You're security is probably set too high. You'll need to lower the
security
> level for the page, or do it through an HTA, or something like that. The
> shell object is not "Safe for Scripting", and IE won't let you create it
> until you convince it you know what you're doing is potentially dangerous.

> Mike Whalen
> Windows Script Dev



> > Now I get the message that "ActiveX component can't create object
> > "WScript.Shell"

> > I am using Windows 95 and IE 5.01.  I can run the script from a windows
> run
> > prompt but not from the webpage.

> > Thanks for the help you have given me so far.

> > BB



> > I failed to realize you are trying to run an executable file from the
> > address bar. Create an HTA and create a shell to run the script
> > <a href="file:///c:\my.hta">test</a>
> > --my.hta--
> > <html>
> > <script>
> > var shell=new ActiveXObject("WScript.Shell");
> > shell.Run("C:\\windows\\cscript.exe C:\\windows\\CACP.vbs tlr.rpc Keep
> > x.vbs", 1, false);
> > </script>
> > </html>
> > --end--
> > --
> > Mark L. Ferguson       Please reply in Newsgroup
> > marfers notes for OE 5.0  >
> > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > > I get the same message.  Page can not be displayed.

> > > Any other Ideas?  I'm desperate.  Thanks   BB



> > > Try it with single quotes :

> > > <a  href="file:///C:/windows/CACP.vbs 'tlr.rpc Keep x.vbs' ">Test</a>

> > > --
> > > Mark L. Ferguson       Please reply in Newsgroup
> > > marfers notes for OE 5.0  >
> > > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > > > Can anyone tell me why this hyperlink won't work???

> > > > <a

href=file:///C:/windows/CACP.vbs%22%20tlr.rpc%20Keep%20x.vbs%22>Test</a></p>

- Show quoted text -

Quote:

> > > > I am trying to call a file on my local pc with augments.  If I type
> the
> > > > refrence into the address line it works fine.

> > > > Thanks for saving my hair.

> > > > BB



Fri, 27 Sep 2002 03:00:00 GMT  
 Help
HTA is HyperText Application.   Same code as HTML, but one hell of a lot more dangerous unless you trust the code (and coder) implicitly!  The different extension makes IE handle the HTML differently.

--
No support provided by e-mail!  Reply to the newsgroups only!
Regards,
Doug Knox, Microsoft MVPDTS
* Help us help YOU - http://members.home.com/dts-l/goodpost.htm
--
The Microsoft MVP Program does not constitute employment or contractual
obligation with Microsoft Corporation. We do this for fun! :)
--
Visit my web site for Win95/98 Tweaks, Tips and Utilities
http://members.xoom.com/dbknox/registry/index.htm

Quote:

> It works like a charm under Windows 98, Just not 95.  I changed the security
> level to nothing and still have the problem.
> Does anyone know what the difference would be between 95 & 98?  I am running
> IE5.0, (Same Version) on both and like I said earlier, it will run from a
> windows run command line.

> What is a HTA??  Maybe I can do something with that.

> BB



> > You're security is probably set too high. You'll need to lower the
> security
> > level for the page, or do it through an HTA, or something like that. The
> > shell object is not "Safe for Scripting", and IE won't let you create it
> > until you convince it you know what you're doing is potentially dangerous.

> > Mike Whalen
> > Windows Script Dev



> > > Now I get the message that "ActiveX component can't create object
> > > "WScript.Shell"

> > > I am using Windows 95 and IE 5.01.  I can run the script from a windows
> > run
> > > prompt but not from the webpage.

> > > Thanks for the help you have given me so far.

> > > BB



> > > I failed to realize you are trying to run an executable file from the
> > > address bar. Create an HTA and create a shell to run the script
> > > <a href="file:///c:\my.hta">test</a>
> > > --my.hta--
> > > <html>
> > > <script>
> > > var shell=new ActiveXObject("WScript.Shell");
> > > shell.Run("C:\\windows\\cscript.exe C:\\windows\\CACP.vbs tlr.rpc Keep
> > > x.vbs", 1, false);
> > > </script>
> > > </html>
> > > --end--
> > > --
> > > Mark L. Ferguson       Please reply in Newsgroup
> > > marfers notes for OE 5.0  >
> > > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > > > I get the same message.  Page can not be displayed.

> > > > Any other Ideas?  I'm desperate.  Thanks   BB



> > > > Try it with single quotes :

> > > > <a  href="file:///C:/windows/CACP.vbs 'tlr.rpc Keep x.vbs' ">Test</a>

> > > > --
> > > > Mark L. Ferguson       Please reply in Newsgroup
> > > > marfers notes for OE 5.0  >
> > > > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > > > > Can anyone tell me why this hyperlink won't work???

> > > > > <a

> href=file:///C:/windows/CACP.vbs%22%20tlr.rpc%20Keep%20x.vbs%22>Test</a></p>

> > > > > I am trying to call a file on my local pc with augments.  If I type
> > the
> > > > > refrence into the address line it works fine.

> > > > > Thanks for saving my hair.

> > > > > BB



Fri, 27 Sep 2002 03:00:00 GMT  
 Help
Actually, an HTA runs under a completely different host, MSHTA.EXE instead of IEXPLORE.EXE.  They
both use the same rendering engine (MSHTML.DLL) but impose different security models.  The security
model for an HTA is essentially the same as for a conventional desktop application which why
accessing one via HTTP gives you the same open/save prompt as for a EXE.

--
Michael Harris
MVP Scripting

HTA is HyperText Application.   Same code as HTML, but one hell of a lot more dangerous unless you
trust the code (and coder) implicitly!  The different extension makes IE handle the HTML
differently.

--
No support provided by e-mail!  Reply to the newsgroups only!
Regards,
Doug Knox, Microsoft MVPDTS
* Help us help YOU - http://members.home.com/dts-l/goodpost.htm
--
The Microsoft MVP Program does not constitute employment or contractual
obligation with Microsoft Corporation. We do this for fun! :)
--
Visit my web site for Win95/98 Tweaks, Tips and Utilities
http://members.xoom.com/dbknox/registry/index.htm


Quote:
> It works like a charm under Windows 98, Just not 95.  I changed the security
> level to nothing and still have the problem.
> Does anyone know what the difference would be between 95 & 98?  I am running
> IE5.0, (Same Version) on both and like I said earlier, it will run from a
> windows run command line.

> What is a HTA??  Maybe I can do something with that.

> BB



> > You're security is probably set too high. You'll need to lower the
> security
> > level for the page, or do it through an HTA, or something like that. The
> > shell object is not "Safe for Scripting", and IE won't let you create it
> > until you convince it you know what you're doing is potentially dangerous.

> > Mike Whalen
> > Windows Script Dev



> > > Now I get the message that "ActiveX component can't create object
> > > "WScript.Shell"

> > > I am using Windows 95 and IE 5.01.  I can run the script from a windows
> > run
> > > prompt but not from the webpage.

> > > Thanks for the help you have given me so far.

> > > BB



> > > I failed to realize you are trying to run an executable file from the
> > > address bar. Create an HTA and create a shell to run the script
> > > <a href="file:///c:\my.hta">test</a>
> > > --my.hta--
> > > <html>
> > > <script>
> > > var shell=new ActiveXObject("WScript.Shell");
> > > shell.Run("C:\\windows\\cscript.exe C:\\windows\\CACP.vbs tlr.rpc Keep
> > > x.vbs", 1, false);
> > > </script>
> > > </html>
> > > --end--
> > > --
> > > Mark L. Ferguson       Please reply in Newsgroup
> > > marfers notes for OE 5.0  >
> > > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > > > I get the same message.  Page can not be displayed.

> > > > Any other Ideas?  I'm desperate.  Thanks   BB



> > > > Try it with single quotes :

> > > > <a  href="file:///C:/windows/CACP.vbs 'tlr.rpc Keep x.vbs' ">Test</a>

> > > > --
> > > > Mark L. Ferguson       Please reply in Newsgroup
> > > > marfers notes for OE 5.0  >
> > > > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > > > > Can anyone tell me why this hyperlink won't work???

> > > > > <a

> href=file:///C:/windows/CACP.vbs%22%20tlr.rpc%20Keep%20x.vbs%22>Test</a></p>

> > > > > I am trying to call a file on my local pc with augments.  If I type
> > the
> > > > > refrence into the address line it works fine.

> > > > > Thanks for saving my hair.

> > > > > BB



Fri, 27 Sep 2002 03:00:00 GMT  
 Help
The problem with just coding a file system script path plus arguments as the URL is that IE doesn't
know where the path portion of the url ends and where the arguments begin.  In a conventional url,
you would use ? as the separator between the path and arguments.  That works to get IE to execute
the script (with the usual security prompts) but the arguments are not passed as normal command line
arguments so the script executes but never sees any arguments.

This is the only way I could get it to work, but it brings up the usual "unsafe" ActiveX issues...

<HTML>
<HEAD>
<SCRIPT LANGUAGE="VBScript">
function DoScriptCall(cmd)
  createobject("wscript.shell").run(cmd)
end function
</SCRIPT>
</HEAD>
<BODY>
<a
href='vbscript:DoScriptCall("c:/scripts/hello.vbs foobar")'>Test</a>
</BODY>
</HTML>

--
Michael Harris
MVP Scripting

Can anyone tell me why this hyperlink won't work???

<a
href=file:///C:/windows/CACP.vbs%22%20tlr.rpc%20Keep%20x.vbs%22>Test</a></p>

I am trying to call a file on my local pc with augments.  If I type the
refrence into the address line it works fine.

Thanks for saving my hair.

BB



Sat, 28 Sep 2002 03:00:00 GMT  
 Help
Thanks for the info, Michaeal.   Always nice to learn something new <G>

--
No support provided by e-mail!  Reply to the newsgroups only!
Regards,
Doug Knox, Microsoft MVPDTS
* Help us help YOU - http://members.home.com/dts-l/goodpost.htm
--
The Microsoft MVP Program does not constitute employment or contractual
obligation with Microsoft Corporation. We do this for fun! :)
--
Visit my web site for Win95/98 Tweaks, Tips and Utilities
http://members.xoom.com/dbknox/registry/index.htm

Quote:

> Actually, an HTA runs under a completely different host, MSHTA.EXE instead of IEXPLORE.EXE.  They
> both use the same rendering engine (MSHTML.DLL) but impose different security models.  The security
> model for an HTA is essentially the same as for a conventional desktop application which why
> accessing one via HTTP gives you the same open/save prompt as for a EXE.

> --
> Michael Harris
> MVP Scripting


> HTA is HyperText Application.   Same code as HTML, but one hell of a lot more dangerous unless you
> trust the code (and coder) implicitly!  The different extension makes IE handle the HTML
> differently.

> --
> No support provided by e-mail!  Reply to the newsgroups only!
> Regards,
> Doug Knox, Microsoft MVPDTS
> * Help us help YOU - http://members.home.com/dts-l/goodpost.htm
> --
> The Microsoft MVP Program does not constitute employment or contractual
> obligation with Microsoft Corporation. We do this for fun! :)
> --
> Visit my web site for Win95/98 Tweaks, Tips and Utilities
> http://members.xoom.com/dbknox/registry/index.htm



> > It works like a charm under Windows 98, Just not 95.  I changed the security
> > level to nothing and still have the problem.
> > Does anyone know what the difference would be between 95 & 98?  I am running
> > IE5.0, (Same Version) on both and like I said earlier, it will run from a
> > windows run command line.

> > What is a HTA??  Maybe I can do something with that.

> > BB



> > > You're security is probably set too high. You'll need to lower the
> > security
> > > level for the page, or do it through an HTA, or something like that. The
> > > shell object is not "Safe for Scripting", and IE won't let you create it
> > > until you convince it you know what you're doing is potentially dangerous.

> > > Mike Whalen
> > > Windows Script Dev



> > > > Now I get the message that "ActiveX component can't create object
> > > > "WScript.Shell"

> > > > I am using Windows 95 and IE 5.01.  I can run the script from a windows
> > > run
> > > > prompt but not from the webpage.

> > > > Thanks for the help you have given me so far.

> > > > BB



> > > > I failed to realize you are trying to run an executable file from the
> > > > address bar. Create an HTA and create a shell to run the script
> > > > <a href="file:///c:\my.hta">test</a>
> > > > --my.hta--
> > > > <html>
> > > > <script>
> > > > var shell=new ActiveXObject("WScript.Shell");
> > > > shell.Run("C:\\windows\\cscript.exe C:\\windows\\CACP.vbs tlr.rpc Keep
> > > > x.vbs", 1, false);
> > > > </script>
> > > > </html>
> > > > --end--
> > > > --
> > > > Mark L. Ferguson       Please reply in Newsgroup
> > > > marfers notes for OE 5.0  >
> > > > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > > > > I get the same message.  Page can not be displayed.

> > > > > Any other Ideas?  I'm desperate.  Thanks   BB



> > > > > Try it with single quotes :

> > > > > <a  href="file:///C:/windows/CACP.vbs 'tlr.rpc Keep x.vbs' ">Test</a>

> > > > > --
> > > > > Mark L. Ferguson       Please reply in Newsgroup
> > > > > marfers notes for OE 5.0  >
> > > > > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > > > > > Can anyone tell me why this hyperlink won't work???

> > > > > > <a

> > href=file:///C:/windows/CACP.vbs%22%20tlr.rpc%20Keep%20x.vbs%22>Test</a></p>

> > > > > > I am trying to call a file on my local pc with augments.  If I type
> > > the
> > > > > > refrence into the address line it works fine.

> > > > > > Thanks for saving my hair.

> > > > > > BB



Sat, 28 Sep 2002 03:00:00 GMT  
 
 [ 13 post ] 

 Relevant Pages 

1. help help help help help

2. Guru required - Help, Help, Help - ASP and SCRIPT

3. Help Help Help...thanks

4. PLEASE HELP PLEASE HELP PLEASE HELP

5. Help Help Help with Subst and Scheduler

6. HELP HELP HELP ACCESS 97

7. Someone Please Help Me - I Help You in Any Software Queries/Programming/Coding

8. HELP uncheck the radio button!!, HELP!

9. help help document.body.height ^^????!!!

10. HELP: Need help with drop down menu's

11. Help Help needed Opening Outlook Contacts(public) in VB5

12. Need help - Help please!

 

 
Powered by phpBB® Forum Software