Just been running through ATP 069 and came across scripts running DOS commands. Will any of these run in Windows 7?
|
Just been running through ATP 069 and came across scripts running DOS commands. Will any of these run in Windows 7?
Any of What? Do you have a specific script in mind? I think that you might be confusing DOS and commands. DOS is an operating system and was replaced by Windows. Windows never stopped using commands. You can do Start>Run>CMD (You may need to customize your Start properties to get Run to show up.) to open a command line window. You can use *.bat files in Windows just like in DOS. Although, many of the commands have changed their syntax since the old days.
ATP069 Segment 3 has lines of code:
'check for files of pattern script*.scr
'fill array with default filenames
inc = "1"
strFiles = Dir(strDir + "\script*.scr")
If strFiles = "" Then
'build dos command to create new script file
strFN = strDir & "\script" & inc & ".scr"
Open strFN For Append As #1
' Close before reopening in notepad.
Close #1
'open new script file
shellID = Shell("notepad " & strFN, vbNormalFocus)
Else
'search for highest file number
As far as I know you can't run any DOS commands in Windows 7 - I certainly can't run Leisure Suit Larry!!
R.K. McSwain | CAD Panacea |
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."
- Kristin Wilson, Nintendo, Inc., 1989.