Jump to content
Sign in to follow this  
Syekick

@UserName Syntax within a Dos directory Name

Recommended Posts

Syekick

I'm trying to duplicate the dos command

cipher /a /e /q /s:"C:\Documents and Settings\%username%\my documents"

In AutoIt, I've tried many variations but find (so far) that the following line is the only one that does nor give syntax errors when checking the file. But of course, it does not work.

Run("cipher.exe /a /e /q /s:c:\C:\Documents and Settings\" & @UserName & "my documents")

Toss me a bone here :D

Share this post


Link to post
Share on other sites
MHz

Perhaps using @MyDocumentsDir will do?

Run('cipher.exe /a /e /q /s:"' & @MyDocumentsDir & '"')

Bone tossed...

:D

Share this post


Link to post
Share on other sites
Syekick

Perhaps using @MyDocumentsDir will do?

Run('cipher.exe /a /e /q /s:"' & @MyDocumentsDir & '"')

Bone tossed...

:D

ROFL, Obviously, I didn't know that command existed. I'll have to review them. Thank you!

Share this post


Link to post
Share on other sites
DBowers

.

Edited by DBowers

Share this post


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
Sign in to follow this  

×