help me w/ cmd prompt- invalid argument/option- 'Files\....\...'

minnow666

New member
Local time
6:37 PM
Messages
3
because of something unknown AVG stopped working for me, and i can't uninstall it normally because some files were missing... now i am trying to just delete everything manually in command prompt, except access is denied, so i must run a takeown command and a cacles command (? right).

k, so here's the problem:

when in command prompt i type... takeown /f c:\program files\avg\avg2012\avgsysx.dll

it returns with ERROR: Invalid Argument/Option - 'files\avg\avg2012\avgsysx.dll'

i am assuming that it's because there is a space in program files, i've tried typing it as c:\program_files\.... and c:\program%files.... but neither works... anybody? anything?

thanks p
 

My Computer My Computer

At a glance

Windows 7 professional 32bitintel Atom??
Computer Manufacturer/Model Number
Acer Aspire One
OS
Windows 7 professional 32bit
CPU
intel Atom
Motherboard
?
Memory
?
Graphics Card(s)
?
Sound Card
?
Monitor(s) Displays
?
Hard Drives
/
PSU
?
Case
?
Cooling
?
I've never used takeown, but...

are you trying to run this from c:\ ?????

can you instead navigate (change directories) to a prompt at C:\program files\avg\avg2012 and then just run takeown /f avgsysx.dll?

Or can you temporarily move or copy avgsysx to c:\temp and then run the command and then copy it back to avg folder if necessary?
 

My Computer My Computer

At a glance

Windows 7 Home Premium SP1, 64-bitIntel Skylake i5-6600K, not overclocked8 GB HyperX DDR4-2666 (2 x 4 GB)none; graphics are integrated on CPU
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Ignatz Special; 4 speed manual gearbox; factory air conditioning; one of one
OS
Windows 7 Home Premium SP1, 64-bit
CPU
Intel Skylake i5-6600K, not overclocked
Motherboard
AsRock Z170M Extreme 4, micro ATX
Memory
8 GB HyperX DDR4-2666 (2 x 4 GB)
Graphics Card(s)
none; graphics are integrated on CPU
Sound Card
onboard: Realtek ALC1150; external: USB Behringer UF0-202
Monitor(s) Displays
Dell S2340M 23 inch IPS
Screen Resolution
1600 x 900
Hard Drives
System: Crucial MX100 series SSD, 128 GB;
Data: Samsung Spinpoint 103SJ, 1 TB;
Backup: WD Caviar Green WD30EZRX-00D8PB0, 3 TB
PSU
Rosewill SilentNight 500 watt fanless, semi-modular
Case
Antec Solo II
Cooling
Noctua NH-U12S; Noctua F12 intake, Noctua S12A exhaust
Keyboard
Microsoft 200 6JH-00001 USB
Mouse
Dell or Microsoft optical wired; USB
Antivirus
Microsoft Security Essentials and Malwarebytes Premium
Browser
Pale Moon
Other Info
All fans PWM; speeds at idle: CPU circa 500 rpm; intake circa 600 rpm; exhaust circa 600 rpm; CPU temps 27 idle and 47 C load in a warm room (27 C/81 F) when running Intel Extreme Tuning Utility stress test.
takeown /f c:\program files\avg\avg2012\avgsysx.dll

On the command line if a path has any spaces in it, you have to wrap it in double quotes.
For example to run c:\program files\myprog.exe from the command line I have to type
"c:\program files\myprog.exe"

Note the double quotes.
takeown /f "c:\program files\avg\avg2012\avgsysx.dll"
 

My Computer My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Thanks for that, Miles. I've never heard of that and never been in such a situation.
 

My Computer My Computer

At a glance

