Jump to content

Worried I copied and pasted something bad into cmd

Go to solution Solved by Allan B,

The command registers all the DLLs in the folder it was run from. 

 

If you did this under "run" or an open command prompt it defaults to your profile (C:\users\firelegend for example) So probably did nothing as there normally aren't any DLLs in that folder.


If you ran it "as admin" you would have been in the c:\windows\system32 folder which would have registered all dlls in that folder.     Not ideal, but also probably not an issue as they are probably registered anyways.  


I would avoid running that in the future, it is very rare you need to manually register a dll, you should uninstall\reinstall a program if there are issues instead of manually trying to fix it.  

Hello,

I was trying to reinstall my dll files and told to put in this command for %1 in (*.dll) do regsvr32 /s %1 do is this right I'm just worried this might've been unsafe or malicious in some certain way?

Any help would be greatly appreciated. 

P.S I have created a restore point just in case 🙂

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, FireLegend said:

Hello,

I was trying to reinstall my dll files and told to put in this command for %1 in (*.dll) do regsvr32 /s %1 do is this right I'm just worried this might've been unsafe or malicious in some certain way?

Any help would be greatly appreciated. 

P.S I have created a restore point just in case 🙂

So if i'm reading that code right it looks through the selected directory and "registers" all the DLLs it finds.

 

Looking at what "registers" means it dosn't seem like a malicious action (not a expert though).

 

What were you trying to do when you found this instruction?

I might be experienced, but I'm human and I do make mistakes. Expand for common PC building advice, a short bio and a list of my components and other tech. I edit my messages after sending them alot, please refresh before posting your reply. Please try to be clear and specific, you'll get a better answer. Please remember to mark solutions once you have the information you need.

 

Common build advice: 1) Buy the cheapest (well reviewed) motherboard that has the features you need. Paying more typically only gets you features you won’t use. 2) only get as much RAM as you need, getting more won’t (typically) make your PC faster. 3) While I recommend getting an NVMe drive, you don’t need to splurge for an expensive drive with DRam cache, DRamless drives are fine for gamers. 4) paying for looks is fine, just don’t break the bank. 5) Tower coolers are usually good enough, unless you go top tier Intel or plan on OCing. 6) OCing is a dead meme, you probably shouldn’t bother. 7) "Bottlenecks" rarely matter and "Future-proofing" is a myth. 8) AIOs don't noticably improve performance past 240mm.

 

useful websiteshttps://www.productchart.com - helps compare monitors, https://uk.pcpartpicker.com - makes designing a PC easier.

 

He/Him

 

