[Solved] How can I find the source code for a website using only cmd?

You could use the Microsoft.XMLHTTP COM object in Windows Scripting Host (VBScript or JScript). Here’s a hybrid Batch + JScript example (should be saved with a .bat extension): @if (@CodeSection == @Batch) @then @echo off & setlocal set “url=https://www.faa.gov/air_traffic/flight_info/aeronav/digital_products/vfr/” cscript /nologo /e:JScript “%~f0” “%url%” goto :EOF @end // end Batch / begin JScript var xhr … Read more

[Solved] How can I delete the Windows.old directory? [closed]

It’s pretty simple to remove: Click in Windows’ search field, type Cleanup, then click Disk Cleanup. Click the “Clean up system files” button. Wait a bit while Windows scans for files, then scroll down the list until you see “Previous Windows installation(s).” Select Previous Windows installation and anything else you want to remove and select … Read more

[Solved] How to create folders and files from text file with same names to insert with corresponding name?

It doesn’t make any sense to generate text files and then folders to move the files to. Create the folders first place and create the files into the folders. Using a (code block) only one for loop is needed. @echo off setlocal for /f “tokens=*” %%a in (comps.txt) do ( if not exist “%%a” mkdir … Read more

[Solved] Why cannot install python package by cmd [closed]

You can use pip install directly after adding C:\Program Files\Python37\Scripts to the environment PATH variable in windows. Note: The path C:\Program Files\Python37\Scripts is where pip.exe is installed or present on your computer based on Pythong version. 1 solved Why cannot install python package by cmd [closed]

[Solved] how to use batch file variable within text file?

Based upon my understanding of your question, you could try: @For /D %%A In (“C:\input\*”)Do @( (Echo path=C:\Metadata_input\%%~nxA\ Echo elec_path=C:\OHD\%%~nxA\)>”C:\file_move.txt” Call “E:\FileMoving_run.bat” –context=Default –context_param prop_file_move=”C:\file_move.txt” ) @Del “C:\file_move.txt” 6 solved how to use batch file variable within text file?

[Solved] Batch program not starting on Windows 10 [closed]

Batch Label should be defined as :desktop as opposed to desktop: and syntax for taking input from user is set /p desktopoptions= “Enter choice” ^Note the space after equals sign. while your code p /set desktopoptions= and there’s no such command named ‘quit’. I’d recommend if %desktopoptions%==1 goto serverstart if %desktopoptions%==2 goto exit :exit cls … Read more

[Solved] Download and run files using PowerShell [closed]

To answer part of your question: Using Invoke-WebRequest you can feed it a url and use the parameter -OutFile to send it somewhere locally on your machine, example: $url = example.com/somefile.jpg Invoke-WebRequest $url -OutFile C:\output\somefile.jpg This will download the somefile.jpg from example.com and save it in C:\output\ on your machine https://msdn.microsoft.com/powershell/reference/5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest 7 solved Download and … Read more

[Solved] How to do 2 commands at the same time using batch

With if exist use the variableNAME, not the variable itself (no %) Your line if not defined %answer% echo Not an acceptable answer & goto READYTOBEGIN? is parsed (because %answer% is empty) as: if not defined echo Not an acceptable answer & goto READYTOBEGIN? echo is also not defined (probably), so the command to be … Read more