Windows 7 Home Premium SP1, 64-bitIntel Skylake i5-6600K, not overclocked8 GB HyperX DDR4-2666 (2 x 4 GB)none; graphics are integrated on CPU
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Ignatz Special; 4 speed manual gearbox; factory air conditioning; one of one
OS
Windows 7 Home Premium SP1, 64-bit
CPU
Intel Skylake i5-6600K, not overclocked
Motherboard
AsRock Z170M Extreme 4, micro ATX
Memory
8 GB HyperX DDR4-2666 (2 x 4 GB)
Graphics Card(s)
none; graphics are integrated on CPU
Sound Card
onboard: Realtek ALC1150; external: USB Behringer UF0-202
Monitor(s) Displays
Dell S2340M 23 inch IPS
Screen Resolution
1600 x 900
Hard Drives
System: Crucial MX100 series SSD, 128 GB;
Data: Samsung Spinpoint 103SJ, 1 TB;
Backup: WD Caviar Green WD30EZRX-00D8PB0, 3 TB
PSU
Rosewill SilentNight 500 watt fanless, semi-modular
Case
Antec Solo II
Cooling
Noctua NH-U12S; Noctua F12 intake, Noctua S12A exhaust
Keyboard
Microsoft 200 6JH-00001 USB
Mouse
Dell or Microsoft optical wired; USB
Antivirus
Microsoft Security Essentials and Malwarebytes Premium
Browser
Pale Moon
Other Info
All fans PWM; speeds at idle: CPU circa 500 rpm; intake circa 600 rpm; exhaust circa 600 rpm; CPU temps 27 idle and 47 C load in a warm room (27 C/81 F) when running Intel Extreme Tuning Utility stress test.
Thanks for that, Miles. I've never heard of that and never been in such a situation.

That's one of my Windows pet peeves is spaces in paths. Makes for a lot of messy programming. But we're stuck with it. Might be a good trivia question what version of Windows/Dos first allowed spaces in paths? :)

I don't remember myself it's been so long.
 

