Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Shell/FSO issue....

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,40313
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Shell/FSO issue....
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Shell/FSO issue.... - 12/3/2006 10:21:05 PM   
  TNO


Posts: 1397
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
I'm confused......is there something wrong with my Syntax? its not working in either JS nor VBS...


      


Heres a more practical example:

http://thenewobjective.com/temp/Clerkstervbs.zip

For the life of me I can't get the 2nd hta to launch from the first...

< Message edited by TNO -- 12/3/2006 10:22:17 PM >


_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch
 
 
Post #: 1
 
 RE: Shell/FSO issue.... - 12/3/2006 10:32:15 PM   
  ginolard


Posts: 1082
Score: 21
Joined: 8/10/2005
Status: offline
Well if you MSGBOX out the result of slasher(Unescape(document.location.pathname) you will see that it return (in my case) :/temp/test.hta

No FSO object on earth is going to like that ;)

< Message edited by ginolard -- 12/3/2006 10:33:31 PM >


_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to TNO)
 
 
Post #: 2
 
 RE: Shell/FSO issue.... - 12/3/2006 10:56:23 PM   
  TNO


Posts: 1397
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
One step closer, but not the solution: T.T


      

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to ginolard)
 
 
Post #: 3
 
 RE: Shell/FSO issue.... - 12/3/2006 11:55:08 PM   
  gdewrance


Posts: 587
Score: 3
Joined: 3/16/2006
Status: offline
your example gives an error
Cannot find path

file://fullpath\main\blah.html

shouldn't it look for file2.hta.

by the way just a thought could you not create another shell.run to the relative path ../file2.hta
I know that doesn't work but just an idea

< Message edited by gdewrance -- 12/3/2006 11:56:13 PM >

(in reply to TNO)
 
 
Post #: 4
 
 RE: Shell/FSO issue.... - 12/4/2006 12:12:37 AM   
  TNO


Posts: 1397
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
quote:

your example gives an error


did you replace blah.html with my 2nd post?

strange....I'm not getting an error at all, it just goes to the command prompt and displays this:

C:\Documents and Settings\****\Desktop\Clerkster>



_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to gdewrance)
 
 
Post #: 5
 
 RE: Shell/FSO issue.... - 12/4/2006 12:21:34 AM   
  gdewrance


Posts: 587
Score: 3
Joined: 3/16/2006
Status: offline
came close with

oShell.run("cmd.exe " + window.open(p))

(in reply to TNO)
 
 
Post #: 6
 
 RE: Shell/FSO issue.... - 12/4/2006 12:35:03 AM   
  TNO


Posts: 1397
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Even closer but it chokes on spaces:

oShell.run("mshta.exe " + p)

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to gdewrance)
 
 
Post #: 7
 
 RE: Shell/FSO issue.... - 12/4/2006 2:42:45 AM   
  ehvbs

 

Posts: 2222
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi TNO,

if tno2.hta is a decent .hta in the same directory, this


      

should work. The FSO and mshta can cope with %20 and / (at least on my system (W2K IE 6.0 VBS 5.6)).

Good luck!

(in reply to TNO)
 
 
Post #: 8
 
 RE: Shell/FSO issue.... - 12/4/2006 6:38:14 AM   
  TNO


Posts: 1397
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Thanks for all the help, I was trying to get a popup window that had file permission. Ironically I ended up not using this method (sorry, lol). I read up on MSDN and learned about
window.showModelessDialog
and
window.showModalDialog

These popup windows inherit the rights from the parent instead of becoming a new instance of an IE window. And even cooler is the fact that these are ALWAYS on top, and can hold user focus (showModalDialog)

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to ehvbs)
 
 
Post #: 9
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Shell/FSO issue.... Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts