Microsoft DOS

13K

Solutions

8

Articles & Videos

12K

Contributors

Microsoft Disk Operating System (MS-DOS) was an operating system for x86-based personal computers, and traces of it are still found in the Windows operating system. DOS is still used in some embedded systems and for certain legacy 16-bit networks.

Share tech news, updates, or what's on your mind.

Sign up to Post

The original filename is "test.txt".
The requirement is to append the date + Timestamp (format yyyymmdd_hhmmssmsi.txt) at the point the file "test.txt" is generated.


yyyy - year
mm - month
dd - day
ss - second
msi - milli-second
0
On Demand Webinar: Networking for the Cloud Era
LVL 8
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

No comments, but we're still running WordStar v.7 as our main word processor. We operate the 32-bit version of Windows 10, and we physically print letters from WordStar via a PCL driver (mapped to shared Windows printers). This works fine with all of our printers except one - our Canon iR4570 copier.

Our main copier has just gone to the wall, so we're down to only one LaserJet that can carry out this function. Obviously I want a bit more redudency than this.

We run Wordstar as a legacy app through the ntvdm.exe process we've installed with Windows 10 32-bit. If I send a print job via PCL to the iR4570 it generally never prints anything, and the touch-screen concole becomes unusable. It is like it is running a corrupt process that is consuming all memory and/or CPU cycles . The only way to recover is to physically switch the iR4570 off.

On very rare occasions, it does start printing, but just junk text comes out - either filing the page, or just a couple of letters at the top of each page. It'll print until the trays are empty.

If I print to the iR4570 via PostScript from Wordstar, it is absolutely fine. HOWEVER, PostScript fonts are slightly bolder, and it doesn't look quite right for our requirements.

The iR4570 has a pretty much identical firmware to our other copier that went to wall, and which handled this all fine with PCL printing, day in day out, until it's demise. I'm hopeful there is something just not right in the settings I can flush out - but beforeā€¦
0
Is there a command to close out of a remote ms DOS connection that was obtained via an exploit?
I tried EXIT and it doesn't do anything.  Control+Z just asks if I want to background the connection.  This is NOT a meterpreter connection.
0
We have a dos computer with ages old accounting software that is absolutely crucial to this day in our company. We use dbase and compile the .prg text files into executable programs. is there a way to write and compile dbase programs under linux. if so what's the best way to go about it. I saw something called flagship and harbor but i'm not sure if this will do the trick. Has anyone ever come up with a solution to compile dbase prg txt file under linux? Any help or more explanation would be greatly appreciated. Thank you!
0
I'd like to be able to run a weekly script on my domain workstations (Windows 7 and windows 10) that will populate a CSV log with username, computername and last successful windows update.

What I currently have is this:
--------------------------------------------------------------------------
SET filename="C:\Windows\System32\catroot2\dberr.txt"
FOR %%f IN (%filename%) DO SET filedatetime=%%~tf
echo %username%,%computername%,%filedatetime%>>....hotfixes.CSV
--------------------------------------------------------------------------

This kinda works, but doesn't tell me an update failed. Or if updates were downloaded but not installed.

Is there a better way to achieve what I'm looking for?
0
Hi

I need to run cmd as administrator so the command prompt states that it is in administrator mode.  What is dos command to enable this, rather than enabling it through the GUI ?

Thanks
0
Hi

I would like a DOS batch script that checks the status of a running task, however if the task is running more than 10mins to complete, the task should stop running and report that the task has been running more than 10mins
0
Hi

I would like a batch script that will check the status of a windows scheduler task to do the following:-

- Starting Schedule Task

1. Report if the schedule task failed to run
2. Report if the schedule task successfully run

- Status of the Schedule task

3. Report if the schedule task failed
4. Report  if the schedule task completed successfully

- Status of the schedule completion job

5. Report if the 'running' status is completed successfully and still not running
0
We have a large directory in Dos and are not able to sort by size. it is the biggest directory in our file system. We are using the command dir /os. IT works when sorting by date. and dir /os works in other directories. Has anyone ran into this issue before?
0
Use the "Route ADD" cmd , tried to router from router's wan mac and IP , got ''Not recognized command ? ''

Computer client would be allowed  to router from wan ip by table added ?
0
Announcing the Most Valuable Experts of 2016
LVL 6
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

I need to set permissions on multiple computers so that the permission will not affect the folder or subfolders but the inheritance will still apply to the files within those folders.

ex:  c:\temp\scratch\sub\ needs to have permissions applied so that users can't delete either the "scratch" or "sub" folders but can add and delete files within them.  

According to Microsoft you need to use the "OI" and "IO" commands together but they don't give examples, any examples I've found online don't appear to work.   It should read something like "cacls c:\temp\scratch /G everyone:(IO)(OI)(C).  I've also tried the icacls version with no success, I've also tried only using the "C" (change) permission without the IO & OI but the folder can still be deleted.

Has anyone gotten this to work?
0
how to create a batch file to open this line with 1 click?
1.Open cmd.exe then type this command

netstat -n | find /C /I "established"
0
Please see PDF attached for plugin requirement. I'd like to deploy this to remote machines using PSEXEC. Can an Expert
please provide me the commands I need to execute? I'd like to also configure the command to produce a file (txt or whatever) that will give me the results of the deployment whether it deployed successfully or failed.  Can you please provide me the commands using my scenario below:

1. Executing PSEXEC from Server1
2. Plugin install (.exe) located in root of C:\ on Server1. Plugin file name "Workfront.exe"
3. I've created a .txt file in the root of Server1 name "computers.txt", which contains the remote hosts for my deployment.

This install needs to be silent. I believe it is necessary for the machine to reboot in order for the plugin to install. I tried a manual install, and a reboot was required. Maybe you Experts can tell by viewing the PDF requirement.
Workfront--Setting-up-the-WorkFront-.pdf
0
Dear All,

Using schtasks command i have created a windows scheduled task and it is working fine for the single parameter.
Now i need to create a task with multiple arguments.
For example: My task should run monthly, Sunday of First and Second week.
I was trying something like this but it is giving error.
schtasks /create /tn "mytask" /tr Myapp.exe /sc monthly /mo FIRST,SECOND /d sun /m jan /st 15:00:00 /sd 25-07-2016 /ed 01-04-2035

Can anybody help on this issue.
0

Microsoft DOS

13K

Solutions

8

Articles & Videos

12K

Contributors

Microsoft Disk Operating System (MS-DOS) was an operating system for x86-based personal computers, and traces of it are still found in the Windows operating system. DOS is still used in some embedded systems and for certain legacy 16-bit networks.