| Windows 7: help me w/ cmd prompt- invalid argument/option- 'Files\....\...' |
20 Nov 2011
|
| | Windows 7 professional 32bit 3 posts |
help me w/ cmd prompt- invalid argument/option- 'Files\....\...' 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 System Specs |
| System Manufacturer/Model Number Acer Aspire One OS Windows 7 professional 32bit CPU intel Atom Motherboard ? Memory ? Graphics Card ? Sound Card ? Monitor(s) Displays ? PSU ? Case ? Cooling ? Hard Drives / |
20 Nov 2011
|
| | Windows 7 SP1, Home Premium, 64-bit 7,566 posts |
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 System Specs | | System Manufacturer/Model Number Ignatz Special; 4 speed manual gearbox; factory air conditioning; one of one OS Windows 7 SP1, Home Premium, 64-bit CPU Intel Sandy Bridge i5-2500, not overclocked Motherboard Gigabyte H67A-UD3H-B3, full ATX Memory 4 GB Crucial DDR3-1333 Graphics Card none; graphics are integrated on CPU Sound Card onboard: Realtek ALC892; external: USB Behringer UF0-202 Monitor(s) Displays NEC 90GX2-BK 19" LCD Screen Resolution 800 x 640 Keyboard Leopold Tenkeyless with Cherry Blue switches, USB Mouse Logitech or Microsoft optical wired; either USB or PS 2 PSU Seasonic SS-560KM, modular Case Antec Solo II Cooling CPU: Scythe Big Shuriken; Case: Scythe Slipstream 800 & 500 Hard Drives System: Intel 320 Series SSD, 80 GB;
Data: Samsung Spinpoint 103SJ, 1 TB;
Backup: WD Caviar Green WD15EADS-00P8B0, 1.5TB Other Info Power consumption of this system, including monitor: 68 watts at idle; 144 watts at full load |
20 Nov 2011
|
| | Windows 7 32 bit 3,135 posts |
Quote: 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 System Specs | | System Manufacturer/Model Number HP Media Center OS Windows 7 32 bit CPU AMD 5200+ dual core Memory 2 GB Graphics Card NVidia GeForce 6150SE 128 MB Monitor(s) Displays CRT Screen Resolution 1280x1024 Keyboard PS/2 Mouse PS/2 Wheel Mouse Hard Drives 500 GB Sata internal :
SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives Other Info SIIG USB 3.0 PCIexpress card. |
20 Nov 2011
|
| | Windows 7 SP1, Home Premium, 64-bit 7,566 posts |
Thanks for that, Miles. I've never heard of that and never been in such a situation. | My System Specs | | System Manufacturer/Model Number Ignatz Special; 4 speed manual gearbox; factory air conditioning; one of one OS Windows 7 SP1, Home Premium, 64-bit CPU Intel Sandy Bridge i5-2500, not overclocked Motherboard Gigabyte H67A-UD3H-B3, full ATX Memory 4 GB Crucial DDR3-1333 Graphics Card none; graphics are integrated on CPU Sound Card onboard: Realtek ALC892; external: USB Behringer UF0-202 Monitor(s) Displays NEC 90GX2-BK 19" LCD Screen Resolution 800 x 640 Keyboard Leopold Tenkeyless with Cherry Blue switches, USB Mouse Logitech or Microsoft optical wired; either USB or PS 2 PSU Seasonic SS-560KM, modular Case Antec Solo II Cooling CPU: Scythe Big Shuriken; Case: Scythe Slipstream 800 & 500 Hard Drives System: Intel 320 Series SSD, 80 GB;
Data: Samsung Spinpoint 103SJ, 1 TB;
Backup: WD Caviar Green WD15EADS-00P8B0, 1.5TB Other Info Power consumption of this system, including monitor: 68 watts at idle; 144 watts at full load |
20 Nov 2011
|
| | Windows 7 32 bit 3,135 posts |

