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.
| 1251. |
Solve : Deleting Files more than 3 months old? |
|
Answer» I am trying to fathom out a way of being able to remove files more than 3 months old from a DIRECTORY as part of a housekeeping batch script. |
|
| 1252. |
Solve : Create dynamic directories using date? |
|
Answer» I need to write a script that creates DIRECTORIES based on the current date. When I use the system VARIABLE DATE the slashes are interpreted incorrectly, therefore the new DIRECTORY becomes 3, eg. |
|
| 1253. |
Solve : Powershell find in compare folder A and B and copy? |
|
Answer» I have folder A with files which are compressed and copied to folder B Have you Googled what that might mean? I did, but I get MANY different RESULTS so don't know what it is |
|
| 1254. |
Solve : logging shell output? |
|
Answer» Hi, |
|
| 1255. |
Solve : Copying a file from a folder with today's date to another folder.? |
|
Answer» Hello everyone,
Thanks for the reply. To answer your question, no I will not be needing any info the the stream folder. The stream folder was created to save the daily csv file. I have an excel lookup which checks the daily csv for anomalies. If nothing is found, nothing happens and we move on to the next day. If an ANOMALY is found, an email is sent and we investigate. That's it. Thanks againUnable to test this at my workplace but this should do the trick. I typed this all up off top of my head without testing. Also to NOTE, I have the batch stepping its way to the destination Stream that is to be destroyed and recreated vs a direct target path. A direct target path could be used but this should do the trick. XCOPY was used because your dated folder at c:\monitoring with a positive match to hg200T.csv will create the date-named-folder and copy the file over to this C:\warning\excel\stream location. Code: [Select]c: cd\. cd warning cd excel rd stream /s/q md stream xcopy c:\monitoring\hg200T.csv c:\warning\excel\stream /s/yJust got home from work and tested this on my home computer and forgot to add wildcard * which corrects for the ever changing folder name that is date named. Here is it corrected and cleaned up: Code: [Select]rd c:\warning\excel\stream\ /s/q md c:\warning\excel\stream xcopy c:\monitoring\*hg200T.csv c:\warning\excel\stream /s/y |
|
| 1256. |
Solve : why does this code output such result? |
|
Answer» code: |
|
| 1257. |
Solve : Exclude folders from XCOPY instead of just file names?? |
|
Answer» I have used EXCLUDE before to avoid XCOPY'ing certain FILES. But am trying to figure out if there is a way to EXCLUDE folders by Folder Name or not. /EXCLUDE:file1[+file2][+file3]... Basically I want to xcopy the contents from My Documents and exclude the following folder names Quote DYMO LABEL I know that I can just write a batch pointing out exactly what to grab, but as folders are added this will mean that I'd have to edit my batch accordingly to grab those as well. So I figured I'd check to see if there was an Exclude Trick to target Folder Names to exclude from xcopy's scope? I suppose I could also perform a wildcard exclusion such as *.jpg *.mp3 etc to avoid certain file types from being targeted that are in those locations. And if there is no way to exclude by folder names I MIGHT just have to create a wildcard listing of file types to exclude. Trying to remember how I did that a while back... I think it was like Quote xcopy *.* e:\*.* /s/d/y/exclude:<Exclusion_List.txtto read in exclusion list text file and process, and exclusion list was like this format of 1 line per exclusion Quote *.jpgSo why aren't you using this for your exclude? \DYMO LABEL\ \My Music\ \My Pictures\ \My Videos\Adding Quote \DYMO LABEL\ in Exclusion_List.txt with instruction of Quote xcopy *.* e:\*.* /s/d/y/exclude:<Exclusion_List.txt Still copies the folders and contents to E: when run from My Documents where the listed folders are within scope deeper ( My Documents\My Music\... etc ) Quote from: DaveLembke on July 30, 2012, 07:52:30 AM xcopy *.* e:\*.* /s/d/y/exclude:<Exclusion_List.txt Try that without the redirection character. Quote from: foxidrive on July 30, 2012, 08:03:47 AM Try that without the redirection character.Yeah, what possessed you to use the < with that command. Gonna give that a try... redirector got stuck in there because I have been playing in MYSQL prompts with batches for too long... sort of same issue I had way back when between DOS and Linux command prompts and / and \ ..LOL Still an issue... its still grabbing folders that are unwanted with Quote xcopy *.* e:\*.* /s/d/y/EXCLUDE:Exclusion_List.txt hmm... Exclusion_List.txt file has just this in it and verified spelling and case even though case shouldnt matter if file name matches "Exclusion_List.txt" in DOS shell, so its not missing it due to any naming typos. Quote \DYMO LABEL\ Both the batch file and the exclusion text file are in same location, so it should read in contents to exclude from UPDATE: Also tried Quote "\DYMO LABEL\" to see if the spaces in folder names were causing the issue... Also tried this pull path in text file to point directly with wildcards to relate all files to exclusion at unwanted folders, even though should be unecessary to have to point exclusively full paths to exclude, as well as account for spaces in folder names by encapsulating it with " " and still having folders and files which should be ignored xcopied across. Quote "C:\Documents and Settings\Dave\My Documents\DYMO LABEL\*.*" It works fine. Put this batch file in a folder with a few files and a couple of folders and run it. In my test it ignores every folder and file under .\abc\ Code: [Select]echo off md "abc\DYMO LABEL\" md "abc\My Music\" md "abc\My Pictures\" md "abc\My Videos\" echo abc>"abc\DYMO LABEL\abc.txt" echo abc>"abc\My Music\abc.txt" echo abc>"abc\My Pictures\abc.txt" echo abc>"abc\My Videos\abc.txt" ( echo \DYMO LABEL\ echo \My Music\ echo \My Pictures\ echo \My Videos\ )>Exclusion_List.txt xcopy *.* c:\def\*.* /s /d /y /EXCLUDE:Exclusion_List.txt pause It is not matching the leading back slash because you were running the command from the ROOT of the My Documents folder. Thanks for all your help everyone. Getting my 2 typos worked out fixed it! Quote DYMO LABEL\ I personally would do it this way otherwise you are copying over the exclude file and the batch file if you are using a batch file. Code: [Select]xcopy "My Documents\*.*" H:\backup /s /d /y /EXCLUDE:Exclude.txtThen you can use the leading back slash for the Exclude file.I'm doing something similar, but want my .bat file to live in a different directory. This script seems to work in a test case. Are there any problems with it? Code: [Select]echo C:\Users\JT\Documents\Scan\abc\>Exclusion_List.txt xcopy C:\Users\username\Documents\Scan\*.* B:\def\*.* /s /d /y /EXCLUDE:Exclusion_List.txt pause Thanks |
|
| 1258. |
Solve : Modify MS-DOS application. exe (without source code)? |
|
Answer» To all masters, Nobody is going to decompile a clipper application for you for free. There's always Stack Exchange... Quote from: patio on August 10, 2019, 02:36:19 PM This is your source code and you want to modify it ? ? this is not my source code and I ask for help for modification Quote from: BC_Programmer on August 10, 2019, 03:37:02 PM Nobody is going to decompile a clipper application for you for free. There are companies that still make a good margin simply offering that service. Why would anybody do it for you for free? Learn to pronounce fine i will pay |
|
| 1259. |
Solve : Extracting old files created with MSBACKUP? |
|
Answer» I have a series of 3 very old archived files (created in 1994) which I believe were made with the MSBACKUP utility. At least, I ASSUME so, as the file headers read "NORTON VER 1E", and that's what research tells me. |
|
| 1260. |
Solve : batch file run from task scheduler runs in background. Google was no help? |
|
Answer» I have a game server that that's launched from a .bat file. |
|
| 1261. |
Solve : i didnt know where to put this so...? |
|
Answer» BASICALLY.. |
|
| 1262. |
Solve : Get error: program to big to fit in memory? |
|
Answer» Does anyone know how i can fix this problem and start the program. yeah i have 256 meg of ram and i am running the prompt in windows xp At the prompt, type "mem" (without the "). 640K is largest executible program SIZE. Adding memory will do nothing to help. CC, you are still in the days DOS 3. Do you really THINK anything runs now in 640K?WEll is there another way i can allocate more memory or is there another disk operating SYSTEM that i can use to open this fileIf this is a DOS app, you will need to use the compatibility wizard or make a couple of small FAT32 partitions exclusively for DOS 7 (DOS from Win9x) to run the app in a separate bootup environment. A partition manager and a second hard drive are very much recommended here if you decide to use the separate OS. Or you could use Linux and an appropriate command-line shell...how do i partition a file for fat32 if i am running a ntfs file systemIf you have a PowerQuest PartitionMagic, you can knock back a couple of gig on your hard drive and mount a DOS 7 primary partition, then access it with the boot manager. You mount your game so it runs from the DOS partition. If you get an old 8 to 20 GB HD, you can mount it and partition it as your second HD and either make it all FAT32 for DOS7.1 and (optionally) Win98, or you can make it a few GB for DOS and the re3st NTFS for your main OS... |
|
| 1263. |
Solve : How to fix command output into variable? |
|
Answer» Hi! |
|
| 1264. |
Solve : Wait Process Window to be Activate? |
|
Answer» I'm using a powershell script: What do you mean "be activate"? Hi, i mean wait to the window process show in the screen.Clear as MUD... Quote from: PATIO on September 15, 2019, 08:06:15 AM Clear as Mud... Sorry Code: [Select] Start-process c:\test\window.exe It's as login window, that take a while to appear depending on HARDWARE. |
|
| 1265. |
Solve : WIN/BATCH Help with batch program for updating library? |
|
Answer» Hello |
|
| 1266. |
Solve : Hostname to nslookup via batch file? |
|
Answer» Hello, |
|
| 1267. |
Solve : Batch Advice? |
|
Answer» I am a desktop administrator and I am using c$ all day in order to backdoor into devices on our domain. I am trying to create a batch file that will speed up this process and honestly would like to just learn a little bit more on this and what I have available to me. I want the script to prompt for the Host Name of the DEVICE that I am trying to backdoor into then ask for the administrator password. I am utterly failing at making this work, any help or advice would be greatly appreciated. How did you get this job ? ?Instead of looking to write a batch file to do what you are typing etc. Why not use a macro recorder and let it do the repetitive things you do each day. Quote from: patio on September 30, 2019, 08:52:08 PM How did you get this job ? ? You realize that I can be a desktop admin and not know coding right? I can also just go ahead and report you for being assinine. If you have no intelligent comment maybe just IDK stop typing?I posted on this forum because after reading a couple posts it looked like a helpful and intelligent GROUP of people looking to genuinely help people learn and write scripts/powershell and stuff like that. I honestly think people are just on here now to flame others. Thanks, but no thanks. Legit first post and a moderator comes in and tries to invalidate my work ethic and job. I went out wanting to learn more, that kind of behavior is childish as *censored*.Your use of the term backdoor was probably the trouble, as a backdoor is generally an *unauthorized* way of gaining access to a system- like a secret password left in by a developer so they can muck about if they get fired or whatever. The concern was, I think, that you were accessing remote systems without authorization. Presumably that is not what you mean. You should be fine to use the net use COMMAND \\Host\C$ /user: ...Not sure what you intend to automate. I suppose, you could have a script prompt for the username/pass/hostname first? Code: [Select]echo Enter Host Name to connect set /p useHost= echo Enter username set /p useUser= echo Enter password set /p usePassword= net use \\%useHost%\C$ /user:%useUser% %usePassword% explorer \\%useHost%\C$ If the username is the same across them (Administrator for example) You could remove the prompt and have it only ask for the password. net use probably returns an errorlevel if it fails as well in which case it would be reasonable to not run explorer trying to load up the share folder too, but this is the basic idea.Given the stated task i asked my question because it would have been part of your job DESCRIPTION... If i offended you i apologise but i think you are in over head... Best of luck. Quote from: patio on October 01, 2019, 07:10:40 PM Given the stated task i asked my question because it would have been part of your job description... I am a desktop administrator....I replace keyboards, troubleshoot systems...I am honestly just dabbling in programming and what not to try to learn. I'd just watch how you talk to people because it kinda sucks to be shut down when you are trying to learn something. Quote from: BC_Programmer on October 01, 2019, 10:08:56 AM Your use of the term backdoor was probably the trouble, as a backdoor is generally an *unauthorized* way of gaining access to a system- like a secret password left in by a developer so they can muck about if they get fired or whatever. The concern was, I think, that you were accessing remote systems without authorization. Presumably that is not what you mean. I'll give this a shot. Yeah, I use backdoor freely. At work I am constantly sending files to and from devices. It's just easier to prompt for admin password and pc name and let me right into the c drive. Makes life easy. Time to study.So I think I FIGURED it out. It's running in a batch script and asks for just my password. Feels good. I really appreciate the help with this. Saves me a very small amount of time...but it was a lot of fun. Sorry for getting upset it's just that this was my first real attempt and it felt like I was just getting pointed at and laughed at lol. Either way, page bookmarked. |
|
| 1268. |
Solve : Auto Center Vbs Window? |
|
Answer» Hello to all, |
|
| 1269. |
Solve : batch close after powershell script? |
|
Answer» Hello all, I need some help with this : |
|
| 1270. |
Solve : How to escape special characters on InputFile with Drag and Drop ?? |
|
Answer» Hi |
|
| 1271. |
Solve : Batch file: Deleting duplicate files within similar folder structures? |
|
Answer» Create a batch file to only delete DUPLICATE files (same filename, date/time) in the same relative FOLDER location. New folder\files along with the .bat file are placed here: \TEST\NEW\. Old files are in \TEST\OLD\. |
|
| 1272. |
Solve : DVD will not work in DOS? |
|
Answer» How do I get MS-DOS to see DVD player? I have two drives. One with Windows 10, and the other drive with MS-DOS. My DOS drive is labeled drive E. At C PROMPTED, I cannot change to E prompt. It WOULD say "Invalid drive". Simple answer is that you don't. MSCDEX or Microsoft CD-ROM Extensions is a software program produced by Microsoft and included with MS-DOS 6.x[1] and certain versions of Windows to provide CD-ROM support.[2] Earlier versions of MSCDEX since 1986 were installable add-ons for MS-DOS 3.1 and HIGHER.[May I snuggest a quick workaround ? Copy DVD files to USB stick and take it to the MS-DOS PC.Generic CD-ROM drivers such as OAKCDROM.SYS work for DVD drives and you can in fact read most DVDs from within DOS.Thanks for the help. That's good information for me. Hi Alan, You don't say what machine the dvd is in and what connection on the motherboard you are using if it is sata you will need gcdrom.sys from here http://help.fdos.org/en/hhstndrd/base/gcdrom.htm Your harddrive will need a config.sys file and autoexec.bat file and have the lines ADDED shown on that page.Hi. This is a home-built machine. The DVD is an ASUS SATA. The motherboard is an ASUS Prime X370-PRO. Then you will need gcdrom.sys As per the website |
|
| 1273. |
Solve : if and else routine returns an error? |
|
Answer» echo off VBScript ("Microsoft Visual Basic Scripting Edition") is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It allows Microsoft Windows system administrators to generate powerful tools for managing computers with error handling, subroutines, and other advanced programming constructWikipedia › wiki › VBScript Here is a introduction: https://www.guru99.com/introduction-to-vbscript.html IMHO, using Vb Script is abetter choice for most users. |
|
| 1274. |
Solve : How to boot to DOS from diskette reading HDD config?? |
|
Answer» HI! I'm using MS-DOS 7.10 and want to boot into by floppy disk. I tried to modify AUTOEXEC.BAT on floppy to use commands and software from harddisk, but it is always using floppy commands and software. How is possible to boot DOS from floppy but reading harddisk config? I know that is possible to fix booting from HDD by SYS C: command, but I need to leave on HDD GRUB and untouched. Or: is possible to fix GRUB that will correctly enter DOS? It always reports error on item CREATED for DOS. Thank you for understanding. MiroSetting up a fully working DOS system will give you great appreciation for how far computing has come. For old-timers, it will be a walk down memory lane; for youngsters who've never used nor even SEEN DOS before, it should be quite an eye-opening experience to experience first hand both how primitive DOS was and yet how capable it could be. Quote from: tinamonday on October 04, 2019, 11:42:03 AM Setting up a fully working DOS system... bla bla bla... How does that answer the question? Here is video tutorial about how to install DOS 7.1 from you tube. https://www.youtube.com/watch?v=N2SPlHzAcSI That should answer his questions. You can set the PATH variable to point to folders on C: He has refused to get a legit version of DOS 6.2 to work with...thats why i stopped volunteering information. Just sayin. Quote from: patio on October 05, 2019, 08:29:33 PM He has refused to get a legit version of DOS 6.2 to work with...thats why i stopped volunteering information. Just sayin.Good point. For anybody that WANTS to do DOS programming and does not want to pay for it, he ought to consider using a Free version of DOS. https://en.wikipedia.org/wiki/FreeDOS Quote FreeDOS (formerly Free-DOS and PD-DOS) is a free operating system for IBM PC compatible computers. It intends to provide a complete DOS-compatible environment for running legacy software and supporting embedded systemIt is compatible with with Windows. It can be used for almost any job that would require MS-DOS.He just has to add this line to the autoexec.bat on the boot floppy, assuming he has a standard MS-DOS layout on the C: drive, with system executables in C:\DOS: PATH C:\;C:\DOS Really, this is so elementary that a child could find it out. |
|
| 1275. |
Solve : Need help with choice and if? |
|
Answer» hey, |
|
| 1276. |
Solve : copy folder with latest time stamp using batch file? |
|
Answer» Hello, |
|
| 1277. |
Solve : DOS does not see modem? |
|
Answer» We are running Windows 98 on a Novell network, and need to use a DOS program to dial into a voice mail system to trouble shoot it. I have checked the settings, and the COM ports are correct, and I can reach the modems from windows, but when I try to reach them from DOS nothing happens. I did an echo atdt12345 > Com1 and it would just give me a DOS prompt.Here, check this out: http://www.gemtree.com/download/terminal.exeYou might want to also use HyperTerminalThere are probably still places where you can get simple DOS terminal programs like ProComm, Omen, or RoboCom to use in DOS and ACCESS your modems. |
|
| 1278. |
Solve : HIt says "Program too big to fit in memory.&q? |
|
Answer» ;Hey! First time here. I just have a problem wtih MS-DOS. Well, my friend downloaded a game off the internet call Sims Superstar and he called me for help to work the program. :-/ You have to open it in DOS. I click on it and a black window comes up and it shows the message Program to big to fit in memory for a split SECOND. :-/ :-/ I click on it some more and it still displays the same message. Is there a way to open the program with another way except for DOS? Maybe you can help me edit some info to work the program. THANKS! Try upgrading your memor, or using the keyboard interface instead of mouse interface.What does that mean? How do i do those THINGS? I have no idea about this, but try using extended memory, or run emm386.exeThe following should be part of your Config.SYS file: |
|
| 1279. |
Solve : Batch file and rename junctions? |
|
Answer» Hello everyone, |
|
| 1280. |
Solve : Command Line to get the PRODUCT ID of Dell/Acer notebooks?? |
|
Answer» Hello, About unique product identifiersWho told you that DOS would give it? It is s not a DOS thing. Who wants to know? If the DEVICE is yours, you should already know. Did you steal a laptop and want pretend it is yours? My resown for saying that is the fact that so many come here thinking we have secret INFORMATION about how to hack a computer. But you are not doing that - Right? We will help you if we understand what you need. Tell us who needs to know. For ACER notebooks, the PRODUCT ID (SKU) is a left sub-string of its SerialNumber. So, the DOS command line is: wmic bios get serialnumber Code: [Select]NXH62EZ00794700B346600 The PID is: NX.H62EZ.007 Product ID is well described here: https://youtu.be/_N8BfdCvMRgTake the 10 left characters (of the SN) and add dots. PID is NX.H62EZ.007 |
|
| 1281. |
Solve : Batch program seems to be looping endlessly? |
|
Answer» Created a batchfile that seems to be entering an endless loop and am not sure why. Have you ever done batch files before? Told you I was bad at this. As far as Code: [Select]if %ERRORLEVEL% == 3 GOTO EXITin the first batch file if i select 3 and press enter the batch file will begin executing at :EXIT What follows is merely conformation to exit the batch file.In other languages the IF state rests fir a deterministic truth has has one meaning. In BATCH, the error level is more like a maybe test. I is like asking "How bad was the error?" The answer might not be a direct specific answer. Instead, it rates the error on a scale of bad to worse. Here I am not going to use exact syntax. The is not the point. Q. "Hey batch, how bad was the error. As much as a one? A. if error-level = 1 "Yeah, I can say that it would be. Q. "Hey batch, how bad news in error. As much as a two? A. if error-level = 2 "Yeah, I can say at least a 2.". Q. "Hey batch, how high was the error. MAYE a three?" A. if error-level = 3 "I will say thee, if not more." Q. "Hey batch, did you get error. Up to four?" A. if error-level = 4 "Four for sure, less I don't see." Get it? READ over the examples is samples in the tutorials. BATCH is not like any other task control tool. In your :DRIVEE label you change the current directory, but you do not change it back before you return to MAIN, so I'd wager it cannot find cmdmenusel anymore so you get stuck in an infinite loop. I think that may be the case for your second batch file as well. I'd suggest that you use PUSHD to change to the sysinternals directory, and then before you return you use POPD. I don't think Geek-9pm's COMMENTS are relevant, as he is thinking of a slightly different construct ("IF ERRORLEVEL X ") which is not what you are using. I stand corrected. No excuse. Quote from: BC_Programmer on February 10, 2020, 06:46:33 PM In your :DRIVEE label you change the current directory, but you do not change it back before you return to MAIN, so I'd wager it cannot find cmdmenusel anymore so you get stuck in an infinite loop.Thanks, BC_Programmer, for the tip. It worked perfectly. I deleted the CD line and added the path to the call statement. Can also work if I place the needed batch files in the same directory. |
|
| 1282. |
Solve : Need Help extracting specific data from a txt file and using it is cmd argument? |
|
Answer» All, Number - 12345This data is in a txt file that is created by another program. Basically the upgrade itself will create this text file. Use tokens 1* with the dash as the delimiter, for each line, and use the * token for your fields, all except the last (hint: it starts "Timestamp") where you do another for /f on the second token, using 1* with the space as the delimiter, and take the first token. (1) input.txt Number - 12345 Version - 1.02.03.4567 Name - Software name Status - Upgrade completed successfully Message - success Timestamp - 2019-12-11 17:12:45.188 (2) batch script echo off set filename=input.txt for /f "tokens=1-2* delims= " %%A in (' type "%filename%" ^| find "Number" ') do set number=%%C for /f "tokens=1-2* delims= " %%A in (' type "%filename%" ^| find "Version" ') do set version=%%C for /f "tokens=1-2* delims= " %%A in (' type "%filename%" ^| find "Name" ') do set name=%%C for /f "tokens=1-2* delims= " %%A in (' type "%filename%" ^| find "Status" ') do set status=%%C for /f "tokens=1-2* delims= " %%A in (' type "%filename%" ^| find "Message" ') do set message=%%C for /f "tokens=1-3 delims= " %%A in (' type "%filename%" ^| find "Timestamp" ') do set mydate=%%C echo number: %number% echo version: %version% echo name: %name% echo status: %status% echo message: %message% echo mydate: %mydate% (3) script output number: 12345 version: 1.02.03.4567 name: Software name status: Upgrade completed successfully message: success mydate: 2019-12-11thank you. This worked perfectly. |
|
| 1283. |
Solve : How to get all key/value from WMIC command?? |
|
Answer» On my Asus ZenBOOK S13 UX392FN, this command: wmic computersystem GET systemskunumber outputs this: |
|
| 1284. |
Solve : Merging tab delimited fields across two files? |
|
Answer» Howdy, |
|
| 1285. |
Solve : CMD window doesn't close after batch script executes? |
|
Answer» I call several batch SCRIPTS from a master batch script (that I USE for maintenance) without any issue but there is this one script that will not exit when it's done running and I don't know why. When I simply RUN the script it does exactly what I expect it to do - it executes and then exits when it is done running (CMD window closes). When I call the script from my master script it executes (in a separate window, which is what I want) but its CMD window doesn't close. |
|
| 1286. |
Solve : Custom File Names Based on Folder Names, possible?? |
|
Answer» Hi, |
|
| 1287. |
Solve : Topic: Batch file to rename basted on other filename before move new dest.? |
|
Answer» Like to CHANGE my Batch file from rename/stripping filename (today below) to COPY the filename complete from an existing movie file (which can be .avi, .mov, .mp4) which always get dropped as pair in a folder under “Temp” before I move the JPEG-file away. |
|
| 1288. |
Solve : FFmpeg combines videos without re-encoding? |
|
Answer» Take MP4 as the video format to do operations. |
|
| 1289. |
Solve : how to select folder with latest time stamp using batch script? |
|
Answer» Hello everyone, |
|
| 1290. |
Solve : Find a value in column 1 of a txt file and assign value in column 2 to a var? |
|
Answer» I have GETPCName.txt that contains two columns |
|
| 1291. |
Solve : How can I get the DVD device type into variable? |
|
Answer» Hello! |
|
| 1292. |
Solve : sort paragraphs? |
|
Answer» HELLO. USING Windows 10. I need to SORT paragraphs in a text document by the 2d LINE in the paragraph. Is there a command line sort command to do that? I did find a program called CMsort but don't SEE if it can sort paragraphs. |
|
| 1293. |
Solve : Batch expert needed file cannot be for looped because of first symbol? |
|
Answer» I'm having a bit of an issue in the LINK there is a text FILE and you will notice that first character is unknown symbol and after batch tries to for loop it only copies that first character and stops there. |
|
| 1294. |
Solve : Help needed with this batch file? |
|
Answer» Firstly I want to make it clear that I have no EXPERIENCE in this. Using Win 7 x64. I'm playing a game and somehow another program called Netlimiter is interfering with the game's online. With some experimentation, I figured out that if I close Netlimiter before starting the game, then start the game, then start that program again by Alt+Tab-ing to the DESKTOP -- then the game runs fine. I don't know of any way to execute a batch file without it taking application focus.No, actually it's not the batch file taking focus. As you can see that I'm using it to run the game as well, thus it automatically switches to the game window. The issue is that in the last line where Netlimiter starts again in the system tray, my game window minimizes to desktop for whatever reason. I read that it only takes app focus if the app has a window which isn't the case here, so Idk why it's happening. But anyway, if somehow the focus could be brought back to the game, then that's all I'm looking for.Sorry, what I meant was, I don't know of any way to start a program from the command line (or a batch file) which can specify that the new program should not take focus. However, VBS allows you to do that. So if you refactor your batch file as a VBScript, it might do what you want. Ultimately however the application is going to decide whether it's focused or not. If there's code in Netlimiter that specifically takes control of application focus, you're probably just gonna have to live with it. |
|
| 1295. |
Solve : Batch to list if some folder is missing two especific files? |
|
Answer» Hi guys, I would like help to CREATE a batch script. |
|
| 1296. |
Solve : access denied via batch? |
|
Answer» in windows 10... |
|
| 1297. |
Solve : Batch File Q: Please Help Me!? |
|
Answer» This will probally seem like a stupid question to any experienced dos user, but I need to know if it is possible for a batch file to answer prompts in a program. I want to create a batch file that will start a dos program (called rmovave) and answer the prompts so the program will run without me having to type in the same paramaters over and over. The program, rmovave, will not accept an answer file or I'd fix it that way. Maybe what I want to do isn't possible? It seems like it should be. Please help me as I have several hundred files to run through this program (and three others after that!!). Thanks.If you are using XP or 2000 try: |
|
| 1298. |
Solve : window log files? |
|
Answer» hey guys i know that our data is being SEND to Microsoft in log file but don't know how to see that log file can some buddy help me to solve this PROBLEM. i am not talking about the log files present in the computer MANAGEMENT but the log files which is being send to the Microsoft i have seen that log file in an CYBERSECURITY seminar please help me Hi |
|
| 1299. |
Solve : Boot installed MS-DOS from diskette? |
|
Answer» Hi! |
|
| 1300. |
Solve : Assign Variable for use by tokens statement in Windows 7 batch file? |
|
Answer» Hello, |
|