My Computer My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Sometimes you need to use multiple sets of double quotes (").

For example, if the path has spaces AND you wish to execute a program with switches (I think this is the correct syntax. I can't find the batch file that I had to do this in):
cmd /k ""path\program.exe" switches"
 

My Computer My Computer

At a glance

W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, ...AMD Phenom II x6 1100T, 3.3 GHz12GB DDR3 1333 G-Skill (4GB x 2), G-Skill (2G...NVIDIA GeForce GTX 660
Computer type
PC/Desktop
Computer Manufacturer/Model Number
n/a
OS
W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
CPU
AMD Phenom II x6 1100T, 3.3 GHz
Motherboard
ASUS M4A88T-M/USB3 (AM3)
Memory
12GB DDR3 1333 G-Skill (4GB x 2), G-Skill (2GB x 2)
Graphics Card(s)
NVIDIA GeForce GTX 660
Sound Card
Realtek?
Monitor(s) Displays
Samsung S23B350
Screen Resolution
1920x1080
Hard Drives
WD Green 2TB (SATA), WD Green 3TB (SATA), WD Blue 4TB (SATA), WD Blue 6TB (SATA)
PSU
Cooler Master
Case
Antec GX300 Tower
Cooling
3x Antec TRICOOL 120mm Fans
Mouse
Wired Optical
Internet Speed
DSL
Antivirus
Avast
Browser
Pale Moon (64 bit)
Other Info
2018-12-27 Upgraded HDDs
2015-12-10 Upgraded case, graphics card, storage
2015-08-15 Upgraded motherboard & RAM
2015-07-15 Upgraded LM17.1 to LM17.2
thanks miles that solved the space problem, now able to take ownership but still can't delete,
so i'll run >Icacls "c:\program files\avg\avg2012\avgsysx.dll g/ username:f"
which returns success 0 fail 1........boo, well at least we solved the spacing?

i am understanding that i have taken ownership of the file, now i can grant myself full permissions with icacls command (my query turned up the cacls command but my cmd prompt says Note: Cacls is now deprecated, please use Icacls) so that i can delete the file... any more suggestions? prolly try it out in safe mode tomorrow
 

My Computer My Computer

At a glance

Windows 7 professional 32bitintel Atom??
Computer Manufacturer/Model Number
Acer Aspire One
OS
Windows 7 professional 32bit
CPU
intel Atom
Motherboard
?
Memory
?
Graphics Card(s)
?
Sound Card
?
Monitor(s) Displays
?
Hard Drives
/
PSU
?
Case
?
Cooling
?

My Computer My Computer

At a glance

Windows 7 Professional SP1 32-bitIntel Core 2 Duo E6600 2.4GHz4GB DDR2-667 (4x1GB in dual-channel config)nVidia GeForce 9800 GT
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom-built
OS
Windows 7 Professional SP1 32-bit
CPU
Intel Core 2 Duo E6600 2.4GHz
Motherboard
Asus PL5D2
Memory
4GB DDR2-667 (4x1GB in dual-channel config)
Graphics Card(s)
nVidia GeForce 9800 GT
Sound Card
Creative X-Fi XtremeMusic
Monitor(s) Displays
Acer P236H
Screen Resolution
1920x1200 (DVI)
Hard Drives
OCZ SSD Vertex Plus 60GB SATA (Firmware 3.55), 64MB cache
Hitachi HD321KJ SATA, 320GB, 7200rpm, 16MB cache
PSU
Antec TruePower 2.0
Case
Cooler Master Centurion
Cooling
Too many fans
Keyboard
Standard
Mouse
Microsoft wireless optical mouse
Internet Speed
AT&T U-verse (18mbit/sec)
Antivirus
Microsoft Security Essentials
Browser
Firefox
Other Info
Other devices:
Compaq CQ-60 laptop
Google Nexus 7 (2012) tablet
Nvidia SHIELD tablet (US/LTE)
Hardkernel ODROID-XU single-board computer (Samsung Exynos 5420)
solved

thanks all for the help, in the end i had to boot up safe mode w command prompt to finally delete these files and get the icacls command to work. thx
 

My Computer My Computer

At a glance

Windows 7 professional 32bitintel Atom??
Computer Manufacturer/Model Number
Acer Aspire One
OS
Windows 7 professional 32bit
CPU
intel Atom
Motherboard
?
Memory
?
Graphics Card(s)
?
Sound Card
?
Monitor(s) Displays
?
Hard Drives
/
PSU
?
Case
?
Cooling
?
Glad you were successful in the end. :) To make sure that your system really is free of any and all AVG remnants, I still recommend downloading the AVG cleanup tool I linked to in my previous post - especially because of the registry keys left behind.

Then grab a solid replacement antivirus such as avast! or better yet, Microsoft Security Essentials.
 

My Computer My Computer

At a glance

Windows 7 Professional SP1 32-bitIntel Core 2 Duo E6600 2.4GHz4GB DDR2-667 (4x1GB in dual-channel config)nVidia GeForce 9800 GT
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom-built
OS
Windows 7 Professional SP1 32-bit
CPU
Intel Core 2 Duo E6600 2.4GHz
Motherboard
Asus PL5D2
Memory
4GB DDR2-667 (4x1GB in dual-channel config)
Graphics Card(s)
nVidia GeForce 9800 GT
Sound Card
Creative X-Fi XtremeMusic
Monitor(s) Displays
Acer P236H
Screen Resolution
1920x1200 (DVI)
Hard Drives
OCZ SSD Vertex Plus 60GB SATA (Firmware 3.55), 64MB cache
Hitachi HD321KJ SATA, 320GB, 7200rpm, 16MB cache
PSU
Antec TruePower 2.0
Case
Cooler Master Centurion
Cooling
Too many fans
Keyboard
Standard
Mouse
Microsoft wireless optical mouse
Internet Speed
AT&T U-verse (18mbit/sec)
Antivirus
Microsoft Security Essentials
Browser
Firefox
Other Info
Other devices:
Compaq CQ-60 laptop
Google Nexus 7 (2012) tablet
Nvidia SHIELD tablet (US/LTE)
Hardkernel ODROID-XU single-board computer (Samsung Exynos 5420)
Back
Top