What external files are needed to run cmd
Moderator: DosItHelp
What external files are needed to run cmd
So if I take a copy of cmd.exe and put it in another folder it doesn't run perfectly what files are needed for it to work and run default commands (no extra downloads)?
Re: What external files are needed to run cmd
What do you mean with "it doesn't run perfectly"?
Where do you copy it to (same hdd/ same pc/...)?
Do you use a custom environment variable set (for example another "path" value)?
(You should mention each difference.)
penpen
Where do you copy it to (same hdd/ same pc/...)?
Do you use a custom environment variable set (for example another "path" value)?
(You should mention each difference.)
penpen
Re: What external files are needed to run cmd
penpen wrote:What do you mean with "it doesn't run perfectly"?
Where do you copy it to (same hdd/ same pc/...)?
Do you use a custom environment variable set (for example another "path" value)?
(You should mention each difference.)
penpen
By perfectly I mean if I went onto the forum and copied any random script that already worked on that pc it would still work in that folder if cmd.exe were no longer in system32.
It is copied to a folder on a flash drive plugged into the same computer.
Please note I would never actually delete cmd.exe from its default folder.
Re: What external files are needed to run cmd
How did you execute the batch file?
I would assume you attempted to do this if they are both in the same directory.
I would assume you attempted to do this if they are both in the same directory.
Code: Select all
cmd /c "mybatch.bat"
Re: What external files are needed to run cmd
Could you please link some scripts that don't work (because i can't find one)?
Tested files:
http://www.dostips.com/forum/viewtopic.php?t=7193#p46858
http://www.dostips.com/forum/viewtopic.php?p=34194#p34194
http://www.dostips.com/forum/viewtopic.php?p=32628#p32628
http://www.dostips.com/forum/viewtopic.php?p=34174#p34174
penpen
Edit: Added Tested files.
Tested files:
http://www.dostips.com/forum/viewtopic.php?t=7193#p46858
http://www.dostips.com/forum/viewtopic.php?p=34194#p34194
http://www.dostips.com/forum/viewtopic.php?p=32628#p32628
http://www.dostips.com/forum/viewtopic.php?p=34174#p34174
penpen
Edit: Added Tested files.
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: What external files are needed to run cmd
I suppose in theory if you're pasting cmd.exe into a hypothetical custom OS environment that somehow magically works without a C:\Windows directory, you'd be missing commands like CHOICE and XCOPY.
http://ss64.com/nt/ - every command that isn't followed by a •
http://ss64.com/nt/ - every command that isn't followed by a •
Re: What external files are needed to run cmd
Thanks ShadowThief, I'm sorry about the wording of the question I will try to get better at that