Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Easy! BAT file

Posted on 2004-04-21
9
Medium Priority
?
410 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:LucF
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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 32

Accepted Solution

by:
LucF earned 200 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
 
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:LucF
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:LucF
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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…
If you’re involved with your company’s wide area network (WAN), you’ve probably heard about SD-WANs. They’re the “boy wonder” of networking, ostensibly allowing companies to replace expensive MPLS lines with low-cost Internet access. But, are they …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

718 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