Solved

Easy! BAT file

Posted on 2004-04-21
9
402 Views
Last Modified: 2010-04-13
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
Comment
Question by:spoowiz
  • 4
  • 3
  • 2
9 Comments
 

Author Comment

by:spoowiz
ID: 10882637
btw,
i double-click on it to execute. running Win2000Pro.
0
 
LVL 32

Expert Comment

by:Luc Franken
ID: 10882795
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
 

Author Comment

by:spoowiz
ID: 10882873
It's a long stmt so I was hoping to not re-type.
Is there a way to copy/paste?
0
 
LVL 32

Accepted Solution

by:
Luc Franken earned 50 total points
ID: 10882934
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 1

Expert Comment

by:Nermal
ID: 10882966
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
 
LVL 32

Expert Comment

by:Luc Franken
ID: 10882994
:)
0
 

Author Comment

by:spoowiz
ID: 10883001
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
 
LVL 32

Expert Comment

by:Luc Franken
ID: 10885905
Glad to help ;-)

LucF
0
 
LVL 1

Expert Comment

by:Nermal
ID: 10886489
Thats OK, glad you managed to solve your problem.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now