Commonly used to refer to Microsoft DOS, one of the first Operating Systems, but could equally refer to FreeDOS or AmigaDOS. Note: For questions about Denial of Service (DoS / DDoS) attacks please use the denial-of-service tag.
3
votes
2answers
73 views
Virtualize MS-DOS desktop & copying the HDD verbatim
Here at work, we have one user with some specialized legacy software, the developer of which has gone "belly up"* a long time ago.
When trying to copy the program to other systems (trying to check if ...
2
votes
1answer
41 views
Monitor DoS attack with snmp
Is there any way to monitor DoS attacks with SNMP or any other software which based on Linux and could monitor router / switches and alert when a DoS attack is observed?
0
votes
3answers
61 views
How to calculate the starting address of a partition from MBR
Given a MBR and the structure of MBR/partition table, how can you calculate the size and starting address of each partition?
For clarification let's say I was given this-
Answer: There are ...
0
votes
1answer
64 views
How to issue an rsh command in the background?
How to issue an rsh command to run in the background?
Example:
within a batch file i call
rsh 10.1.1.2 -lroot /etc/rtcinst/myscript.ksh
which runs on a remote unix machine. This script takes a ...
1
vote
2answers
99 views
DOS command for creation date file
I've been wondering, using this dos command
for %a in (MyFile.txt) do set FileDate=%~ta
Is there a way to have the full date from the day to the second?
EDIT:
For now I get :
set ...
0
votes
0answers
73 views
USB DOS boot thumb drive won't boot
I have created a bootable usb thumb drive using the HP USB Disk Storage Format Tool and confirmed that it works as expected on a Dell T5400: I am able to select it from the boot select menu and get to ...
0
votes
2answers
158 views
wsname logfile to a filename using mac address or hostname
I am using wsname to rename workstations as they are deployed.
i have a \logfile switch which changes the default location of the wsname logfile to a folder on the C drive.
I want to change this to a ...
1
vote
4answers
200 views
Dos find command? [closed]
Are there any utility find commands that you can download and use in DOS which match the UNIX find command?
1
vote
2answers
355 views
Windows 2008 folder has lost all permissions, can't be deleted, edited or permissions changed
I was testing a batch file that used the following dos command "rmdir test2 /s /q", this command failed part way through and now I seem to have folders that have no permissions. For example, in the ...
0
votes
1answer
375 views
How do I copy stdout and stderr into a log file in Windows XP?
I have a script that I'm running from a command line. I want the stdout and stderr to be displayed on the screen and also to be copied into a logfile with append.
What is the syntax for this ...
0
votes
1answer
528 views
File server share access intermittent/slow/machine unstable: win2k8r2
I have a file server running Win2k8R2 on an older HP DL380G4. It has nothing set up on it other than file sharing. All drivers/firmware/updates installed. The file server is used as a dump for a bunch ...
2
votes
5answers
1k views
FoxPro 2.6 DOS on Windows 7 64-bit
I support a company that has a very old, mission critical, FoxPro for DOS 2.6 (FPD) application.
For variuos reasons the company didn't adapt/migrate their app, which, ironically, has been running ...
0
votes
1answer
235 views
Determining End of Line Delimiter
How do you verify what the delimiter for a file is?
I'm using eclipse to edit a script file on my windows system that I use to deploy on my unix server. The script specifies file names and I'd like ...
1
vote
1answer
172 views
What is the function in Windows similar to Inode in Linux?
Is there any commands which is same as the function Inode in Linux. Any info will be helpful.
0
votes
1answer
75 views
UDP in DOS and Windows
I have two computers, one with Windows and another with FreeDOS. I want to generate UDP packets on the Windows PC and receive and view the contents of the package on a computer with FreeDOS.
0
votes
4answers
93 views
1
vote
1answer
146 views
linux backslash for dos
In linux I can use newlines in commands using the backslash in order to improve readability in shell scripts etc:
ls -l \
--reverse \
--human-readable \
--full-time
Is this possible in ...
2
votes
5answers
366 views
How can I create multiple, numbered copies of a file in Windows?
I have a file named poll001.html, and need to create 100 copies that are named incrementally (i.e poll002.html, poll003.html...etc). I know this is stupid, but it is what boss-man wants. any ...
0
votes
1answer
62 views
Is there a program that will monitor a txt file and print it when ever it is updated automaticly?
Client is using a very old DOS program that I can not get to directly print. I can get it to write out to a txt file though. I know about PrintFile but it will only print the file once and won't print ...
0
votes
2answers
381 views
Windows 7 Custom Environment Variable Disappears
I am trying to set a custom environment variable in Windows 7, which needs to be done programmatically as it must be set on multiple computers.
I have been testing one a single machine, but When I ...
0
votes
1answer
156 views
Windows XP running as OpenSSH server through cygwin. Can I remotely execute MS-DOS commands?
I tried typing cmd or cmd.exe at the bash line which then takes to the DOS shell. But from there I tried executing something like trial.bat which contains some lines to access a series of executable ...
4
votes
3answers
263 views
Checking parameters in a DOS batch file
We have a batch file that takes parameters.
We then read the value of the parameter using %1 for the first parameter.
Question is: How can we check that %1 has a value?
0
votes
1answer
716 views
getting the last two tokens in batch script for command
I have a file name with fullpath and want to get the filename and the parent directory of the file.How can I parse this in batchscript?
e.g
for /f "tokens=4,5 delims=\" %%a in ...
2
votes
10answers
13k views
Windows command prompt: how to get the count of all files in current directory?
What command would you use in cmd.exe to find the number of files in the current directory?
Is there a powershell option here?
Update: I was hoping to avoid dir, as I know there are 10,000+ files in ...
0
votes
2answers
85 views
how to delete all files that begin with 'testcase-' on a windows server?
On a windows server, using a DOS command, how can I delete files in the current directoy that have the pattern like:
testcase-234.html
testcase-2322.html
testcase-12.html
i.e. files that begin ...
0
votes
2answers
755 views
0
votes
7answers
8k views
Finding day of week in batch file? (Windows Server 2008)
I have a process I run from a batch file, and i only want to run it on a certain day of the week.
Is it possible to get the day of week?
All the example I found, somehow rely on "date /t" to return ...
0
votes
2answers
52 views
Print to Local Windows Network Share When Network is Down
I've got an application that sends print jobs to a local print share via a DOS copy:
copy fileToPrint \\myLocalComputerName\sharename
When the network is down it throws an error. However the share ...
1
vote
6answers
220 views
Standardising on a single Windows Scripting Language
I wasn't quite sure whether this would be better on StackOverflow or not, feel free to move it if you think it's more appropriate there.
Anyway on to the question...
The Situation
We currently ...
2
votes
4answers
1k views
How to make Server bootable CD?
I need to upgrade firmware in two RAID controllers on my Dell PowerEdge 1950 server running Win2008 64bit, this is required to be done from DOS because the driver gives me an error " You cannot ...
1
vote
1answer
97 views
How do I change the prompt of Windows commandline permanently?
I use Prompt command to temporarily change the Windows command prompt's inline prefix. So instead of current directory, I choose it to display something like current time and the $ sign.
But when I ...
0
votes
2answers
186 views
Multiple remote DOS sessions on DOSEMU
Is it possible to organize multiple remote DOS sessions on DOSEMU (Ubuntu)? How administrator can control these sessions?
-1
votes
3answers
3k views
How do you create a symbolic (hardlink) in CMD.exe
I need to do this without installing software...
Any ideas?
MSDOS (cmd.exe) on Windows XP
4
votes
5answers
933 views
Is it possible to connect a DOS pc to a windows 2003 domain
We are in the process of upgrading our domain from windows 2000 to windows 2003.
We have a few old DOS machines that need to be able to access a share on a server on the domain. We are using MS Lan ...
1
vote
3answers
455 views
Is it possible to get Samba automatically convert linebreaks in files from dos to unix?
I have a shared over samba directory which i access from my windows development box.
Problem is that when i create and edit files they are saved with dos linebreaks.
Is there any way to configure ...
1
vote
5answers
913 views
SMTP DOS attacks with malformed email addresses
We have the following setup:
Redhat kernel 2.4.16
Sendmail 8.11.6
This is a very old, ~7 years, cobalt RaQ server and is not easily upgradeable. Currently, we are being hit by multiple IP addresses ...
2
votes
9answers
2k views
Best way to keep a MS DOS application alive? (Virtual MS DOS)
I have a good old DOS application which is still required to run. Unfortunately the PC is dying and needs to be replaced. The PC was running Windows 98 and the software was executed in a MS Dos ...
1
vote
1answer
525 views
Flash ROM from USB drive with DOS?
My home server PC has a P4 processor. Windows seems unable to control the processor speed, so the processor heats up and the PC fan is running at full speed all day. The event log says there is a ...
1
vote
4answers
372 views
How long have “find” and “findstr” been in the windows CLI?
(I know this is a slightly silly question, but...)
I've recently been made aware of "find" and "findstr", despite having been doing at least light admin on Windows XP since it came out. I was ...
2
votes
1answer
368 views
Is there a & (BASH) equivalent for DOS Batch files?
I'm thinking not since that violates the principle of batching. So what are my options if I want to launch two apps in windows in one script.
0
votes
7answers
2k views
Copying large file to removable media
Using WindowsXP-Pro, I'm trying to copy a largish file (~28 MB) on to an SD Card.
The copy gets almost completed, when it fails and returns with this error:
Cannot copy <filename> file: ...
1
vote
2answers
5k views
How to write a dos batch script to create a folder structure?
I would like to be able to have a dos batch script that I could utilize to create a specific folder structure below what ever directory I may be in at any given time.
The specific folder structure ...