Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Shelling out to DOS

Can I run a batch file before or as I shell out of Excel...or can I change
the directory AND the prompt from VBS. I changed the directory, but can I
add a prompt change. This was my directory change.
ChDir "C:\my documents\"
Shell Environ ("comspec" & " /k ", vb MaximizedFocus
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Shelling out to DOS

I want to add to what I wanted. I have figured out how to add color. I'll
put that under color, but this is where I am as I shell out and something
like the prompt I want.

ActiveWorkbook.Close

ChDir "c:\my documents\"

Shell Environ("comspec") & " /k ", vbMaximizedFocus

'how long does your .bat file take to execute?
Application.Wait Now + TimeSerial(0, 0, 20) '20 seconds


HOW CAN I SET THE PROMPT AS I GO OUT TO WINDOWS. THIS IS SOMETHING LIKE I
WANT IT TO SAY.
@echo off

prompt $e[5;30;47m$p$g To SEARCH: Type F and one search word____$e[1;30;44m
cls

cls



"denny" wrote:

Can I run a batch file before or as I shell out of Excel...or can I change
the directory AND the prompt from VBS. I changed the directory, but can I
add a prompt change. This was my directory change.
ChDir "C:\my documents\"
Shell Environ ("comspec" & " /k ", vb MaximizedFocus

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some macro help with shelling out to other program Alan Excel Discussion (Misc queries) 1 February 22nd 05 09:24 PM


All times are GMT +1. The time now is 06:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"