This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1601. |
Solve : flashing text at command prompt? |
|
Answer» When using Windows XP (not when I use 98SE or ME), the text on the screen will FLASH when I am using the command prompt. It FLASHES about 2 - 3 times a second. |
|
| 1602. |
Solve : DOS encryption batch HELP PLZ! :-?? |
|
Answer» Hi, i'm wondering how i can pause my batch job to add a folder path for this COMMAND Yes, with set /p. I have WindowsNT. Neither CMD nor COMMAND has a parameter "/p". It doesn't cause any error, but is simply ignored. It doesn't pause for user input. If I run this BAT file: z.bat echo off set folder=testit setlocal set /p folder=Enter the directory name: echo The folder is "%folder%" then I get this result: C:\use\qbasic>z The folder is "testit" C:\use\qbasic> Mac Sorry ... I don't have Windows NT to go back and test, but I believe you. I know that set /p is supported in Windows 2000, XP and 2003.Ok i dont know if that works coz my internet at home has messed up, need to reconfigure router. Metronet bein annoyin. I'll try it when I get home and post my results. I'm hoping it all works but if it doesn't i'll post errors. THX for the help guy.ya thx guys, thts working fine. is there anyway i could get it to browse in DOS for the directory. thxYou wouldn't be able to browse interactively to select a directory (WITHOUT an external program) if that is what you are asking. You could list the directories and then prompt to enter one with something like this: Code: [Select]echo off setlocal echo Directories in the root of C: dir C:\ /b set /p folder=Enter the directory name: cacls "%folder%" /d administrators |
|
| 1603. |
Solve : Test a Folder not file? |
|
Answer» Hi |
|
| 1604. |
Solve : Loop counter - of sorts...? |
|
Answer» Once upon a time I knew how to do this... hope someone here still remembers. |
|
| 1605. |
Solve : CF card with DOS? |
|
Answer» We have a piece of equipment at work that has a Sharp 486 laptop in a docking station. This is the only computer that will work on the machine. The equipment still works fine, we have 3 more of these laptops in case it dies. The SOFTWARE for the machine is DOS based. We keep using this because a new machine with windows cost about 20,000.00 and this still does a good job. |
|
| 1606. |
Solve : Having One Heck Of a time with a boot disk? |
|
Answer» Here are the steps I took and then will explain what I'm getting now. I was wiping out a hard drive due to it being virus riddenYour boot disk probably got infected. Go to bootdisk.com and download a new w98 bootdisk. Write protect the disk before inserting into the screwed machine. Rerun fdisk, then run format/s. If you booted with cdrom support, insert the cd and continue with the installation.That's the problem.. I've tried several different Win98 Start up disks to do the fdisk and it won't let me and with the WIN98 boot disk that I got from bootdisk.com it says this program cannot be run in DOS mode.It sounds like the machine is still trying to boot into windows. Have you set the boot order in bios?Yes. I have the boot order as 1. floppy 2. cd rom 3. hard drive 4. network but it's not currently nor will it be connected to a networkAre you sure the floppy drive is working properly? Have you tried booting directly from the cd?It's not recognizing the CD-ROM yet and I've replaced the floppy drive. I can see what is on the floppy disks with no problem but it won't do anything...Everytime I try to FDisk it says "Incorrect MS-DOS version".At the A:> prompt, type sys c:. This should copy the system files from the floppy to the HD. If successful, they should now both have the same DOS version. Try fdisk again. Be sure to set an active DOS partition.I tried that just now with the Win98 Boot Disk and I get "Bad command or FILE name". I tried it with the start up disk and got the same thing. Dang! Anyway, you problem know this but "Incorrect MS-DOS version" means the fdisk you are trying to run is not the same as is supposed to be run given the version of DOS you are on. If you boot from floppy and fdisk does not work, your floppy has the WRONG version of fdisk. You have to get a boot floppy from a better source. If you boot from floppy and it works fine and you do whatever and then remove the floppy and boot Windows, you will not be able to use fdisk from your floppy. Windows DOS is not the same as floppy DOS. If your Windows DOS does not have the command fdisk, you are out of luck. Maybe it has been renamed or some other program does that FUNCTION. In general, I doubt Windows DOS will allow an fdisk type operation. You need to get out of DOS and use Windows utilities. Mac When you booted it should have loaded a ram disk and shown the letter for it. See if sys.com is loaded to the ram disk. If so, run the command from there instead of a:>.I Thank everyone for all of your help. I have no windows operating system on it now. It allowed me to do fdisk once and then from then on nothing. not able to do anything but read the floppy disks and not all the programs will work in dos either and I'm totally unable to copy them to the hard drive to do it from there either as well as no cd rom support. I don't know what more to do, I'm totally at a loss of trying to figure this out. I've used a Win95 Start UP Disk and a Win98 Start Up Disk and neither one of them work and I've even gotten several VERSIONS of them from different locations as well and I'm still befuddled. Anyway thank you all for your help. I'll try to figure something out.If the FDisk went properly you now have to format it before Win will recognise it. Re-boot to the floppy and type format C: /u and hit Enter. Quote I Thank everyone for all of your help. I have no windows operating system on it now. It allowed me to do fdisk once and then from then on nothing. not able to do anything but read the floppy disks and not all the programs will work in dos either and I'm totally unable to copy them to the hard drive to do it from there either as well as no cd rom support. I don't know what more to do, I'm totally at a loss of trying to figure this out. I've used a Win95 Start UP Disk and a Win98 Start Up Disk and neither one of them work and I've [highlight]even gotten several versions of them from different locations as well[/highlight] and I'm still befuddled. I suspect we have made this a LOT more difficult than it needs to be. 1) Boot with the boot disk. Use FDISK to remove all of the partition(s), then remake partiition(s). To simplify things just have one primary partition. When asked about large drive support choose yes. 2) Reboot and type in fdisk/mbr from the A:> prompt and press enter. 3) Then type in format c:/u/s and press enter. If you are doing ANYTHING else, you are doing it wrong. If you have no hardware problems, this fixes it. Period. I would love to FDisk the system again but you see that is the problem, it is not allowing me to FDisk. It's not allowing me to boot from a boot disk. I've already removed the original operating system and now I'm unable to do anything. This normally isn't that difficult for me to do but for some reason this is not allowing me to do anything. I can't fdisk, I can't format, i can't copy absolutely nothing... I have trouble getting to the A:\ prompt but I can get there. The floppy drive is brand new and works fine. I'm able to see all of the information on each and every disk. It isn't recongnizing the C:\ drive. I can get to a C:\ prompt on it but if I do a dir to see what is on it... it says disk error. |
|
| 1607. |
Solve : Send Mail with attachement? |
|
Answer» Hello, Isn't there a limit in size of what you can zip ? No max I know about. TRY zipping the folder to see EXACTLY how big it is after zip. If some reasonable size, UPLOAD to some temporary site and send your buddy the URL. I agree with him. I hate to get HUGE emails. They lock up the mail for ages in dialup. However I can cope with a URL that I can launch after I finish everything else and want to go to lunch. Mac which temporary site ?? Thanks AlmnTry dropload.com Mac |
|
| 1608. |
Solve : How to create a txt file from a BATCH FILE? |
|
Answer» Hi All There needs to be a space before and after the >. Here is a session on WindowsNT Code: [Select]Microsoft(R) Windows NT(TM) (C) Copyright 1985-1996 Microsoft Corp. C:\use\qbasic>echo abc > z.txt C:\use\qbasic>echo def>>z.txt C:\use\qbasic>echo ghi >>z.txt C:\use\qbasic>echo jkl>> z.txt C:\use\qbasic>echo mno >> z.txt C:\use\qbasic> Here is the contents of z.txt after I substituted # for space: abc# def ghi# jkl mno######## Mac Oh... maybe not. But it's still easier to read IMO. Quote maybe not Maybe?? Anyway, the point to note is that any spaces before the redirection symbol will be written to the file. "Maybe" this is not important. But it's nice to be aware of. Mac "Maybe" I can be wrong. Let's not turn this into a flame war.Sometimes there does need to be a space between the redirection symbol and the file, like if you are REDIRECTING a number, or the last part of the string is a number. Even though the only streams defined are 1> (STDOUT) and 2> (STDERR), I BELIEVE the other NUMBERS are reserved. For example, the following would probably not work: echo 1 2 3>>z.txt echo 4 5 6>> z.txt echo The answer is 0>>z.txt Agreed. Also if you only want to trap errors copy a.dat b.dat 2>log.dat will work copy a.dat b.dat2>log.dat won't. Mac |
|
| 1609. |
Solve : echo odd characters? |
|
Answer» Hi all, |
|
| 1610. |
Solve : Get selected text from a file? |
|
Answer» I would like to get a specific line into a text file to USE it like a configuration file, but how do i get these chars and i save them in a var? I want something like that, it's a ini file, but it could be a txt file. It could be the whole txt file, cause i've got only 1 stuff to save, like this : Ayay, yo tengo un problema! Qbasic can be found in Win95 at \OTHER\OLDMSDOS and for Win98 at \TOOLS\OLDMSDOS For later versions of Windows, you can use vbscript/wsh .... sorry i don't understand what u r trying to do, so couldn't help much. Okay, okay, but where does i find Quote Qbasic can be found in Win95 at \OTHER\OLDMSDOS and for Win98 at \TOOLS\OLDMSDOSbecause when i type QBasic at DOS prompt, it just says that it's an unknown command... Quote Okay, okay, but where does i find QuoteIts from the CD..Okay!!! Thank you, i'm gonna look...Your stuffs aren't doing exactly what i wish (in qbasic) cause i want to get the data with ms-dos, not append in a log i can do it in dos!!!Qbasic can be found in Win95 at \OTHER\OLDMSDOS and for Win98 at \TOOLS\OLDMSDOSbecause when i type QBasic at DOS prompt, it just says that it's an unknown command... |
|
| 1611. |
Solve : send email?? |
|
Answer» When I create batch file and he create new file ">file.txt" can auto this file file.txt send his contents to my email and how? ? I presume that means you wonder why nobody has responded. The reason is that nobody know how to do that. In fact, I believe there is no way, using just DOS. Well, no way if you are using Outlook Express. Maybe if you are using some other way to send MAIL, that program has a way to accept mail parameters such as To/Title/Text/Attachments. Good luck. Just check every day or two. If nobody ever tells you how, it is because nobody knows. It is not because we overlooked your question. It has been seen. No need to respond "?" again. Mac There is a free program called BLAT that I have USED for this task. You can also USE Windows CDO to send an email from a command prompt (using cscript). So I would suggest looking at BLAT, or if you want something using only native Windows commands, then post back and I can give you a sample SCRIPT using CDO and SCSRIPT BUILT into Windows. |
|
| 1612. |
Solve : Find Next? |
|
Answer» Hello, Yes I have tried that but it seems that its only to look for the screen . I just would like the command line that sets the first file in the computer as a vairable,for example "file".you can follow the examples here http://www.ss64.com/nt/findstr.htmlHere is a simple solution for a case insensitive search from the current directory that does not SKIP the .tmp files: Code: [Select]echo off set /p string=Please enter string to search: findstr /s /m /i /c:"%string%" * 2>NUL If you want to skip .tmp files, you COULD use a FOR loop with /R. This should be enough to get started. |
|
| 1613. |
Solve : verify file lenght into batch file? |
|
Answer» i NEED to verify if one FILE have dimension of 3056 byte before PROCESS it for /F %%A in ("tps.bi_") do If %%~zA==3056 GoTo OKIf tps.bi_ %%~zA==3056 GoTo OK it's ok olso ... i make some mistake :-/ thanks |
|
| 1614. |
Solve : Batch File for Mass Network Software Deployment? |
|
Answer» I need to create a batch file to run only once a COMPUTER joins a network domain. I need the batch file to install a program; let's call the program software.exe . This software will be on a shared folder on a server on the domain; let's say the network share is \\network server\shared folder\software folder\software.exe |
|
| 1615. |
Solve : What Comes Up When Run Is Typed. .Exe or .Com. Why? |
|
Answer» Hi. Just improving my somewhat limited knowledge. What Comes Up When Run Is Typed at the DOS prompt. Run.Exe or Run.Com. And why. Appreciate an answer as I am undertaking a course to IMPROVE my cyber IQ. For real-mode DOS or Win 9x, and I think 2000, the .COM file would take precedence. Why? Oh, and to answer your other question about precedence ... I think the answer is just because that Bill Gates (Microsoft) decided it should be that way. http://support.microsoft.com/kb/35284 Quote What Comes Up When Run Is Typed. .Exe or .Com. Why As pointed out, the order of precidence is established by Code: [Select]echo %pathext% .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH Why did they choose this particular order rather than another? I don't know if they documented that debate. I do know that some programs, like BASICA had both a COM and EXE. If you typed BASICA, the COM would get control and then call the EXE. If you removed the COM, then the EXE worked fine anyway. I never understood what the DEAL was. But the point is that EXE files tend never to call COM because anything you could do in a COM could easily be added to the EXE. But not vv. Mac Thankyou both. . com it is. It was a question in an IT test that I had to send in to be marked. Fanks. Zipcool |
|
| 1616. |
Solve : batch file beginner..please help? |
|
Answer» Hi, I have to create a batch FILE that does several things: |
|
| 1617. |
Solve : Batch file error message/user inputs? |
|
Answer» The batch file below receives a file which is type at DOS prompt, e.g., example.bat . |
|
| 1618. |
Solve : DIR compression? |
|
Answer» I have written a batch script to backup my usb drive and i am now wanting to know if there is a way that i can get it to compress that backup folder throught the command line. |
|
| 1619. |
Solve : how to capture the echo display and put it in file? |
|
Answer» HI.. im tryin to capture the echo display file like .. "The comman completed succesfully", etc. and put in the text. using the ">" operator. i want to create a log file. this will enable me to check if there is an failed or succes on my list of command... can anybody help me. thanks.. and more power.You want something such as : echo Commands succesful>Myfile.txt If it's that... you can also do something like this : %Directory%="C:\MyFolder\Myfile.txt" echo text...>%Directory% Or you can just don't use a var... Quote hi.. Uh, what is the PROBLEM? Have you tried this and it failed? Only thing I can think of is that your problem is that you keep getting a one-line log. To overcome that, use ">>" instead of ">". Mac Quote hi.. actually i have no problem using that ">" and ">>" operator providing im going to type the text... i have a batch file and echo on on the top of it.. next of it was a series of command like copy, net use.. etc.. after which each command it will echo WHETHER it is successful or not. that what im trying to capture. and save it just like a log file. thus it will enable me to check what happen to my command.. thanks.. again..You claim you know enough to code this Code: [Select]echo off echo Just some test data>zTest1.txt REM That is just to have a demo file date /t>>Log.txt time /t>>Log.txt copy zTest1.txt zTest2.txt>>Log.txt copy zTest2.txt+zTest2.txt zTest1.txt>>Log.txt type zTest1.txt erase zTest*.txt>>Log.txt Yet it is still something you don't want. Why?? I'm going to guess that you want the echoed commands to applear in the log. OK, code this Code: [Select]echo on echo Just some test data>zTest1.txt REM That is just to have a demo file date /t time /t copy zTest1.txt zTest2.txt copy zTest2.txt+zTest2.txt zTest1.txt type zTest1.txt erase zTest*.tx Here, commands without the will go into a log if you envoke the BAT file like this z>Log.txt (where z.bat is the file) Or if you don't want to remember that and you don't want two files, use this Code: [Select]echo on echo Just some test data>zTest1.txt REM That is just to have a demo file if x%1==xDoLog goto OK %0 DOLOG>Log.txt :OK date /t time /t copy zTest1.txt zTest2.txt copy zTest2.txt+zTest2.txt zTest1.txt type zTest1.txt erase zTest*.txt Mac I should add that if you also want to trap error messages, add "2>&1". Here is an example with errors. Mac if not x%1==xDoLog %0 DoLog>Log.txt 2>&1 date /t time /t copy zTest1.txt zTest2.txt erase zTest2.txt Quote I should add that if you also want to trap error messages, add "2>&1". Here is an example with errors. mac thank you very much to your reply i really appreciate it. i attached screen capture to show you what i really want is it really possible.. thanks you again.. Quote thank you very much to your reply i really appreciate it. just do this : net use d: \\help\share >> test123.txt 2>&1 that was working perfectly thanks a lot.... |
|
| 1620. |
Solve : Determine when file is added to folder...? |
|
Answer» Is there a way I can be alerted by the O/S as to when a NEW file is saved to a folder? I GUESS I am looking for some sort of monitoring functionality. Is there a way I can be alerted by the O/S as to when a new file is saved to a folder? I guess I am looking for some sort of monitoring functionality. Assuming XP, very simple one. Code: [Select]D:\test>DIR /A-D /B > file1.txt D:\test>dir /A-D /B > file2.txt D:\test>fc file1.txt file2.txt Comparing FILES file1.txt and FILE2.TXT ***** file1.txt ***** FILE2.TXT sdfsdfgsfds sdfsdfdsf ***** |
|
| 1621. |
Solve : Create a batch job which launches winmsd? |
|
Answer» Hello, Hello,Well, that was interesting. Nudged by your question, I ran winmsg /? and saw some options. I tried winmsd xxxxxxxxxxxxx /s /F where xxxxxxxxxxxxx is the name of my computer. I got a REPORT in xxxxxxxxxxxxx.txt I guess that is what you want. To put into c:\abc\def.txt, you could put this in your batch file winmsd xxxxxxxxxxxxx /s /f copy xxxxxxxxxxxxx.txt c:\abc\def.txt erase xxxxxxxxxxxxx.txt In other words, it doesn't appear that the name of the output file is a user-supplied parameter. Mac How did you get this to automatically save (or even open) as a text file? When I run the exact same command: winmsd xxxxxxxxxxxxx /s /f , it just opens up the System Information screen. to get into text I still must select File...Export and then choose a destination. Thanks TrevorWhat version of Windows are you running? In Windows XP, WINMSD has been replaced with MSINFO32. So you can run: Code: [Select]start msinfo32 /report C:\HardwareReport.txtOf course, you can REPLACE "C:\HardwareReport.txt" with the actual file you want the report in. It may take a minute or 2 to create the report, so be patient waiting for the report file to show up Thanks All for your help, I have this working now. Trevor Quote Thanks All for your help, I have this working now. WAIT! Wait! Come back!! How did you get it working??? Mac |
|
| 1622. |
Solve : Batch File Using Computer Time Stamp? |
|
Answer» I have a BATCH file that runs a program and I need it to select the systems date, so I do not have to put the date in everytime. |
|
| 1623. |
Solve : i need fast help? |
|
Answer» i have a LAN computers in my school and the computer class is boring so i WANTED to ask you |
|
| 1624. |
Solve : trace an IP address? |
|
Answer» hi ! all |
|
| 1625. |
Solve : How to close Dos command window? |
|
Answer» Is there an easy way to close a Dos Command window from a batchfile? I made some SMALL batch files to run mspaint.exe, notepad.exe, calc.exe, etc from the Windows Start-Run command LINE. |
|
| 1626. |
Solve : Stack an user entry into a var.? |
|
Answer» I would like to know how to stack a user entry into a var. Something like a choice, but that you put the "answer" of the choice directly into a var instead of USING errorlevels, because i have something like 36 possibilities and that's a lot of if errorlevel == 1 ... . Thank you very much for help. Or, if you have a fastest way than errorlevel == ... It would be greatly appreciated.How about explaining your application. Perhaps by posting a BAT file with magical, imaginary commands that would meet your need. |
|
| 1627. |
Solve : Problem with pipes? |
|
Answer» Hello together |
|
| 1628. |
Solve : running batch files on other computers? |
|
Answer» All, Where is the problem to do this with "at" as a scheduled task? Hi, uli, I hope the OP wasn't discouraged by my post. You are right. AT is already available. HELP AT run from the DOS prompt gives specs. Good catch. I used it for years as a DBA responsible for 15 servers. I could run stuff from my office if all the times were more-or-less synchronized. If they weren't, it was possible to schedule a task for a time that had elapsed. I used http://www.thinkman.com/dimension4/ to ensure times were consistent. Mac |
|
| 1629. |
Solve : Copy a row from file to file? |
|
Answer» I NEED to copy only one row from a text file to another. That's a lot harder! I agree. I have QBasic on my computer, so the following works 1) Create a QBasic program (I NAMED mine z.bas) Code: [Select]CONST File1 = "z1.txt"' This is the file w/many lines CONST File2 = "z2.txt"' This is the file you want to add one to. OPEN File1 FOR INPUT AS #1 LINE INPUT #1, l$ CLOSE OPEN File2 FOR APPEND AS #2 PRINT #2, l$ CLOSE SYSTEM Call it in a batch file like this qbasic /run z Mac |
|
| 1630. |
Solve : Move syntax help (batch file)? |
|
Answer» hi i'm creating a batch file where i wanted to move all html FILES into another folder and then delete it, however i'm having problem with the move syntax. please tell me how to fix it. below is the code, thanks hi i'm creating a batch file where i wanted to move all html files into another folder and then delete it, however i'm having problem with the move syntax. please tell me how to fix it. below is the code, thanks first, create c:\delete with md c:\delete then write move "C:\Program Files\2BrightSparks\SyncBack\*.html" c:\delete that is, with the " signs and afaik this should be it guys i already try Move /y "C:\Program Files\2BrightSparks\SyncBack\*.html" "C:\delete" and Move /y "C:\Program Files\2BrightSparks\SyncBack\*.html" C:\delete none of them works, and i already have a folder name delete in my C drive.For what do you need the /y switch? uliThe /Y switch silences the prompt from displaying "Moving XYZ.ABC" on the screen, thus making the file run more clearly. However, this is a disaster in testing mode. Try the command without the /Y switch. Then check the C:\delete directory to ensure that the file is there. Report back on what happens, along with any error messages. Tip #1 of batch files: Make it work, then worry about hiding the behind-the-scenes details. well ... when i use these [Move "C:\Program%20Files\2BrightSparks\SyncBack\*.html" C:\delete] syntax it give me the error [The system cannot find the path specified.] when i use these [Move "C:\Program%20Files\2BrightSparks\SyncBack\*.html" "C:\delete"] syntax it give me the error [THe system cannot find the path specified] when i use these [Move C:\Program%20Files\2BrightSparks\SyncBack\*.html C:\delete] syntax it give me the error [Invalid Syntax]"C:\Program Files\2BrightSparks\SyncBack\*.html" Why are you inserting %20? Your browser will understand that. Dos will think its part of the directory name. If it doesn't work as typed above, try changing to the CONTAINING directory before invoking the move command. Quote "C:\Program Files\2BrightSparks\SyncBack\*.html" yes, what has the %20 (space) syntax to do with that ? Imho you just go move "C:\Program Files\2BrightSparks\SyncBack\*.html" c:\delete since no quote marks are necessary around delete and if the delete dir exists, either your path isn't quite right, or there really are no html files in C:\Program Files\2BrightSparks\SyncBack\ to move yet |
|
| 1631. |
Solve : Comparing files between 2 drives? |
|
Answer» Hi all, |
|
| 1632. |
Solve : About batch files? |
|
Answer» Hi, |
|
| 1633. |
Solve : Save in a file the screen? |
|
Answer» I need save in a file the commands shown in the screen. i want to save the tree of folders that is shown when i use the COMMAND tree/f . How? if it is possible.tree /f >stuff.txt |
|
| 1634. |
Solve : internet with bat? |
|
Answer» Hi!!!! |
|
| 1635. |
Solve : deltree don't work!? |
|
Answer» PLEASE HELP ME! Win98se doesn't accept 'tree' as a command. HuH ? ? ? Quote QuoteWin98se doesn't accept 'tree' as a command. Clara, you mind explaining that?Well, it was odd but i come back to my problem. Then how i delete a folder with files inside? |
|
| 1636. |
Solve : Colors in command prompt window? |
|
Answer» I am running a DOS program which changes some of the basic 16 screen colors by CALLING int 10H ax=1010h to set the DAC registers for VGA. |
|
| 1637. |
Solve : How do a file.dat?? |
|
Answer» I have to do a FILE dat. |
|
| 1638. |
Solve : auto restart PC when idle? |
|
Answer» Hi, |
|
| 1639. |
Solve : Open Folder From Command Prompt? |
|
Answer» I would LIKE to include a line in my batch file that opens a window of a specific directory. I know that in XP, you can use: Also, just a point: To change directories in DOS, try the "CD" command instead. ("CD" is short for "ChDir".) I am having trouble FIGURING out why you posted this info. I don't see ChDir or CD anywhere in this thread. The subject is START. By the way, START works in WindowsNT. So does Explorer. That was a GOOD suggestion. It will be interesting to see if it helps. It may be that his system cannot do START or Explorer. Mac I posted the info for this reason: Quote When I run this in 2000, it just goes to the folder within DOS. I wanted to point out that there was an easier method of accomplishing the same effect. In retrospect, I probably didn't need to post that info. But it "seemed like a good idea at the time". :-/Actually, the Explorer method did exactly what I needed, since I wanted to open a window and not the diectory in DOS! |
|
| 1640. |
Solve : Permissions to folder? |
|
Answer» Can you please tell me how to set the persmission as everyone to a folder using command line. I want to run a batch FILE and ASSIGN this permission in order to LOG the file. Can you please tell me how to set the persmission as everyone to a folder using command line. I want to run a batch file and assign this permission in order to log the file. I can't figure out what you are talking about. Via Windows, you set shared permission to a folder. Now your bat file produces new files within that folder. Then everyone can access it. Having a lot of trouble with "in order to log the file". What file? What does logging a file have to do with permissions? What? Do you create a new folder every day? Please explain in a LOT more detail exactly what your problem is. There may be a solution. To your general question, as ALREADY responded to by Julius Caesar, there is no DOS command to set Windows SHARE attributes. DOS was invented and completed before Windows was invented. Mac First of all which OS? In (NT, W2k,XP) cmd CACLS is your command to set permissions. hope it helps uli Quote CACLS is your command to set permissions. Good info. I forgot that. Although I still wonder why it has to be dynamic. I would guess you just create a master folder and set permissions manually and forget about it. Mac |
|
| 1641. |
Solve : Autoexec and Config.sys? |
|
Answer» First off, I'll give you a little background on what I am trying to accomplish. I am making a USB Flash Drive bootable and loading it with DOS drivers for all the network cards on our network. The purpose of this being, of course, to run Ghost. |
|
| 1642. |
Solve : How Do I Create Bootable Moveable Drives? |
|
Answer» Installing WINDOWS on Flash USB and ZIP drives. |
|
| 1643. |
Solve : DOS equivalent to UNIX "? |
|
Answer» Hello, |
|
| 1644. |
Solve : Batch File to compare dates? |
|
Answer» It is possible to create a batch file that copy the latest file from a particular folder? If yes pls tell me how... Im a newbie on this. tyIt's easier to let the machine do all the work. You can use the DIR command to sort a DIRECTORY listing in reverse date sequence (newest==>oldest), then process the FIRST file in the list. |
|
| 1645. |
Solve : ms-dos basic help? |
|
Answer» I am trying to instal an old game called betrayal at krondor. To install this game I must USE the command prompt on my windows xp. |
|
| 1646. |
Solve : Command Line Paramters? |
|
Answer» I've got a generic bat file, sasmenow, with four command line parameters. It's got long path strings in it. The four command line paramters, which represent file names and or path-filenames, have some blanks in them. For EXAMPLE the first parameter is 'auth clms'. Is there an escape character that allows the parser to group 'auth clms' while keeping the blank?DOUBLE quotes are what you need: Let me back up and give a more complete picture Use the %~n format of the runtime parameter which will strip away the quotes but maintain the integrity of each parameter. Replace n with the ACTUAL number of the parameter. You may have to insert the leading and trailing double quotes back into the reconstructed string. If you know VB, consider using VBScript for this. You might want to consider sending the parameters fully constructed from the calling program. There is a 255 character limit on runtime parameters; shouldn't be an issue. Or consider using the file shortname. Happy Computing. 8-)Sidewinder, Dat worked great. Thanks. |
|
| 1647. |
Solve : Batch File text export? |
|
Answer» Hello folks, I have my bat file that list files in the directory but I then need to export this list to a txt file and save it. You didn't show your instruction that lists files. I PRESUME DIR *.xxx where xxx is the suffix of files you are interested in. OK, try this DIR *.xxx /b >MyDIR.txt The "/b" is to get rid of extra stuff you don't need. Mac Thanks. That workd great. Just got to do the sql BIT now. Cheers Hey Mac, Doh. When I import this to sql it seems I need to get the full directory listing ie... G:\share\CRS\FTPDownloads\MyFilename.txt The batch file I created is: dir G:\share\CRS\FTPDownloads/b>G:\share\CRS\CDSDataImport.txt This just gives me MyFilename.txt Do you know if this is possible to do? CheersAdd the /s after the /b, this means - search subdirectories, but it will also give you the full path DIR *.xxx /b /s >MyDIR.txt If you do have subdirectories in this folder, then the files in there will be listed too. Graham Cheers Graham. You are a pro!!!!!!!!!! |
|
| 1648. |
Solve : Need User input to select file from other folder? |
|
Answer» FORGIVE me for being such a noob but I was needing some help. What I am trying to do is ask the USER to enter date mm,dd,y(100506) format. Next with that information use the string VARIABLES ex. (100506) look into a directory let's say c:\temp and select files from this folder that have the same string ex.(1005) and COPY all text files to a directory of my choosing. I have found some siliar instances on this board but not quite what I need, can someone help me or POINT me in the right direction, Thnaks cdrtx.Sorry my OS is XP. |
|
| 1649. |
Solve : dir command and size of directories not files? |
|
Answer» All, I am TRYING to use the DIR command to get a list of directories and the size of those directories but not list the FILES. I am using the following command, which will get me the list of directories but not the size and file count. I can get it to do list files and the totals. But what I would like is just the directories and totals. dir \\ad.sannet.gov\DFS\"WF Home"\of???arc /d/s >c:\reports\H\Archive.txt. LET me know. THANKS |
|
| 1650. |
Solve : getting to the proxy settings threw dos? |
|
Answer» i know this is dum but i need help geting to the proxy settings threw DOS. if i can get to them i can set up a proxy server at school and get past the sonic WALL. i think its somewhere in the ping COMMANDS but IM just getting started in dos.Pay a bit more attention during computer CLASS and you might figure out how-to someday. i wish i had a computer class |
|