FuzMic
DataBase Tinker
- Local time
- Tomorrow, 04:04
- Joined
- Sep 13, 2006
- Messages
- 744
Hi members
3 in 1 indulgence at one go
1)
I want to do a "net stop spooler". if i use shell i can run it within a .cmd file.
But in Win7 onwards, i think i need to do it with Admin rights.
*Q**How can I within Access VB6 run the .cmd with Admin rights.
2)
Also i want to "del %windir%\system32\spool\printers\*.*". Access does not handle %windir%, so i use Environ("SystemRoot").
**Q*What is the environString for C:\windows\system32 directly?
**Q* Kill do one file at a time, Del allows wild card; Beside Del what else can i use?
3)
FileExist via ms Scripting.Runtime only check one file at a time while Dir can use wild card eg *.s*.
**Q*What are the pros & cons of using Dir in VBA.
**Q* Can FileSystemObject do wild card checking
3 in 1 indulgence at one go
1)
I want to do a "net stop spooler". if i use shell i can run it within a .cmd file.
But in Win7 onwards, i think i need to do it with Admin rights.
*Q**How can I within Access VB6 run the .cmd with Admin rights.
2)
Also i want to "del %windir%\system32\spool\printers\*.*". Access does not handle %windir%, so i use Environ("SystemRoot").
**Q*What is the environString for C:\windows\system32 directly?
**Q* Kill do one file at a time, Del allows wild card; Beside Del what else can i use?
3)
FileExist via ms Scripting.Runtime only check one file at a time while Dir can use wild card eg *.s*.
**Q*What are the pros & cons of using Dir in VBA.
**Q* Can FileSystemObject do wild card checking