Normal Topic @shell and Windows explorer (Read 1015 times)
CapitalG
Full Member
Members
***
Offline



Posts: 143
Location: Phoenix, Arizona
Joined: Mar 4th, 2003
@shell and Windows explorer
Jan 23rd, 2007 at 4:50pm
Print Post Print Post  
Is there a way to close the windows explorer window from within Sesame after opening it with @shell?

example: n = @Shell("explorer.exe /n,/e,C:\")

I can't find any Command line codes or any way to do it without using a third party program.

Thanks!
  
Back to top
 
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: @shell and Windows explorer
Reply #1 - Jan 24th, 2007 at 12:21am
Print Post Print Post  
Check out Asynchronous shell -  @Asynchshell page 150 in programming guide, it may help you achieve your goal.
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: @shell and Windows explorer
Reply #2 - Jan 24th, 2007 at 1:12am
Print Post Print Post  
Newer versions (XP+) have a command taskkill.

Type taskkill /? in a command window to get the syntax.
Now you can use that command with @shell.  But you will need some type of control to make sure that the @shell "kill" does not run until you want it to.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
CapitalG
Full Member
Members
***
Offline



Posts: 143
Location: Phoenix, Arizona
Joined: Mar 4th, 2003
Re: @shell and Windows explorer
Reply #3 - Jan 24th, 2007 at 5:45pm
Print Post Print Post  
Thank you both for your responses. 

I looked at Asynchronous shell before I posted and it appears that it continues without waiting for prior commands to finish.  Otherwise it is very similar to @Shell.  In this instance, I need to use @shell because I am retrieving the file name and using it in the very next command.

I will give taskkill a try.

Thanks again.
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: @shell and Windows explorer
Reply #4 - Jan 24th, 2007 at 8:12pm
Print Post Print Post  
When you say "I am retrieving the file name and using it...", are you retrieving the filename that was selected by the user in MS explorer?
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
CapitalG
Full Member
Members
***
Offline



Posts: 143
Location: Phoenix, Arizona
Joined: Mar 4th, 2003
Re: @shell and Windows explorer
Reply #5 - Jan 24th, 2007 at 10:46pm
Print Post Print Post  
No.  Just opening the selected file for mailmerge.
  
Back to top
 
IP Logged