"access denied" when using "assoc" and "ftype" from cmdline?

pstein

New member
Member
VIP
Local time
6:59 AM
Messages
244
"access denied" when using "assoc" and "ftype" from cmdline?

I tried to associate the file extension .txt to a new editor program
with the well known cmdline programs ASSOC and FTYPE.

No, assigning them through WinExplorer menu does not work.
But this is another problem which should not discussed here.

When I type now one of the following alternative commands at the CommandPrompt then Win7 returns me something like:

assoc .txt=txtfile

"Access denied"
The following error occurs: .txt"

or

ftype txtfile=D:\notepad++\notepad++.exe "%%1"

"Access denied"
The following error occurs: txtfile"

Why?

The command above work fine under WinXP

Peter
 

My Computer My Computer

Computer type
PC/Desktop
OS
win7pro 64bit

My Computer My Computer

Computer Manufacturer/Model Number
Custom made
OS
Windows 7 Professional x64 PL
CPU
AMD Athlon 4450e
Motherboard
Giga-Byte GA-MA69G-S3H
Memory
GoodRam DDR2 2x2048MB (FSB 800MHz)
Graphics Card(s)
nVidia GeForce 9600GT (G94-300) 1024 MB
Monitor(s) Displays
SAMSUNG SyncMaster HS2P301688
Hard Drives
Seagate ST3750330AS 750GB
PSU
Corsair 550W
Cooling
AeroCool ExtremeEngine 3T
access denied

I try with administrative right, It works. Thanks
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Acer
OS
WIN7 familial 64bits
CPU
i3-370M
Memory
DDR3 4 Gbyte
Graphics Card(s)
intel HD
Hard Drives
500 GB
Antivirus
norton
Welcome to our Forum jean123.

Glad you found something that comes to your aid.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
Back
Top