Over 1 million tech questions and answers.

"Copy" command in command prompt generates 0x1a artifact?

Q: "Copy" command in command prompt generates 0x1a artifact?

Hello Everybody!

I don't know if this is a real issue, or just one of those "What the . . . .!!" situations. You judge.

I was working on a batch file that combines two .txt (ASCII?) files created in Notepad to create a composite file, and I noticed something really interesting. (And yes, when someone talks about doing something and the result is "really interesting", it's time to duck and hunt cover! )

Assume that there are two text files: "This.txt" and "That.txt", and they contain the text "This[cr-lf]" and "That[cr-lf]", where [cr-lf] is used to indicate a newline generated by hitting the "Enter/Return" key on the keyboard.

If you look at the files with a hex editor, what you see is something like this:
The file "This.txt" contains the text "This" followed by 0x0D0A, which are the ascii codes for CR and LF.
The file "That.txt" contains the text "That" followed by the same CR and LF characters.
Note that these two files contain nothing else.

Issue I discovered:
When I execute the command copy /y ".\This.txt"+".\That.txt" ".\This&That.txt", I do not get the simple concatenation of the two files, which is what I would expect. Instead I get the two files concatenated, (including the trailing CR/LF's as I would expect), but also one additional character, the hex character for a right-arrow symbol - 0x1A. In essence I get the following:
If I perform the same copy, and signal that the copy is an "ascii" copy, (copy /a /y), I get the exact same result, including the trailing 0x1A.
If, and only if, I signal the copy as a "binary" copy, (copy /b /y), do I get the two files copied together without the trailing 0x1A.
I have absolutely no idea what is going on here, or why this happens.

I have tested it on two different machines, one running Win7 64 bit Professional on a domain, and another system running Win7 64 bit Home Premium on a Toshiba laptop.

I am attaching two ZIP archives:
The first, titled "this&that.zip", contains the three files: This.txt, That.txt. and the batch file "this&that.bat" that performs the three copy operations noted above.
The second, titled "this&that results.zip" has the three output files "this&that.txt", "this&that_ascii.txt", and "this&that_binary.txt"
I am also including two screen snips showing the ascii and hex results for the "this&that.txt" file.

You can open the three result files in either a hex editor, or notepad, to see what I see. If you use a hex editor, you will see the trailing 0x1A on the first two files. If you open them in Notepad, you will see a small right-arrow character at the very bottom of the first two files.

I do not know if this is a "bug" or a "feature", ( ), as I would expect either a "simple" copy, or (especially!), an ASCII copy to not generate spurious artifacts.

If someone could help me understand what is happening here, and (even better), why it's happening this way, I would gratefully appreciate it.

Thanks again for all your help!

Jim (JR)

Preferred Solution: "Copy" command in command prompt generates 0x1a artifact?

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: "Copy" command in command prompt generates 0x1a artifact?

I was trying to remember from my DOS days but drew a blank. A Google Search brought up a possible solution:
ms dos - In MS DOS copying several files to one file - Stack Overflow

Read other 6 answers

Windows firewall on a client is enabled and I can't disable it via "PsExec". Can I get command prompt via "WMIC" command and then run "netsh" command for disable firewall?

Thank you.

Read other answers


I have basic knowledge of the command terminal, in that I only know how to navigate through directories. Currently I am trying to execute the following:

java ?jar MRTBatch.jar ?d input_directory ?p parameter_directory\input_parameter_file ?o parameter_file_directory

I have already navigated to the correct directory to make use of the MRTBatch.jar tool, however the problem arises with my user inputs, which are of the form "C:\Users\My Name\Rest of path". I keep getting the error:

ERROR: Could not find directory "C:\Users\My Name".

When navigating directories earlier I always had to go find the file I wanted, copy its path location, paste it into the command terminal, and then erase the "C:\" portion (so it became cd\Users\My Name\Rest of path) for it to work. So when I got this error I have tried multiple edits for it to recognize the paths. Could it be as simple as switching the direction of the slashes? I would have thought the complete path name would always be best. Is it because I'm already burrowed down so far that it cant seem to recognize any file further back?

Here are the directions I am following, pg 40 titles "Automated Batch Processing": https://lpdaac.usgs.gov/sites/default/files/public/mrt41_usermanual_032811.pdf
My goal is to mosaic a bunch of satellite imagery using the MODIS Reprojection Tool (MRT).

Thank you for the help!

A:Command Prompt Error: "Cannot find directory "C:\Users\..."

Web site URLs use the forward slash / while path statements in the OS use the backslash \.

Your problem just may be that it needs to start from the root of the drive or C:\. If it starts at the standard Command Prompt it will already be looking below/inside C:\Users\your name\.

Read other 5 answers

It seems that other than the 'dir' command, every command I run from my dos prompt, I get an "Access is denied." message.  Example:
Access is denied.

I've checked my UAC settings and made sure they're set to "Never Notify".

I've also tried to run sfc.exe, but can't:
Access is denied.

Finally, I've tried to run cmd.exe as administrator, but no luck.
The one thing I've noticed is that if I go to cmd.exe's Properties and then the Security tab, I see that TrustedInstaller has Full control, but SYSTEM, Administrators and Users have only:

Read & execute andRead
I've tried to change permissions by editing, but when I do so, I get an "Access is denied" message.
I've run out of ideas on what else to try and would appreciate the help.

A:[SOLVED] Windows 7 cmd prompt gives "Access is denied." error for every command


The problem was that I had the Personal firewall from Comodo installed.  By uninstalling this, all normal DOS functionality seems to have returned!

Read other 14 answers

In Windows 7, whenever I try to select "Open file location" from the right click menu of a shortcut, instead of opening the folder in explorer, it opens a command prompt window with the directory set to file location instead. The same thing happens when I select "Show in Windows Explorer" in iTunes.

How do I fix this?

A:[Solved]"Open file location" opens command prompt instead

Hi, sorry for the delay, we down unders are having problems accessing the site. Both Vista and seven have the option to "open command prompt here" it looks like this has been associated with the context menu "open file location" very unusual. I wonder if Bonjour has anything to do with this (comes with I Tunes) you might prevent it from startup (not needed) under Msconfig uncheck it... is known as Responder has some letters before it like Mdns Responder.exe (or similar thats the one).

I would like to see the contents of this registry key (perfectly safe for you to do) open a Command prompt as administrator (start ,all programs, accessories right click command prompt select "run as administrator" at the prompt type:-

regedit /e C:\Note.txt "HKEY_CLASSES_ROOT\Directory\shell" & start notepad C:\note.txt
Press enter.

Copy the notepad contents here.

Read other 4 answers

1. Create a newTask named OpenCmdHereAsAdminNoUAC and activate "Run with the highest privileges"

2. Go to the Actions Tab, create a new Action "Start a Program" choose "C:\Windows\System32\cmd.exe" and set the Working Directory (Start in) to %CURDIR%

3. Create a Shortcut named OpenCmdHereAsAdminNoUAC.
In the "Type the location of the item" Field type:

C:\Windows\System32\schtasks.exe /run /TN "\OpenCmdHereAsAdminNoUAC"

and copy the created Shortcut to C:\Windows\System32

Finally, add the attached "Add_Open_Command_Window Here_Admin_No_UAC.reg" to Registry.

Windows Registry Editor Version 5.00

; Created by: Darth Nukem
; Created on: 08_20_16
@="Open Command Window Here (Admin)"
@="cmd /s /c \"setx CURDIR \"%V\"& start c:\\windows\\system32\\OpenCmdHereAsAdminNoUAC.\"lnk\"& exit\""
@="Open Command Window Here (Admin)"
@="cmd /s /c \"setx CURDIR \"%V\"& start c:\\windows\\system32\\OpenCmdHereAsAdminNoUAC.\"lnk\"& exit\""

... Read more

A:[How-To] Context menu "Open elevated Command Prompt Here" without UAC

Elevated Shortcut without UAC - Create in Windows 10 - Windows 10 Forums

Read other 1 answers

How do I fix the NTLDR if I can't get to the command prompt(hanging at loading personal settings or stopping at floppy boot with"missing NTLDR",catch 22.......

A:Win2K"missing NTDLR" with no command prompt access

Read other 10 answers


After booting up my laptop (Dell studio 7 running Windows 7 Premium 64) today, two strange "Command Prompt Error" message appeared. They had something like "Hidden Startup" as the window title (I might not have remembered this completely accurately as I didn't think to take a screenshot or save them at the time).
I haven't seen these messages before, and since rebooting they haven't returned.
Is there a way of viewing them again so I can work out what they are and what might have caused them to appear? Any advice would be greatly appreciated.

A:Strange "Command Prompt Error" Messages on Startup

There may be others that know how to review the messages but before that
run an anti virus scan
Download and run a full scan with malwarebytes
Run a full scan with eset online.

Read other 9 answers

I've been having a lot of problems with a certain hard drive lately. So I went to dos to run chkdsk and got the following:

The type of the file system is NTFS.
Volume label is Big one.

WARNING! F parameter not specified.
Running CHKDSK in read-only mode.

CHKDSK is verifying files (stage 1 of 3)...
Deleting corrupt attribute record (128, "")
from file record segment 4197.
Deleting corrupt attribute record (128, "")
from file record segment 4217.
Deleting corrupt attribute record (128, "")
from file record segment 4219.
Deleting corrupt attribute record (128, "")
from file record segment 4222.
Deleting corrupt attribute record (128, "")
from file record segment 5038.
Deleting corrupt attribute record (128, "")
from file record segment 5050.
File verification completed.

Errors found. CHKDSK cannot continue in read-only mode.

A:Chkdsk says it "cannot continue in read-only mode" at command prompt

Read other 8 answers

Hey guys,

I know there's a way to add a "Open command window here" when you click ON a folder... but what I'm curious about is if there's a way to do that if you're IN a folder. It never made sense to me, if I want to run a command-line utility like ffmpeg on a file, to have to go up a folder, click that option, then enter the folder again.

Does anybody know if there can be an option like this? To clarify:
This is what I'm referring to. I know MS Office Groove added an option there, so theoretically couldn't there also be one for command prompt? I know if you right-click on the desktop while holding Shift, the option shows up, but ONLY on the desktop.

Any answers would be appreciated.

A:Adding "Open Command Prompt" Option



It doesn't use the context menu. It's a hotkey.
If you hit the hotkey while you are in a folder with nothing selected, it uses a macro to go up, get the current folder, then go back where you were and open a command prompt. It has to macro up to get the current folder using the clipboard.

Also unlike other Command Prompt Here type utilities, you can select several folders and hit the hotkey. A prompt will open with each as the current directory.
IOW, if you had 3 folders selected you'd get 3 command prompts.

It's free for you to use at your own risk.

Read other 9 answers

Some how I've got my registry messed up. Now when I do 'Start' -> 'Run...' and enter 'C:\' instead of opening windows explorer at the C:\ drive it opens a DOS prompt at the that C:\ drive. I know this must be causeed by the 'DosHere' option over riding standard behavior, however if at Start' -> 'Run...' I enter a drive letter and a path like 'C:\code' then it does correctly open windows explorer at that location.

Not a huge issue but I'd like to get it back to working as before.

I feel like it might be related to this registry key section: HKEY_CLASSES_ROOT\Drive\shell


A:Start -> Run... "C:\" opening a Command prompt

Should be:

Not sure if that's it though


I've changed my mind. Pretty sure it's here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
Look for an entry called cmdc and remove it (probably right click ->Export first, as a backup)

Then try Start->Run-> C: again

Read other 2 answers

What's the "Search" command prompt in Win8 pls? I thank you.

A:"Search" command prompt in Win8 pls?

??? Don't understand your question. When/where do you see this?

Read other 6 answers


I was in the process of setting up my XP Professional machine to get a "Command Prompt Here" option according the instructions in http://www.fileformat.info/tip/microsoft/cmd_prompt_here.htm

But instead of selecting "Folder" as the instructions say, I selected "File Folder" by mistake. Now whenever I double click on a folder icon in Windows Explorer, it opens a command window instead of opening the folder. I am not able to remove this action as the remove option is grayed out.

Please help.

A:How to revert error in getting "Command Prompt Here"

Do a system restore to before you made that little mistake.

Read other 3 answers


I understand what the %path% and %pathext% variables are.

typing: "notepad" or "calc" in the command prompt from any directory will open notepad.exe and calc.exe because their directories are in %path% and ".exe" is in %pathext%.

On the other hand "wordpad.exe" and "chrome.exe are not in %path% so typing "wordpad" or "chrome" from a random directory doesn't work.

however, typing "start wordpad" or "start chrome" does work. How come? How does the start command know where to find the executables?

Thanks in advance!

A:Using "start" in command prompt

I don't have chrome installed but I do have wordpad installed and I can simply type Wordpad, hit enter and Wordpad starts.

Read other 4 answers

hello guys, when i try to open "cmd" through run dialog box,it pop a dialog box to open the commmand prompt with any program, as this pops when we try to open any unknown file. what can be the reason, I have to run this program from system32 folder manually.

A:command prompt "cmd" problem

I am not quite understanding your problem. Language Barrier.

Are you saying that when you do this:

start > run > cmd

The command prompt does not open.

If that is the case, your path variable is screwed up. You can change that in your system properties, in the advanced tab.

Read other 2 answers

So I used to be able to use the "at" command on command prompt, but now whenever I try to use it like:

at 5:00 shutdown -s -f

it says "the service has not been started." Any help would be appreciated. Thanks!

A:Can't use "at" command on cmd prompt anymore?

You need to have the schedule service running for the At command to work correctly, this is the first thing I would check - it should be set to start automatically - also the At command has been depreciated in Windows 7 and though it still works Microsoft advises that your use the schtasks command instead

More information is in the Command Line Reference on Technet


Read other 5 answers

Apparently the COPY command is only valid for SQL*Plus databases (Oracle, etc.)... is there a similar command that Access97 will understand?

Just want to copy an existing table within a database and paste that within the SAME database as another table.

A:"COPY" SQL command suitable for Access97

Use a make-table query with the the original table as the record source of the new table.

If you need help with the specific synatax, post back and I'll try to help you with it.

Read other 1 answers

I say "not right" because I went to run SFC today and it immediately said "SFC/scannow is not a recognized command etc" That's also when I noticed that the first line of the command prompt reads C:\Users\Username and I don't think that's what it's supposed to read. But anyway I cannot do a System File Check and yes I did log in as administrator

A:Command Prompt "not right"!

You need a space between the command and the switch:

And you are right, the Prompt should read C:\Windows\System32 in an Admin Command Prompt.
Type cmd in the search box, then right click cmd.exe when it appears in the list, and choose Run as Administrator


Read other 5 answers

I have used the @="cmd.exe /s /k pushd \"%V\"" type of Registry mod to obtain a context menu "Open elevated command window here" menu item, such as in the "Open elevated command window here" thread ( Open elevated command window here ).

However, the admin cmd window, even though it says "Administrator:" in the title bar, will not seem to work with the REG command (e.g., "REG SAVE [...]", etc.). If I even just type "reg /?" on the cmd line, it just jumps to the next (new) cmd line prompt, without any apparent action. (And, DISKPART will work here, even though REG doesn't.)

[The REG command works fine when I open a pinned cmd.exe link with Admin privileges.]


1. Has anyone else noticed this?

2. And, if I'm not the only user in the universe to have this "feature", does anyone know of a workaround?


A:No REG Command in "Open elevated command window here" DOS Box

Hello Fred, and welcome to Seven Forums.

Is this the tutorial you used below to add "Open elevated command window here"? Open Command Window Here as Administrator
The REG /? command works for me using this when I right clicked on C:\Users and Open elevated command window here.
Do you have your UAC notification settings set to at least the default or top level? Normally when you use "Open elevated command window here", you will get a UAC prompt to approve before the elevated CMD window opens. If you do not get a UAC prompt, then this may be why you are having this issue.

Hope this helps for now,

Read other 9 answers

Im learning to programme and I wanted to do some of my work at home.
So i downloaded jdk 5.0 (from sun.com) and jEdit.
I wanted to compile the 'programme' i'd just written with Command Prompt, but whenever i type javac something.java
it says dat javac is not recognized

Ive been told to add the input/output txt files into a specific folder and then go to my computer>properties>advanced>environment....
In the user, i added CLASSPATH
and the other one already had a 'Path' and there i pasted the directory where the input/output tct can be found.
And then i restarted the pc.
But i keep getting the same msg..
And i think the command : java
doesn't work either

I checked around online and they said that i should check in the folder 'bin' if there was a javac.exe and a java.exe if there weren't any, then sth went wrong w/ the intallation.
I re-installed it and there it was.
But Command Prompt still doesn't recognize the command.

A:"javac'' and ''java'' won't work (Command Prompt)

Read other 12 answers

How to remove the "Authenticated Users" "Create Folders" permission from the root of the C Drive via command-line?
I know this question has been asked many times before, but nothing works for us!
We tried the following:
Take ownership: I cannot take ownership using the Administrator account (local and Domain Admin accounts) of the root C:. Error Access Denied
Cuurent root C: owner is TrustedInstaller and acnnot be changed.
We cannot change or remove the Create Folders permission of the Authenticated Users of the root C: . Error Access Denied.
Drive C: is hidden via GPO, but many users can enter it from the File-Explorer and create folders in the root C:.
We do not want -for many reasons- to Block/ Prevent Access to C: via GPO.
We also tried to run cacls and/or icacls under the system-account (PSEXEC -i -s -d CMD). Error Access Denied.
icacls C:\ /deny *S-1-5-11:(NP)(AD)
Error Access Denied.
icacls C:\ /remove:g *S-1-5-11
Error Access Denied.
cacls c:\ /e /c /R "Authenticated Users"
Error Access Denied.
Also using GPO "Computer Configuration\Security Settings\Restricted Groups ..." does not work!
Now we have this issue on over 450 pc's on our network. Nothing work. Please help! How to remove the "Authenticated Users" "Create Folders" permission from the root of the C: Drive on command-line?


Read other answers

Dell laptop, from the command prompt ipconfig /renew, it complains "unable to contact your DHCP server"

A:Solved: from the command prompt ipconfig /renew, it complains "unable to contact your

Read other 12 answers

I have Vista Home Premium 64bit and at one time the 'Run" prompt was there and also the "command Prompt was in Accessories.System tools. Now the command Prompt is not there. The "Run" prompt is nowhere to be found. I clicked on Start then properties then customize and checked the Run command but it still does not show up. When I type " Run" or "Command Prompt" into the "search" it says that no items match. So both these commands are gone and I cannot find either one . thanks.

Edited to say that after rebooting my computer , the "Run" Prompt showed up , but the "Command" Prompt is still missing. Where did it go ?

A:The "Run" The "Run" Prompt and the "Command" Prompt are Gone

Could be spyware, post a HiJackThis log.

Read other 14 answers


I'm getting the error as "Stack overflow at line 46" while executing the command "Add-AzureAccount".

When I hit enter after that command, small window will open asking for Microsoft credentials. When I enter my username, it will process and gives me the error  Stack overflow at line 46.

Installed Azure commandlets on Powershell 4.0 and using IE8. I have reset the IE but still getting the same error.

Any help on this issue is appreciated.


Sridhar. A

Read other answers

Can anyone help me with this ? i got a picture ... i cant sendto desktop as shortcut the icon is missing .. help !!

A:"Desktop As Shortcut" Command Is Missing from the "Send To" Menu

Maybe this info will help:
Send To Context Menu - Remove or Restore Default Items

Read other 3 answers

I have a utility I run on some customers' machines that requires being run from safe mode. I already have the utility automated via batch, and would like to just run one SFX app and move on to the next machine, knowing that this app will reboot the machine into safe mode w/ command prompt, run my utility, and reboot the machine back into normal mode (the standard shutdown -r -t 01 is easy enough, but there are no modal options!). Also, if this can be done, how would I then make sure that the current user logs in automatically, rather than have safe mode stop at the log-in screen?

The utility in question is a simple "Common Software Package" which includes some software such as Reader and Flash. Some of the software included cannot be installed while an antivirus is running (at least any that have tamper-protection) due to the registry editing involved, but are completely positive in nature (one such software package simply checks the current registry vs. a backup it takes on each shutdown to look for any discrepancies, adjusted for installed software, of course). The packages do not require Windows Installer service to be running, so I have found SM w/ CP to be the best option.

Any help with this would be appreciated.

Read other answers

Under normal operation I suddenly recieved a notification that firefox.exe had a corrupt file. I scheduled my computer to run a chkdsk and restarted it. Upon attempting to restart I got a continuous reboot (at the blue windows screen with the running green bar at the bottom) choosing any of my options, safe mode, last known good, or normal.

I've tried to go into system restore in order to copy my system files to a temporary folder but I just get an "access is denied" message whenever I do that and there was only one user setup on the computer which was the default admin. Using the "dir" command gives me an error message as well. I've also tried to do a repair reinstall but it isn't showing that as an option.

Any idea's before I have to reformat? I'm trying to run chkdsk /r but it got to around 75% completed and then started over for some reason (it keeps doing this). Any help is much appreciated, thanks!

A:XP SP2 - No way to boot or access/copy from command prompt

You cannot normally access the System Restore folder without resetting its permissions. How are you attempting to access System Restore if you cannot boot at all?

There is a method using the Recovery Console when the registry is corrupted, but you will have to wade through this:


Read other 3 answers

Hi there, im new here and could do with some help but not sure where to post this?

Basically, i need to copy a folder from one partition on my hdd to the other using cmd prompt, i dont know much about cmd prompt so i could do with the line i need to type to do this:

I just need to copy from C:\Documents and settings\users\rich\desktop\'folder name'

to d:\


A:[SOLVED] Copy folder via command prompt

Welcome to TSF

Go to Start and right click>explore
A window will open (tree)
Select the folder you wish and right click on it>COPY
Open MY Computer and open the D:\ drive
Right click within the D:\ drive> Select PASTE
The folder you copied should now be in the D:\ drive

Read other 6 answers

Hello and thank you for reading my post.

If I'm logged in Windows as user "u1", I can execute "cmd.exe" "as administrator" by choosing

"Start" -> "cmd.exe" and right-click "Run as administrator".
I would like to start another "cmd.exe" console as "u2" and "as administrator".
(So, "u2" is not the current logged in user).

The following command:

u1 cmd.exe> runas /user:u2 "cmd.exe"
runs "cmd.exe" as "u2" but not "as administrator".

I would like to do this in command line. Can you tell me how?

Best regards.

u1 cmd.exe> means: I'm running "cmd.exe" as "u1".

A:Run "cmd.exe" as a given user and "as administrator" in command line

Hi Lea,

I don't believe that what you want to accomplish is possible. This is because Windows only "runs" one login at a time, unlike some true multi user operating systems, such as Linux.

If your logged in as U1, then you can only perform operations as U1, or as the Administrator. As far as running things as the Administrator is concerned, I believe in this case that you simply inherit the Administrators permission levels, thus permitting you to perform elevated activities.

If your U1 login has Administrator privileges then running as Administrator will be no different to running as U1!

Good luck


Read other 9 answers

This is the situation. I'm interested in programming and I have a "problem" I'd like to solve programically. I have two computers, one I use to work on and other to print and store files. Therefore, I have to transfer files I work on over to the printing/storage PC to be able to either print or store. I want to be able to: Insert my usb drive into the printing/storage PC and automatically the computer, or command prompt, will start copying the files off the usb drive to a certain location. Can I create a command prompt program that acts in the following sequence:

The command prompt program is run.
It awaits usb drive input.
If an usb drive is inserted, cmd copies all of it's files to C:\files

How is this possible?

A:Making command prompt automatically copy files

If the two computers are on the same network I would just use software that keeps them in sync over the network.

Even with the USB stick you could use a program that keeps the USB synced on each computer. I had my Mom setup a few years ago to use Microsofts SyncToy to synchronize a USB stick with her home computer and her computer at work.

Read other 2 answers

I am writing a VBA macro in Excel and have hit a wall. I am trying to get excel to open a command prompt and make it execute a command. The problem I am having is if I try to do anything but open another program, it throws an error back at me.

I can open the command prompt using:
Call Shell("cmd.exe" & dosCmd, vbNormalFocus)
I can also open Acrobat which is the program I need using:
Shell "C:\program files\adobe\acrobat 9.0\acrobat\acrobat.exe", vbNormalFocus
However if I simply wanted to open a PDF file, I have the code to that without opening a command prompt.

I need to open the PDF document on a specific page, and to my knowledge the only way to do this (apart from manually) is to use the command prompt. However I have no idea how to get VBA to put the command in the command prompt, hit enter and then close the prompt.

There are 2 commands that need to be executed in DOS (I'm not sure if there is a way to combine the commands)

They are:

cd c:\program files\adobe\acrobat 9.0\acrobat

start acrobat.exe /A "page=10=Open Actions" "M:\Full Scores\allegro.pdf
These open the pdf document called allegro on page 10.

I am completely stuck. Out of ideas. I've searched the length and breadth of the internet and can find nothing to point me in the right direction. So I was hoping one of you fine people could. Thank you so much, James

A:Solved: VBA Macro that opens the Command Prompt and executes a command

Read other 8 answers


I'm trying to split a .flv file by using flvparse, which is a Windows-only, command-line interface tool. I did get through to the directory by following instructions posted on another forum, however, command prompt doesn't seem to recognize the the .exe file. I'm an absolute novice at this, any help would be really appreciated!

Attaching a CP s/s, and here are the instructions I'm trying to follow (copy pasted from the forum)


For trimming the beginning and/or ending of videos, you can use FLVParser (http://dev2.avacast.com/FLVparser.zip ).
FLVParser is a Windows-only, command-line interface tool. After you unzip it, move its folder to C:\ for ease of use. Also for ease of use, copy/move the .flv file you wish to edit into the FLVParse folder.
To make edits, you need to know the in and out points where you want the edits. Use FLVPlayer to find these points. FLVPLayer only lists times in total number of seconds, not HH:MM:SS, but don't worry, FLVParser can handle that. In the FLVParse directory create a new blank text file called: CuePointFile.dat
This is the file FLVParser uses to edit from. Open it in NotePad, and enter the in point and out point, separated by a single blank space, like so: 2525 5150
Save, and close the file. Open up the command line interface and go to the FLVParse directory: cd C:\FLVParse
In the command line, enter this to edit the flv:
flvparse.exe FileToSplit.flv CuePointFile.dat
Your file will be split into ... Read more

A:Command Prompt doesnt seem to recognize the command line!!

You are using the basic cmd, try in elevated mode
Elevated Command Prompt - Windows 7 Forums

However looking at you screen shot, you may have to check the command over carefully. There does appear to be an error in the command. With my eyes, it is difficult at times to pick out the subtle shades of difference.

Read other 1 answers

Hello everyone

Recently a problem has arisen with my system.

Previously I have been doing work that requires me to unplug my network connection and I need to check my IP address each time I plug it in again. I guess it's not set for static IP.
Anyways to do this I usually go into Command Prompt and type 'ipconfig'

Now however I just get "'ipconfig' is not recognized as an internal or external command, operable program or batch file".

The directory is the same as its always been, I can change it but it doesn't seem to matter what it is.

I've checked many other posts and is there something possibly wrong with my PATH variable? I used the command 'echo %PATH%' and it works, the list it gives is very garbled however.

I'm not sure what might have made this problem arise, but I would greatly appreciate any help.


A:Solved: Command Prompt Error - 'command' is not recognized...

Read other 15 answers

Hey guys,
Earlier my internet was being slow so I went to do a ping test and CMD proceeded to tell me that it didn't reconize the command. I have done countless pings before and this was weird. If i run CMD from the run bar by typing in its Dir then i can run ping and all the other commands or if i change the dir to sytem32 and run the command it works as well. I'm thinking that the paths for the cmd files have somehow gotten messed with and I'm not really sure how to change those so any advice on how to correct those paths would be greatly appreciated. Thanks

A:Command prompt won't execute commands from cmd or command

If you go Start - type cmd then right click on cmd to select Run as administrator you can run a system file check with the cmd sfc /scannow

With Win 7 you don't need to use the Run box.

Read other 6 answers

Hi All,

I'm running a program that parses .csv files and then changes them into ._OK files. This process takes longer when there are a large number of *.OK files in the folder where the files being converted are located. To remedy this I occasionally manually run this command:

del *._OK
While pointing at the proper folder.

Is there a way to have this command continuously run, kind of like out ping -t [IP ADDRESS HERE] continuously pings a certain IP address?



A:Command Prompt: Repeat del command continuosly

I'm running a program that parses .csv files and then changes them into ._OK files.

I take it then the conversion program will not accept an output folder other than the current or working directory? More detail what you actually do with the output files might be helpful.

Read other 2 answers

when I open up my command prompt and type 'ipconfig' without the ' and press enter it returns the line:
'ipconfig' is nto recognized as an internal or external command, operable program, or batch file

I am trying to find out the information I need in order to set up a static IP Address for port forwarding

A:Command Prompt command <ipconfig> not working

In order to set up a static ip address internally, you'll need to either tell your router or your computer not to use automatic DHCP and instead to use a specific IP address.

Go to the System Tray (Notification Area)
Click the Network icon
Click 'Open Network and Sharing Center'
Click the 'Change adapter settings'

Selec the connnection for which you'd like to use a static IP
Right click it
Click 'Properties'
Select 'Internet Protocol Version 4 (TCP/IPv4)'

Select 'Use the following IP address':

In the 'IP Address' field, insert the IP you'd like to use.

Note: The IP you use must be within the router's list of acceptable IP addresses. It's usually a list between to


If you're trying to set up an external static ip you'll need to pay your isp extra for one.

Read other 9 answers

I have Windows XP on my computer, and when I try to ping something through the command prompt (command.com), this shows up:

The NTVDM CPU has encountered an illegal instruction.
CS:0f23 IP:010c OP:c4 f6 06 a9 02 Choose 'Close' to terminate the application

Running tracert also has the same problem.
If I try running ping or tracert through cmd.exe, it stalls and doesn't do anything. I have to close the program because it doesn't respond.
I can use ipconfig in both cmd.exe and command.com. Do I have a virus on my computer, or is there a way to repair the command prompt? I've attached a HijackThis log file.

Logfile of HijackThis v1.99.1
Scan saved at 6:47:15 PM, on 1/18/2007
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180)

Running processes:
C:\Program Files\Cisco Systems\VPN Client\cvpnd.exe
C:\Program Files\Common Files\McAfee\HackerWatch\HWAPI.exe
c:\program files\common files\mcafee\mna\mcnasvc.exe
C:\PROGRA~1\McAfee\... Read more

A:Solved: MS-DOS Command Prompt Problem (cmd.exe, command.com)

Read other 16 answers

Hey guys.

Ive been trying to figure out how to make a command prompt run a command line as soon as the box comes up.

I need this to happen all from one command line. A command prompt needs to open with "echo hi" being ran as a command line.

Any ideas?

A:Make a command prompt run a command as soon as it opens?

Hello Fmjc001,

You could create a BAT file for this. Just type in the commands into a TXT file, then rename the file extension to BAT. When you run the BAT file it will run the commands in a command prompt automatically.

Hope this helps,

Read other 11 answers


So im trying to clean up my PC, FRESH install w/current updates

followed @BRINK guide to


and keep getting this error

tried in normal mode and SAFE

**Update tried running SFC /SCANNOW again will post sfcdetails

Read other answers

I have a bizarre problem that I can't seem to solve. I looked all over the internet for solutions, but can't find any.

My problem is that when I right-click on Mp3 files, the pop-up menu shows "Edit Song Information" as the default command for Mp3 files. The default command should be "Play In Winamp".

I've looked for a command in Winamp to change the default command back with no success. I've checked the Mp3 info in Folder Options > View File Types and the "Play In Winamp" command IS set as the default.

One of my other programs must be causing the problem. I have the following audio programs or codecs installed.

Winamp 5.52
Windows Media Player 10
VLC Media Player
iTunes (I don't really use it except for m4b files)
Roxio Easy Media Creator 9
RealPlayer 10.5
K-Lite Codec Pack 3.7.0
G-Spot 2.21
Quicktime Player 7.4

Does anyone know how to get "Edit Song Information" removed as the default command for my Mp3s and what program might be causing it?

A:Can't Remove "Edit Song Information" command in Mp3 Right-Click menu

Hello and welcome to TSF :Wavey:

What does the Edit song information belong too?

Can you post a screen shot of the .Mp3 file type in Folder options

Read other 2 answers

When I clicked on "open command window here" on shift-right click menu. It shows me an error message as the attachment. Before it works fine until last month. Does Windows last update update caused that problem or I did something wrong?

A:Problems about windows 7 "open command window here" shift-right click

Can you open a command prompt by using run? Windows Key + R - type cmd

Read other 9 answers

I found a machine with Windows 7 Professional, the serial number become all zero after hit the command of "wmic bios get serialnumber". Why this happen? How to recover it?

Read other answers

I'm almost done making a music video and should've known better than to use anything from Microsoft......any way When I add the next clip of video in the timeline I get this error message. "Not enough Storage available to process this command". And I can assure you I have plenty of free hard drive space AND I even tried cranking up the virtual memory and I still get the same error. As I said I am 3/4 done with this project and would like to finish the thing so I never have to use Windows' horrible software again. I've googled this question and was unable to fina a real answer or fix to this.....HELP!

Read other answers

Greetings all. How do I add the keyboard shortcut command "ctrl+F" to the Internet Explorer context menu? I know where I need to go in the registry to add an item to the context menu of Internet Explorer, but I don't know how to add a keyboard shortcut.

A:Adding "ctrl+F" command to Internet Explorer context menu

I am not sure I understand. Ctrl+F activates the "Find on this page" search box in Internet Explorer (IE) and funcions when you are working in the IE window, there is no setting up required for this.

A right click on the IE icon for a "Find on this page" in the context menu will not be very useful since IE does not yet know what page you intend to look at. If you just want a search function for IE pages you can use the search box on the taskbar.

Read other 0 answers

OK, I've had this happen before, such as when I installed AVG AV. I know the trick for the IRPStackSize reg edit.

However, I am encountering more and more of this on my network on CPU's and drives that never did this before. Strangely enough, it may affect only some of the drives on a CPU and not others. I've tried all different settings for the StackSize value and it does no good. None of these CPU's has had AV on them as they don't sit on the web and are on a closed network. I had one CPU that was fine this morning and on the next reboot I could not share a video folder any more, but every other share off it worked fine. Anyone else encountering this?


A:"Not enough server storage space...this command" randomly; IRPStackSize not fixing it

i'd have to go dig up the details again but could you indicate:

- What operating system/service packs are installed on the machines
- What is is the CURRENT irpstacksize value you have (knowing, of course, you have to reboot for it take affect)

Initially, for a fix, i'd try resetting all sharing and reboot. The turn sharing back on.

and how many shares do you on defined on each machine?

Read other 7 answers

I want to use the command line to open the "Custom sizing options" window in Windows 10, please view the image, thank you.

Read other answers