Quote: Originally Posted by ignatzatsonic 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 System Specs | | System Manufacturer/Model Number HP Media Center OS Windows 7 32 bit CPU AMD 5200+ dual core Memory 2 GB Graphics Card NVidia GeForce 6150SE 128 MB Monitor(s) Displays CRT Screen Resolution 1280x1024 Keyboard PS/2 Mouse PS/2 Wheel Mouse Hard Drives 500 GB Sata internal :
SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives Other Info SIIG USB 3.0 PCIexpress card. |
20 Nov 2011
|
| | Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 14 MATE (64 bit) 1,849 posts Adelaide |
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 System Specs | | System Manufacturer/Model Number n/a OS Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 14 MATE (64 bit) CPU AMD Phenom II x6 1055T, 2.8 GHz Motherboard ASRock 880GMH-LE/USB3 Memory 8GB DDR3 1333 G-Skill Ares F3-1333C9D-8GAO (4GB x 2) Graphics Card ATI Radeon HD6450 Sound Card Realtek? Monitor(s) Displays Samsung S23B350 Screen Resolution 1920x1080 Mouse Wired Optical Case Tower Hard Drives Western Digital 1 TB (SATA), Western Digital 1.5 TB (SATA), Western Digital 2 TB (SATA) Internet Speed DSL Other Info Ubuntu 10.04 (64 bit) replaced with Linux Mint 14 MATE (64 bit) - 2013-01-14
RAM & Graphics Card Upgraded - 2013-01-13
Monitor Upgraded - 2012-04-20
System Upgraded - 2011-05-21, 2010-07-14
HDD Upgraded - 2010-08-11, 2011-08-24 |
21 Nov 2011
|
| | Windows 7 professional 32bit 3 posts |
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 System Specs | | System Manufacturer/Model Number Acer Aspire One OS Windows 7 professional 32bit CPU intel Atom Motherboard ? Memory ? Graphics Card ? Sound Card ? Monitor(s) Displays ? PSU ? Case ? Cooling ? Hard Drives / |
21 Nov 2011
|
| | Windows 7 Professional SP1 32-bit 1,784 posts Fantasyland |
Only include the path/filename within quotes, not the name and all the arguments. The command should look like this: icacls "c:\program files\avg\avg2012\avgsysx.dll" /g username:f
But you also can make life much easier on yourself with this tutorial: Take Ownership Shortcut
Or try AVG's own cleanup tools here: http://www.avg.com/ww-en/utilities - might save you a lot of work, or at least get most of it done for you. | My System Specs | | System Manufacturer/Model Number Custom-built OS Windows 7 Professional SP1 32-bit CPU Intel Core 2 Duo E6600 2.4GHz, overclocked to 2.7GHz Motherboard Asus PL5D2 Memory 4GB DDR2-667 (4x1GB in dual-channel config) Graphics Card nVidia GeForce 9800 GT Sound Card Creative X-Fi XtremeMusic Monitor(s) Displays Acer Screen Resolution 1920x1200 (DVI) Keyboard Standard Mouse Microsoft wireless optical mouse PSU Antec TruePower 2.0 Case Cooler Master Centurion Cooling various fans Hard Drives OCZ SSD Vertex Plus 60GB SATA (Firmware 3.55), 64MB cache
Hitachi HD321KJ SATA, 320GB, 7200rpm, 16MB cache Internet Speed DSL; ~330KB/sec down, ~110KB/sec up Other Info Have a laptop too :) (Compaq CQ60 also with Win7 Pro SP1 32-bit)
Drives in both systems:
C: - Windows 7 + apps. Pagefile is fixed size and located at the very end of the partition.
D: - various temp files/cache for Firefox and apps/games.
E: - videos, music, misc. storage, torrent downloads, etc. |
21 Nov 2011
|
| | Windows 7 professional 32bit 3 posts |
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 System Specs | | System Manufacturer/Model Number Acer Aspire One OS Windows 7 professional 32bit CPU intel Atom Motherboard ? Memory ? Graphics Card ? Sound Card ? Monitor(s) Displays ? PSU ? Case ? Cooling ? Hard Drives / |
22 Nov 2011
|
| | Windows 7 Professional SP1 32-bit 1,784 posts Fantasyland |
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 System Specs | | System Manufacturer/Model Number Custom-built OS Windows 7 Professional SP1 32-bit CPU Intel Core 2 Duo E6600 2.4GHz, overclocked to 2.7GHz Motherboard Asus PL5D2 Memory 4GB DDR2-667 (4x1GB in dual-channel config) Graphics Card nVidia GeForce 9800 GT Sound Card Creative X-Fi XtremeMusic Monitor(s) Displays Acer Screen Resolution 1920x1200 (DVI) Keyboard Standard Mouse Microsoft wireless optical mouse PSU Antec TruePower 2.0 Case Cooler Master Centurion Cooling various fans Hard Drives OCZ SSD Vertex Plus 60GB SATA (Firmware 3.55), 64MB cache
Hitachi HD321KJ SATA, 320GB, 7200rpm, 16MB cache Internet Speed DSL; ~330KB/sec down, ~110KB/sec up Other Info Have a laptop too :) (Compaq CQ60 also with Win7 Pro SP1 32-bit)
Drives in both systems:
C: - Windows 7 + apps. Pagefile is fixed size and located at the very end of the partition.
D: - various temp files/cache for Firefox and apps/games.
E: - videos, music, misc. storage, torrent downloads, etc. help me w/ cmd prompt- invalid argument/option- 'Files\....\...' problems? All times are GMT -5. The time now is 10:12 PM. | |