I'm a PhD student working in the fields of reinforcement learning and traffic control. PCs are one of my hobbies and I've built many PCs and performed upgrades on a few laptops (for myself, friends and family). My personal computers include 3 windows (10/11) machines and a TrueNAS server (and I'm looking to move to dual booting Linux Mint on my main machine in future). While I believe I have an decent amount of experience in spec’ing, building and troubleshooting computers, keep in mind I'm not an expert or a professional and I make mistakes.

 

Favourite Games of all time: World of Tanks, Runescape, Subnautica, Metroid (Fusion and Dread), Spyro: Year of the Dragon (Original and Reignited Trilogy), Crash Bash, Mario Kart Wii

 

Main PC: https://uk.pcpartpicker.com/user/will0hlep/saved/NByp3C

 

Secondary PC: https://uk.pcpartpicker.com/user/will0hlep/saved/cc9K7P

 

TrueNAS Server: https://uk.pcpartpicker.com/user/will0hlep/saved/m37w3C

 

Laptop: 13.4" ASUS GZ301ZE ROG Flow Z13, WUXGA 120Hz, i9 12900H, 16GB DDR5, 1TB NVMe SSD, 4GB RTX 3050 Ti, TB4, Win11 Home, Used with: 2*ThinkPad Universal Thunderbolt 4 Dock, Logitech G603, Logitech G502 Hero, Logitech K120, Logitech G915 TKL, Xbox Elite Wireless Controller Series 2, Logitech G PRO X Gaming-Headset (with Blue Icepop in Black), {specs to be updated: two monitors}

 

Other: LTT Screwdriver, LTT Stubby Screwdriver, IFIXIT Pro Tech Toolkit, Playstation 1 SCPH-102, Playstation 2 SCPH-30003, Gameboy Micro Silver OXY-001, Nintendo Wii U WUP-001(03), Playstation 4 CUH-1116A, Nintendo Switch OLED HEG-001, Yamaha RX-A4A Black AV Receiver, Monitor Audio Radius (4*90s, 1*200s, 2*270s, 1*380s), TP-Link TL-SG105-M2, Netgear GS308, IPhone 14 Pro Max 128GB Space Black, Secretlab TITAN Evo (Black SoftWeave Plus Fabric), 2*CyberPower BR1200ELCD-UK BRICs Series, Samsung 40" ES6800 Series 6 SMART 3D FHD LED TV, UGREEN USB 3.2 Gen 2 10Gbps M.2 NVMe SSD Enclosure, SABRENT 3.5" SATA drive docking station

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, will0hlep said:

So if i'm reading that code right it looks through the selected directory and "registers" all the DLLs it finds.

 

Looking at what "registers" means it dosn't seem like a malicious action (not a expert though).

 

What were you trying to do when you found this instruction?

I was just trying to make sure I have all the dlls registered

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Murasaki said:

Why are you trying to "reinstall" DLLs? Are you having issues running software?

crossdevice.streaming.source.dll
Came up on my device home screen and thought I needed to update the dll's

Link to comment
Share on other sites

Link to post
Share on other sites

for %1 in (*.dll) do

This runs through all files in the current directory with the extension ".dll" and then executes the command that follows after it, passing the current file name to it in the variable %1

 

regsvr32 /s %1

This registers a DLL-file with the Windows registry (see here). Combined with the first part, it registers all .dll-files in the current directory.

 

Nothing malicious going on, though not sure it's going to fix whatever issue you have.

 

17 minutes ago, FireLegend said:

crossdevice.streaming.source.dll
Came up on my device home screen and thought I needed to update the dll's

What exactly does "came up on my device home screen" mean? Do you mean some error popup mentioning the file or …?

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

The command registers all the DLLs in the folder it was run from. 

 

If you did this under "run" or an open command prompt it defaults to your profile (C:\users\firelegend for example) So probably did nothing as there normally aren't any DLLs in that folder.


If you ran it "as admin" you would have been in the c:\windows\system32 folder which would have registered all dlls in that folder.     Not ideal, but also probably not an issue as they are probably registered anyways.  


I would avoid running that in the future, it is very rare you need to manually register a dll, you should uninstall\reinstall a program if there are issues instead of manually trying to fix it.  

Link to comment
Share on other sites

Link to post
Share on other sites

24 minutes ago, Allan B said:

The command registers all the DLLs in the folder it was run from. 

 

If you did this under "run" or an open command prompt it defaults to your profile (C:\users\firelegend for example) So probably did nothing as there normally aren't any DLLs in that folder.


If you ran it "as admin" you would have been in the c:\windows\system32 folder which would have registered all dlls in that folder.     Not ideal, but also probably not an issue as they are probably registered anyways.  


I would avoid running that in the future, it is very rare you need to manually register a dll, you should uninstall\reinstall a program if there are issues instead of manually trying to fix it.  

Ahh alright cheers!

Link to comment
Share on other sites

Link to post
Share on other sites

28 minutes ago, Eigenvektor said:
for %1 in (*.dll) do

This runs through all files in the current directory with the extension ".dll" and then executes the command that follows after it, passing the current file name to it in the variable %1

 

regsvr32 /s %1

This registers a DLL-file with the Windows registry (see here). Combined with the first part, it registers all .dll-files in the current directory.

 

Nothing malicious going on, though not sure it's going to fix whatever issue you have.

 

What exactly does "came up on my device home screen" mean? Do you mean some error popup mentioning the file or …?

crossdevice.streaming.source.dll this came up on the screen looking like a .bat file but saved as a .dll file

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×