Solved

Easy! BAT file

Posted on 2004-04-21
9
403 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Scenario: Your operations manager has discovered an anomaly in your security system. The business will start to suffer within 15 minutes if it is a major IT incident. What should she do? We have 6 recommendations for managing major incidents (https:…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 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

18 Experts available now in Live!

Get 1:1 Help Now