[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 412
  • Last Modified:

Easy! BAT file

Hi,
I have a simple 1 line copy stmt in a .bat file.
It's not executing properly, but can't see what's going on or the error msg.
Is there a way to leave the command prompt window open after execution, successful or not?
thanks,
phil
0
spoowiz
Asked:
spoowiz
  • 4
  • 3
  • 2
1 Solution
 
spoowizAuthor Commented:
btw,
i double-click on it to execute. running Win2000Pro.
0
 
LucFEMEA Server EngineerCommented:
Hi spoowiz,

Run it from the command prompt to see what is troubling it.
Start => Run => type "CMD" (without the quotes and press enter)

Greetings,

LucF
0
 
spoowizAuthor Commented:
It's a long stmt so I was hoping to not re-type.
Is there a way to copy/paste?
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LucFEMEA Server EngineerCommented:
Sure, just select everything, then press CTRL-C
Switch to the command screen (if you use it full screen, press ALT-enter to make it a window)
Rightclick on the top left corner => edit => paste
0
 
NermalCommented:
If you open the file in an editor (notepad or equivalent) select the text and copy it.
Start - Run - CMD
Click Top-left corner of Command Window select Edit - Paste
Execute the command and the result should appear on the screen and stay there.

N
0
 
LucFEMEA Server EngineerCommented:
:)
0
 
spoowizAuthor Commented:
Thanks. That's really useful. I always wondered why the command prompt didn't have cut/paste function. Now I know it's there. Sorry Nermal, LucF beat you to it.
0
 
LucFEMEA Server EngineerCommented:
Glad to help ;-)

LucF
0
 
NermalCommented:
Thats OK, glad you managed to solve your problem.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now